CVE-2026-120720
S3 bucket name controls the request host in ex_aws virtual-host requests
Mitigation
- Upgrade ex_aws to 2.8.0 or later.
Who should check
- Anyone running ex-aws ex_aws >= 2.1.7, < 2.8.0
- Anyone running ex-aws ex_aws >= 557d3438a7e739a25c1ccc1876a5b636793f20ba, < a878943be6def16ffbee6bb9e11d90db1dc904f8
Vulnerability facts
- Affected
- ex-aws ex_aws >= 2.1.7, < 2.8.0; ex-aws ex_aws >= 557d3438a7e739a25c1ccc1876a5b636793f20ba, < a878943be6def16ffbee6bb9e11d90db1dc904f8
- Fixed in
- ex-aws ex_aws 2.8.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.9 (v4.0, CNA)CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: High
- Integrity impact: Low
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.23% chance of exploitation in 30 days (percentile 8, 2026-11-28)
- CWE
- CWE-918
- Modified
Description
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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-120720. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-120720.md Affected: ex-aws ex_aws >= 2.1.7, < 2.8.0; ex-aws ex_aws >= 557d3438a7e739a25c1ccc1876a5b636793f20ba, < a878943be6def16ffbee6bb9e11d90db1dc904f8 Fixed in: ex-aws ex_aws 2.8.0 Steps: 1. Search this machine and project for ex-aws ex_aws: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
FAQ
Is CVE-2026-120720 being exploited?
There is no confirmed exploitation: CVE-2026-120720 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-28).
How serious is CVE-2026-120720?
Medium: CVSS 5.9 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2026-120720?
ex-aws ex_aws >= 2.1.7, < 2.8.0; ex-aws ex_aws >= 557d3438a7e739a25c1ccc1876a5b636793f20ba, < a878943be6def16ffbee6bb9e11d90db1dc904f8.
Is there a fix for CVE-2026-120720?
Yes. Fixed in ex-aws ex_aws 2.8.0. Upgrade ex_aws to 2.8.0 or later.
How do I check if I'm affected by CVE-2026-120720?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.
More ex-aws vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| LOW 2.0 | CVE-2026-62272 ex_aws_lambda relative path traversal via unencoded identifiers in ExAws.Lambda request paths | ex-aws | EPSS 8% | |
| MEDIUM 5.9 | CVE-2026-65622 ex_aws_ses missing URI-encoding of list_name allows path injection into SES V2 request URLs | ex-aws | EPSS 10% | |
| LOW 2.1 | CVE-2026-62273 XML injection via unescaped tag keys and values in ex_aws_s3 object and bucket tagging | ex-aws | PoCEPSS 31% | |
| MEDIUM 6.9 | CVE-2026-63581 ex_aws_s3 XML injection in bucket-configuration builders | ex-aws | PoCEPSS 31% | |
| LOW 2.1 | CVE-2026-63584 Copy-source header injection in ExAws.S3.upload_part_copy/8 via unencoded source key | ex-aws | EPSS 13% |