Hex
CVE-2026-62269
S3 object key query-string injection and truncation via unencoded reserved characters in ex_aws
- Severity
- Medium 5.1
- Published
- 24 Nov 2026
- Last changed
- 24 Nov 2026
- Added to UpHeron
- 24 Nov 2026
- Fixed in
- 2.8.0
- Attack
- Needs local access · No login needed · No user action needed
- Attacker can
- Read some data · Change some data
- CVSS vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N- Sources
- CVE Program
Description
Improper Encoding or Escaping of Output vulnerability in ex_aws (S3 request URL construction).
This vulnerability is associated with program files lib/ex_aws/request/url.ex and program routines ExAws.Request.Url.build/2, ExAws.Request.Url.sanitize/2 and ExAws.Request.Url.get_path/2.
ex_aws does not percent-encode reserved characters in S3 object keys when it assembles the request URL. A literal ? in an object key survives unencoded: build/2 inserts the operation path verbatim and URI.to_string/1 emits it without encoding, and sanitize/2 then splits the flattened URL on the first ?, treating everything after it as the query string. Because the split runs before uri_encode is applied to the path, the ? is never neutralized, and the recovered query is re-inserted without any encoding.
An attacker who controls part of an object key (for example a download or upload keyed by a user-supplied filename) can therefore truncate the key past application-appended suffixes, causing the request…
Affected software
| Software | Affected versions |
|---|---|
ex_awsHex · osv:Hex:ex_aws |
|
About ex_aws
Vulnerabilities in ex_aws
- In our list
- 4
- Published in the last 12 months
- 4
- Critical, last 12 months
- 0
- High, last 12 months
- 2
- Known exploited
- 0
- CVE-2026-120720S3 bucket name controls the request host in ex_aws virtual-host requestsMedium 5.9 24 Nov 2026
- CVE-2026-59698ex_aws normalizes .. in S3 object keys client-side, allowing bucket or key-prefix escapeHigh 7.4 24 Nov 2026
- CVE-2026-59697IMDSv2 metadata token request follows HTTP redirects in ex_awsHigh 7.6 24 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-62269