CVE-2026-59698

HighCVSS 7.4/10Last modified Dec 1, 2026

Description

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.

Metrics

CVSS 4.0 7.4/10CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/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:X/AU:X/R:X/V:X/RE:X/U:X

Weakness enumeration

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

VendorProductVersions
ex-awsex_aws>= 2.1.7, < 2.8.0
ex-awsex_aws>= 557d3438a7e739a25c1ccc1876a5b636793f20ba, < b1116f9f92a8ec1f7f2f3f692bd1c5cacaddf6fd

References

Timeline

Published
Nov 24, 2026
Last modified
Dec 1, 2026
NVD status
Awaiting Analysis

Related CVEs from 2026

CVE-2026-59709.8A vulnerability was detected in FoundationAgents MetaGPT up to 0.8.1. This affects the function check_solution of the component HumanEvalBenCVE-2026-597007.8A vulnerability has been identified in Simcenter Femap (All versions < V2606.0001). The affected applications contains an out of bounds readCVE-2026-597017.8A vulnerability has been identified in Simcenter Femap (All versions < V2606.0001). The affected applications contains an out of bounds readCVE-2026-597029.3repomix contains a server-side request forgery vulnerability in the POST /api/pack endpoint that allows unauthenticated attackers to make arCVE-2026-597037.5repomix contains a local file inclusion vulnerability in the git clone endpoint that allows unauthenticated attackers to read arbitrary locaCVE-2026-597047.1Cap's GET /api/video/ai endpoint fails to validate user ownership or membership before returning private video AI metadata including titles,CVE-2026-597059.8mem0's openmemory/api component contains an unauthenticated access vulnerability that allows unauthenticated attackers to read, write, and dCVE-2026-597069.3mem0 contains unauthenticated config API endpoints that expose LLM API keys in plaintext and allow server-side request forgery via attacker-CVE-2026-597078.6LocalAI contains an unauthenticated server-side request forgery vulnerability in the POST /models/apply endpoint that allows attackers to feCVE-2026-597087.5The GET /api/v1/public/:accessId/portfolio endpoint in ghostfolio accepts private access IDs without validating granteeUserId filtering, allCVE-2026-597094.3Ghostfolio's PUT /api/v1/portfolio/holding/:dataSource/:symbol/tags endpoint fails to verify Access.permissions field when processing the ImCVE-2026-59719.8A flaw has been found in FoundationAgents MetaGPT up to 0.8.1. This vulnerability affects the function ActionNode.xml_fill of the file metag
CVE-2026-59698: High severity, CVSS 7.4 | Vulnix