# CVE-2026-120720: S3 bucket name controls the request host in ex\_aws virtual-host requests

- **Severity:** MEDIUM 5.9
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 8, 2026-11-29)
- **CWE:** CWE-918
- **Published:** 2026-11-24T12:17:35.415Z
- **Modified:** 2026-11-24T19:12:16.707Z

## Who should check

- Anyone running ex-aws ex\_aws \>= 2.1.7, \< 2.8.0
- Anyone running ex-aws ex\_aws \>= 557d3438a7e739a25c1ccc1876a5b636793f20ba, \< a878943be6def16ffbee6bb9e11d90db1dc904f8

## 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

- ex-aws ex\_aws: \>= 2.1.7, \< 2.8.0 (cvelist)
- ex-aws ex\_aws: \>= 557d3438a7e739a25c1ccc1876a5b636793f20ba, \< a878943be6def16ffbee6bb9e11d90db1dc904f8 (cvelist)

## Mitigation

- Upgrade ex\_aws to 2.8.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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-29).

### 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.

## References

- vendor: <https://github.com/ex-aws/ex_aws/security/advisories/GHSA-rcv9-2jx2-63xh>
- patch: <https://github.com/ex-aws/ex_aws/commit/557d3438a7e739a25c1ccc1876a5b636793f20ba>
- patch: <https://github.com/ex-aws/ex_aws/commit/a878943be6def16ffbee6bb9e11d90db1dc904f8>
- other: <https://cna.erlef.org/cves/CVE-2026-120720.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-120720>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-120720>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-120720> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-120720>
