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

- Severity: Medium 5.9 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2026-11-24T12:17:35.415Z
- Modified: 2026-12-01T17:17:21.557Z
- Also known as: EEF-CVE-2026-120720, GHSA-rcv9-2jx2-63xh
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: EEF

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

(As written by CVE List.)

## Affected

- ex_aws: from 2.1.7 before 2.8.0
- ex-aws/ex_aws: from 557d3438a7e739a25c1ccc1876a5b636793f20ba before a878943be6def16ffbee6bb9e11d90db1dc904f8
- ex_aws (Hex): from 2.1.7 before 2.8.0
- https://github.com/ex-aws/ex_aws: from 557d3438a7e739a25c1ccc1876a5b636793f20ba before a878943be6def16ffbee6bb9e11d90db1dc904f8

## Every score

- EEF: CVSS:4.0 5.9 Medium `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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`

## References

- <https://github.com/ex-aws/ex_aws/security/advisories/GHSA-rcv9-2jx2-63xh> (advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-120720.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-120720> (related)
- <https://github.com/ex-aws/ex_aws/commit/557d3438a7e739a25c1ccc1876a5b636793f20ba> (related, web)
- <https://github.com/ex-aws/ex_aws/commit/a878943be6def16ffbee6bb9e11d90db1dc904f8> (fix, patch)
- <https://hex.pm/packages/ex_aws> (package)

## Sources

- CVE List: [CVE-2026-120720](https://www.cve.org/CVERecord?id=CVE-2026-120720), CVE Terms of Use, modified 2026-12-01
- Erlang Ecosystem Foundation: [EEF-CVE-2026-120720](https://osv.dev/vulnerability/EEF-CVE-2026-120720), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-120720](https://nvd.nist.gov/vuln/detail/CVE-2026-120720), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-120720 · Whole record: https://cve.day/CVE-2026-120720.json · Rebuilt by cve.day 2026-12-01T17:32:13.135Z
