Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-59698— ex_aws normalizes .. in S3 object keys client-side, allowing bucket or key-prefix escape

Quick assessment

Affected
ex-aws ex_aws
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

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 n

CVSS 7.4 · High
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-59698

Vulnerability Information

Shenlong is analyzing...


Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
ex_aws normalizes .. in S3 object keys client-side, allowing bucket or key-prefix escape
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
相对路径遍历
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
ex-aws ex_aws 2.1.7 ~ 2.8.0 cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*
ex-aws ex_aws 557d3438a7e739a25c1ccc1876a5b636793f20ba ~ b1116f9f92a8ec1f7f2f3f692bd1c5cacaddf6fd cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*

II. Public POCs for CVE-2026-59698

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-59698

请登录查看更多情报信息。

Other References for CVE-2026-59698 (5)

Same Patch Batch · ex-aws · 2026-11-24 · 15 CVEs total

CVE-2026-59697 7.6 HIGH IMDSv2 metadata token request follows HTTP redirects in ex_aws
CVE-2026-63583 7.0 HIGH XML injection in ExAws.S3.Utils.build_lifecycle_rule/1 in ex_aws_s3
CVE-2026-63581 6.9 MEDIUM ex_aws_s3 XML injection in bucket-configuration builders
CVE-2026-65622 5.9 MEDIUM ex_aws_ses missing URI-encoding of list_name allows path injection into SES V2 request URL
CVE-2026-120720 5.9 MEDIUM S3 bucket name controls the request host in ex_aws virtual-host requests
CVE-2026-62270 5.9 MEDIUM Type confusion via structural idempotency guard in ExAws.Dynamo.Encoder.encode/2
CVE-2026-131902 5.9 MEDIUM XML injection via unescaped VersionId in ExAws.S3.delete_multiple_objects/3
CVE-2026-63582 5.8 MEDIUM S3 bucket name controls the host of presigned URLs in ex_aws_s3
CVE-2026-62269 5.1 MEDIUM S3 object key query-string injection and truncation via unencoded reserved characters in e
CVE-2026-63585 4.8 MEDIUM ExAws.S3 ACL grantee injection via unescaped grant headers in format_grant_header/1
CVE-2026-65621 2.1 LOW Unvalidated object metadata in ex_aws_s3 enables HTTP header (CRLF) injection into S3 requ
CVE-2026-63584 2.1 LOW Copy-source header injection in ExAws.S3.upload_part_copy/8 via unencoded source key
CVE-2026-62271 2.1 LOW ex_aws_kms defaults RSA key-material wrapping to PKCS#1 v1.5 in get_parameters_for_import/
CVE-2026-62273 2.1 LOW XML injection via unescaped tag keys and values in ex_aws_s3 object and bucket tagging

IV. Related Vulnerabilities