CVE-2026-62269: S3 object key query-string injection and truncation via unencoded reserved characters in ex_aws

Published Nov 24, 2026
·
Updated

Improper Encoding or Escaping of Output vulnerability in exaws (S3 request URL construction).

This vulnerability is associated with program files lib/exaws/request/url.ex and program routines ExAws.Request.Url.build/2, ExAws.Request.Url.sanitize/2 and ExAws.Request.Url.getpath/2.

exaws 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.tostring/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 uriencode 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 exaws: from 2.1.2 before 2.8.0.

Affected Software

1 affected component
hex/ex_aws>=2.1.2<2.8.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ex_aws to a version that resolves this vulnerability.

    Fixed in 2.8.0

Event History

Nov 24, 2026
CVE Published
via MITRE·11:40 AM
Data Sourced
via MITRE·11:40 AM
DescriptionWeakness

Frequently Asked Questions

1

Which applications are most exposed to this issue?

Applications using ex_aws for S3 requests are exposed when any part of an object key is derived from attacker-controlled input, such as a user-supplied upload or download filename. Risk is especially relevant where the application appends its own suffixes to that input.

2

What input does an attacker need to provide?

The attacker needs control over a portion of the S3 object key and must be able to include a literal question-mark character (?) in it. Text after that character can be treated as a query string rather than as part of the object key.

3

What can the malformed request do?

It can truncate the intended key after the injected question mark, causing the request to target a different object than intended. It can also inject active S3 sub-resource operations, including acl, tagging, or versions; the manipulated URL is signed by the application.

4

How can teams identify potentially affected request paths?

Review ex_aws S3 operations for object keys assembled from user-controlled values and determine whether those values can contain a literal ?. Pay particular attention to paths that add application-controlled text after a user-provided filename or key component.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203