CVE-2026-120720 - S3 bucket name controls the request host in ex_aws virtual-host requests
Vulnerability · Reported by NVD · · CWE-918
- Severity
- Medium Risk score 59/100
- CVSS
- 5.9 v4.0 · from NVD
- Exploit chance (EPSS)
- 0.23% Higher than 8% of CVEs
- Known exploited
- No Not in CISA KEV
Summary
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.
How this vulnerability can be exploited
This is a server-side request forgery (SSRF) flaw (CWE-918). An attacker can exploit this vulnerability with local access to the system, without any login, and without any action from a user. Attack complexity is low, so no special conditions are needed.
Is it being exploited?
The EPSS model estimates a 0.23% chance this CVE will be exploited in the next 30 days, which is low and higher than 8% of all published CVEs.
Patch priority and what to do
Patch during routine updates. Lower severity, but keep it on your list. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Review logs for signs of exploitation since the publication date.
CVSS vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S
Tags
CVE-2026-120720
Sources & references
- Original article / advisory (NVD) ↗
- NIST NVD: CVE-2026-120720 ↗
- CVE.org record ↗
- FIRST.org EPSS model ↗
How this data is collected: methodology & sources.