Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply crafted S3 object key with leading ../
-
ExploitPath.expand collapses ../ and pops bucket off path
-
ExecutionRequest signed with app's own credentials routed to victim bucket
-
ImpactCross-bucket or cross-prefix read/write outside tenant boundary
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Relative path traversal prevention
|
| Exploitation Conditions | Exploitation requires all of: (1) ex_aws building path-style S3 requests - the default; deployments using virtual_host: true are NOT affected because that branch skips the Path.expand normalization; (2) the application derives the S3 object key from untrusted/attacker-controlled input; and (3) the application relies on the bucket name or a prepended key prefix as a tenant or trust boundary. The attack-limiting factors are therefore the non-default-safe config choice (virtual_host: true immunizes), the need for the app to pass untrusted input into the key, and the fact that resulting access is bounded by the application's own AWS credential permissions (cross-bucket/prefix reach only where those credentials are authorized). The only complete fix per the advisory is upgrading to ex_aws 2.8.0. |
| Impact | This is a genuine but conditional priority, not a blanket emergency. The CVSS 4.0 base score of 7.4 (VC:H/VI:H) reflects high confidentiality and integrity impact, but the vector itself tells the real story: AV:L and AT:P mean the vendor judged exploitation to be local-ish and gated by an attack requirement, i.e. it only bites applications that (a) use the default path-style configuration and (b) derive an S3 object key from untrusted input while relying on the bucket or a key prefix as a tenant/trust boundary. There is no KEV listing, no EPSS probability supplied, and no PoC or exploit reference in the input, so exploitation status is: no public exploit identified at time of analysis. The vuln.today decision label is this_week (not act_now/emergency), which is consistent with a patched, conditionally-exploitable flaw rather than mass exploitation. Note a genuine signal tension: the supplied CVSS 4.0 vector uses AV:L, yet the described mechanism (an attacker who controls an untrusted object key) typically arrives over the network in a web/multi-tenant app - teams should treat the realistic delivery path as network-reachable even though the official vector says local. For Elixir/Phoenix shops running a vulnerable ex_aws (2.1.7-<2.8.0) with path-style requests and multi-tenant key isolation, this is a real cross-tenant read/write risk worth patching promptly; for apps using virtual_host: true or not deriving keys from untrusted input, real-world risk is low. |
| Exploit ScenarioDerived | A multi-tenant Elixir application stores each tenant's files in S3 under a trusted per-tenant key prefix (or dedicated bucket) using the default path-style configuration, and builds the object key from user-supplied input such as a filename. An attacker submits a key like ../other-tenant/secret.txt; ExAws.Operation.S3.add_bucket_to_path normalizes the combined /bucket/../other-tenant/secret.txt and collapses the ../, so the request - signed with the application's own AWS credentials - is sent to the victim bucket/prefix, yielding cross-tenant read or write depending on the operation and credential permissions. No public exploit is identified at time of analysis; exploitation is straightforward given the default path-style config and attacker-controlled key input. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 24, 2026
Relative path traversal in the ex_aws Elixir S3 client (versions 2.1.7 up to, but not including, 2.8.0) allows an attacker who controls an S3 object key to escape the bucket or key prefix the application intended to use, causing the request - signed with the application's own AWS credentials - to be sent to a different bucket or outside a trusted prefix. Exploitation requires the default path-style addressing (deployments configured with virtual_host: true are not affected, since that branch skips the problematic normalization), plus an application that builds keys from untrusted input and treats the bucket name or a prepended prefix as a tenant or trust boundary; reachable impact is bounded by the permissions attached to the application's credentials. The independent assessment rates this CVSS:3.1 AV:N/AC:H/PR:N/UI:N/C:H/I:H/A:N, and no public exploit was identified at time of analysis; the vendor's only complete fix is upgrading to 2.8.0.
RemediationAI
Vendor-released patch: ex_aws 2.8.0, which the advisory describes as the only complete fix; upgrade from any 2.1.7-through-2.7.x release and verify the change in commit b1116f9f92a8ec1f7f2f3f692bd1c5cacaddf6fd / 557d3438a7e739a25c1ccc1876a5b636793f20ba, and see the advisory at https://github.com/ex-aws/ex_aws/security/advisories/GHSA-hrw3-2h5r-fhxx. If an immediate upgrade is not possible, the practical compensating control is to stop using path-style addressing by setting virtual_host: true, which routes bucket selection through the Host header and skips the normalizing branch entirely; the trade-off is that virtual-hosted-style requests require DNS-compatible bucket names (no dots or uppercase for TLS compatibility) and change how every S3 call is addressed, so it may not suit all existing buckets. In addition, reject or canonicalize object keys containing "." or ".." segments before handing them to ex_aws and avoid treating the bucket name or a prepended prefix as a security boundary when the remainder of the key is attacker-controlled, accepting that this requires application code changes and may break legitimate keys that contain such sequences.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
ex_aws is an Elixir client library for AWS APIs; this flaw lives in the S3 operation builder, ExAws.Operation.S3.add_bucket_to_path/2 in lib/ex_aws/operation/s3.ex, and is classified as CWE-23 (relative path traversal). In path-style addressing the bucket is the first segment of the request path, so the library concatenates "/", the bucket name and the object key and then normalizes the resulting string; the fix commit replaces the manual join with Path.join/2 followed by Path.expand/2 handling, and alters the function to return both the operation and the (possibly host-modified) config. Because normalization collapses "." and ".." segments the way a filesystem path would, a key beginning with "../" pops the bucket segment (bucket mybucket plus key ../victim/secret.txt normalizes to /victim/secret.txt), and "../" inside a key collapses any prefix the application prepended. S3 itself treats object keys as opaque and does not resolve "..", so the traversal is introduced entirely by client-side normalization. The same commit shows the virtual_host: true branch instead rewrites the host to "<bucket>.<base_host>" and never runs the collapsing normalization, which is why only the default path-style configuration is exposed.
Know when Elixir gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Untrusted object keys typically arrive over the network (AV:N, diverging from the input's AV:L); AC:H because it requires path-style config plus the app trusting a bucket/prefix boundary; PR:N as the attacker only supplies input; cross-bucket read and write give C:H/I:H.
Primary rating from Vendor (EEF).
CVSS VectorVendor: EEF
DescriptionCVE.org
Relative path traversal in ex_aws allows an attacker who controls an S3 object key to escape the intended bucket or key prefix.
When ex_aws builds a path-style S3 request, ExAws.Operation.S3.add_bucket_to_path/2 in lib/ex_aws/operation/s3.ex joins the bucket name and the object key into a single path string and then normalizes it, collapsing . and .. segments the way a filesystem path would. Because the bucket is the first segment of the combined string, a leading ../ in the object key pops the bucket off the path. With bucket mybucket and a key of ../victim/secret.txt, the combined /mybucket/../victim/secret.txt normalizes to /victim/secret.txt, so the request (signed with the application's own credentials) is sent to bucket victim. The same mechanism collapses ../ within a key, defeating any isolation an application enforces by prepending a trusted prefix.
Only the default path-style configuration is affected; requests built with virtual_host: true do not run this normalization. Because S3 treats object keys as opaque and does not resolve .. itself, the client-side normalization introduces a traversal that would not otherwise exist. Any application that derives an S3 object key from untrusted input and relies on the bucket, or a key prefix, as a tenant or trust boundary is exposed to cross-bucket or cross-prefix read and write, depending on the operation and the credentials' permissions.
This issue affects ex_aws: from 2.1.7 before 2.8.0.
Technical POC Analysis
CWE-23 (Relative Path Traversal), introduced by a client-side path normalization step in the exaws Elixir S3 client.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A high-severity path traversal flaw in the widely used ex_aws Elixir S3 client (versions 2.1.7 through 2.7.x) could allow an attacker to redirect the application's own credential-signed S3 requests to a different bucket or outside an intended key prefix when object keys are built from untrusted input. Any service relying on bucket names or prefixes as a tenant or trust boundary, and using default path-style addressing, is exposed - the blast radius is capped only by the permissions granted to that application's AWS credentials. Leadership should treat this as a cross-tenant data isolation risk affecting teams owning Elixir services that store or serve customer files on S3.
Apply vendor patch (ex_aws 2.8.0). Interim: enable virtual_host: true to avoid the vulnerable path-style normalization branch, sanitize and validate S3 object keys built from untrusted input, and least-privilege the application's IAM credentials to limit cross-bucket reach.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Unbounded recursion in the Elixir `protobuf` Hex package (versions >= 0.8.0, < 0.16.1) lets unauthenticated remote attac
Improper JWT signature verification in Dashbit's nimble_zta (0.1.2 up to but not including 0.1.3) lets an unauthenticate
Remote code execution in the Elixir Flop pagination library affects versions 0.8.0 through 0.26.6, 0.27.0 through 0.27.2
Session-swapping authentication bypass in the Elixir library AshAuthentication (versions 4.10.0 before 4.15.0 and 5.0.0-
Account takeover in AshAuthentication (Elixir/Ash) 4.14.0 through 4.14.x and 5.0.0-rc.10 through 5.0.0-rc.13 lets unauth
Authentication bypass in the Elixir library ash_authentication lets an attacker who operates one federated identity-prov
Server-Side Request Forgery protection bypass in the Elixir safeurl library (versions 0.1.0 and later) allows unauthenti
Arbitrary code execution in applications running the Elixir db_connection library 1.1.0 through 2.10.2 is possible when
Unauthenticated remote CPU exhaustion in mtrudel Bandit's HTTP/2 server (versions before 1.14.0) is achievable by holdin
Unbounded per-connection memory and CPU growth in the Elixir Bandit HTTP/2 server (0.3.6 up to 1.14.0) lets an unauthent
Unauthenticated remote denial of service in the Elixir HTTP server Bandit (mtrudel/bandit) from 0.1.0 before 1.14.0 lets
Unauthenticated remote attackers can consume disproportionate server CPU on Bandit (mtrudel/bandit, Elixir/Erlang) by se
EUVD-2026-133845
GHSA-8fhr-rcgh-cpgh
NVD
CVE.org
EPSS
Exploit-DB