Read the docs

S3 object key truncation and injection in ex_aws

Priority LOW 23CWE-116Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
—
Confidentiality · integrity · availability
Low · Low · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

ex_aws from 2.1.2 before 2.8.0 does not percent-encode reserved characters in S3 object keys when it builds the request URL, a flaw of improper output encoding (CWE-116). A question mark in a key is read as the start of the query string, so a local attacker who controls part of an object key, such as a user-supplied filename, can truncate the key and add S3 subresource operations like acl or tagging. The manipulated request is signed and sent like a legitimate one, so the change is authorized.

Written with Claude Haiku 5.5 from the sources below · 2026-11-24

Description from the CNA

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 to address a different object than the application intended, and can inject live S3 sub-resource operations (such as ?acl, ?tagging or ?versions) into the request. The manipulated URL is signed and transmitted normally, so the tampering is authorized like any legitimate request. This issue affects ex_aws: from 2.1.2 before 2.8.0.

Why it matters now

EPSS 0.00223 7th percentileScored 2026-11-30
Fix Fixed ex_aws (ex-aws): 2.8.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
ex-awsex_aws2.1.2 to before 2.8.02.8.0Patch availableCNA
  • ex_aws Vendorex-aws Affected 2.1.2 to before 2.8.0 Fixed in 2.8.0 Patch available CNA

CPE names CNA · 1

CPEVersionsRoleVendor
cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*———
  • cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:* Versions — — ·—

Remediation

Upgrade ex_aws to version 2.8.0, the fixed version. The sources list no advisory identifier for this fix.

Written with Claude Haiku 5.5 from the sources below · 2026-11-24

  • Fix · CNA ex_aws (ex-aws) Fixed in 2.8.0

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    ex-aws ex_aws 2.8.0

    4 records Highest priority Priority LOW 4 LOW

    Other records, highest priority first

    • TI-2026-97227 ex_aws IMDSv2 token request follows HTTP redirects (SSRF)Priority LOW 33
    • TI-2026-97235 ex_aws normalizes .. in S3 object keys client-side, allowing bucket or key-prefix escapePriority LOW 32
    • TI-2026-97241 Server-side request forgery in ex_aws S3 virtual-host requestsPriority LOW 26

Timeline

  1. 2026-11-24 Threatist record created from CVE-2026-62269
  2. 2026-11-24 Alias added: GHSA-jp2q-3hxx-j4hr

References

  • TI-2026-97430 XML injection in ex_aws_s3 bucket configuration builders CVSS 4.0MEDIUM 6.9
  • TI-2026-97439 XML injection in ExAws S3 batch delete lets attackers remove extra objects CVSS 4.0MEDIUM 5.9
  • TI-2026-97429 XML injection in ex_aws_s3 object and bucket tagging CVSS 4.0LOW 2.1
  • TI-2026-34676 ex_aws_sns SigningCertURL not validated in verify_message/1 CVSS 4.0HIGH 8.7
  • TI-2026-97227 ex_aws IMDSv2 token request follows HTTP redirects (SSRF) CVSS 4.0HIGH 7.6
  • TI-2026-97235 ex_aws normalizes .. in S3 object keys client-side, allowing bucket or key-prefix escape CVSS 4.0HIGH 7.4
See all 16 →

Sources