CVE-2026-59698: ex_aws normalizes .. in S3 object keys client-side, allowing bucket or key-prefix escape
Published 2026-11-24 · Updated 2026-11-26 · Also known as EEF-CVE-2026-59698, GHSA-hrw3-2h5r-fhxx
Summary
The ex_aws library performs insecure client-side path normalization that allows S3 object keys to escape intended bucket or prefix boundaries. Developers using the default path-style S3 configuration must update the library or implement input sanitization.
Who is affected
This vulnerability affects applications using ex_aws versions 2.1.7 through 2.7.9 when the S3 client is configured for path-style requests. An attacker controlling the object key can perform unauthorized cross-bucket or cross-prefix operations by injecting '..' sequences that collapse the path during client-side normalization.
Exploitability
The vulnerability requires low attack complexity and no user interaction, though it requires an attacker-controlled input used as an S3 key. The EPSS score of 0.003 indicates a low probability of exploitation, and the vulnerability is not currently listed in CISA's Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade ex_aws to version 2.8.0 or later.
- Configure the S3 client with virtual_host: true to bypass the affected path normalization logic.
- Sanitize or reject user-provided keys that contain '..' segments before passing them to ex_aws.
How to check your project
- Inspect project dependencies (e.g., mix.lock) for ex_aws versions between 2.1.7 and 2.8.0.
- Verify S3 client configuration settings to determine if virtual_host is set to false or omitted, indicating use of the default path-style.
Automated analysis of the published advisory data, generated 2026-11-26. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Hex | ex_aws |
>= 2.1.7, < 2.8.0 | 2.8.0 | mix deps.update ex_aws |
CVSS 4.0 vector
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
| Attack vector | Local |
|---|---|
| Attack complexity | Low |
| Attack requirements | Present |
| Privileges required | None |
| User interaction | None |
| Confidentiality (vulnerable system) | High |
| Integrity (vulnerable system) | High |
| Availability (vulnerable system) | None |
| Confidentiality (subsequent systems) | None |
| Integrity (subsequent systems) | None |
| Availability (subsequent systems) | None |
Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.
FAQ
Does virtual_host: true mitigate this vulnerability?
Yes, setting virtual_host: true prevents the client-side path normalization that creates the traversal path, effectively mitigating the vulnerability.
Does S3 itself treat '..' in keys as directory traversal?
No, S3 treats object keys as opaque strings; the traversal vulnerability is exclusive to the client-side path normalization performed by ex_aws.
Are all ex_aws deployments vulnerable?
No, only deployments using the default path-style configuration (where virtual_host is not set to true) and processing untrusted input as object keys are susceptible.
Original advisory description
References
- ADVISORY https://github.com/ex-aws/ex_aws/security/advisories/GHSA-hrw3-2h5r-fhxx
- WEB https://cna.erlef.org/cves/CVE-2026-59698.html
- WEB https://github.com/ex-aws/ex_aws/commit/557d3438a7e739a25c1ccc1876a5b636793f20ba
- FIX https://github.com/ex-aws/ex_aws/commit/b1116f9f92a8ec1f7f2f3f692bd1c5cacaddf6fd
- PACKAGE https://hex.pm/packages/ex_aws
Source records: EEF-CVE-2026-59698 (OSV.dev) · EPSS by FIRST, 2026-11-26.