Server-side request forgery in ex_aws S3 virtual-host requests
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- High · Low · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
Server-Side Request Forgery in ex-aws ex_aws from 2.1.7 before 2.8.0 lets an attacker who controls an S3 bucket name send the application's signed S3 requests to a host of their choice. With virtual_host set to true, ExAws.Operation.S3.add_bucket_to_path/2 builds the request hostname from the bucket name without validating it (CWE-918). The attacker can receive upload bodies, the access key id, the request signature and any STS session token, and can control the response the application parses.
Written with Claude Haiku 5.5 from the sources below · 2026-11-24
Description from the CNA
Server-Side Request Forgery (SSRF) vulnerability in ex-aws ex_aws allows an attacker who controls an S3 bucket name to send the application's signed S3 requests to a host of their choice. With virtual_host: true, ExAws.Operation.S3.add_bucket_to_path/2 in lib/ex_aws/operation/s3.ex builds the request hostname from the bucket name and the configured host without checking the bucket name. A bucket such as attacker.example/x? turns the request URL into https://attacker.example/x?.s3.amazonaws.com/key, so the request is signed for and sent to attacker.example. The attacker receives upload bodies, the access key id and request signature, and any STS session token, and controls the response the application parses. With bucket_as_host: true the bucket is the whole hostname, so any valid hostname redirects the request. This issue affects ex_aws: from 2.1.7 before 2.8.0.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ex-aws | ex_aws | 2.1.7 to before 2.8.0 | 2.8.0 | Patch available | CNA |
- ex_aws Vendorex-aws Affected 2.1.7 to before 2.8.0 Fixed in 2.8.0 Patch available CNA
CPE names CNA · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:* | — | — | — |
- cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:* Versions — — ·—
Remediation
Upgrade ex_aws to version 2.8.0. The sources list no fixed version for other branches.
Written with Claude Haiku 5.5 from the sources below · 2026-11-24
- Fix · CNA ex_aws (ex-aws) Fixed in 2.8.0
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
ex-aws ex_aws 2.8.0
4 records Highest priority Priority LOW 4 LOW
Other records, highest priority first
- TI-2026-97227 ex_aws IMDSv2 token request follows HTTP redirects (SSRF)Priority LOW 33
- TI-2026-97235 ex_aws normalizes .. in S3 object keys client-side, allowing bucket or key-prefix escapePriority LOW 32
- TI-2026-97228 S3 object key truncation and injection in ex_awsPriority LOW 23
Timeline
- 2026-11-24 Threatist record created from CVE-2026-120720
- 2026-11-24 Alias added: GHSA-j423-57w6-3m28
References
More ex-aws vulnerabilities
- TI-2026-97430 XML injection in ex_aws_s3 bucket configuration builders CVSS 4.0MEDIUM 6.9
- TI-2026-97439 XML injection in ExAws S3 batch delete lets attackers remove extra objects CVSS 4.0MEDIUM 5.9
- TI-2026-97429 XML injection in ex_aws_s3 object and bucket tagging CVSS 4.0LOW 2.1
- TI-2026-34676 ex_aws_sns SigningCertURL not validated in verify_message/1 CVSS 4.0HIGH 8.7
- TI-2026-97227 ex_aws IMDSv2 token request follows HTTP redirects (SSRF) CVSS 4.0HIGH 7.6
- TI-2026-97235 ex_aws normalizes .. in S3 object keys client-side, allowing bucket or key-prefix escape CVSS 4.0HIGH 7.4
Sources
- CVE-2026-120720 · CVE Program
- CVE-2026-120720 · NVD
- FIRST EPSS
- GHSA-j423-57w6-3m28 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences