EEF-CVE-2026-62269

Source
https://cna.erlef.org/osv/EEF-CVE-2026-62269.html
Import Source
https://cna.erlef.org/osv/EEF-CVE-2026-62269.json
JSON Data
https://api.osv.dev/v1/vulns/EEF-CVE-2026-62269
Aliases
  • GHSA-96q9-mcc7-hqj8
  • CVE-2026-62269
Published
2026-11-24T11:40:27Z
Modified
2026-11-24T11:45:03Z
Severity
  • 5.1 (Medium) CVSS_V4 - CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N (Source: CNA) CVSS Calculator
Summary
S3 object key query-string injection and truncation via unencoded reserved characters in ex_aws
Details

Summary

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.

Details

1. URL assembly. ExAws.Request.Url.build/2 inserts the operation path (bucket and object key) verbatim, and URI.to_string/1 emits it without percent-encoding. A literal ? in the object key passes straight into the flattened URL string.

2. Path/query split. For S3, sanitize/2 recovers the path and query by splitting that string on the first ?. get_path/2 keeps only the portion before the ? as the path and runs it through uri_encode. Everything after the ? becomes the query string and is re-inserted without any encoding.

3. Signing and transmission. Because the split happens before uri_encode runs, the path encoder never sees the ?. The resulting request is signed and sent as built:

  • the key report.pdf?acl is sent as GET /report.pdf?acl, promoting ?acl from key bytes into a live S3 sub-resource parameter;
  • the key secret?<suffix> loses everything after the ? (for example an application-appended .json extension), so the request addresses a different object than the one the caller constructed.

Proof of concept

  1. An application lets users download text exports and builds the object key from a user-supplied filename, appending the extension itself: key = filename <> ".txt".
  2. It fetches the object through the public entry point: ExAws.S3.get_object(bucket, key) |> ExAws.request(config).
  3. A benign filename export yields the key export.txt and the request GET /victim-bucket/export.txt.
  4. The attacker supplies the filename export.dump?, producing the key export.dump?.txt.
  5. ex_aws sends GET /victim-bucket/export.dump with the query string .txt: the application's .txt suffix is moved into the query and dropped from the key.
  6. S3 returns the bytes of export.dump, an object of a different type the application never meant to expose.

Workarounds

Before constructing an S3 operation, percent-encode reserved characters in the object key (or reject keys that contain ? or #) so that no reserved character reaches the URL builder unencoded.

Configurations

The vulnerability is reachable only on the Amazon S3 request path (the code guarded by service "s3"), which applications typically issue through the ex_aws_s3 package. The application must construct S3 operations whose object keys derive from untrusted input (for example a download or upload keyed by a user-supplied filename or identifier). Requests to other AWS services, and S3 operations built entirely from trusted keys, do not reach the vulnerable behavior.

Database specific
{
    "capec_ids":  [
        "CAPEC-137"
    ],
    "cpe_ids":  [
        "cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"
    ],
    "cwe_ids":  [
        "CWE-116"
    ]
}
References
Credits
    • Peter Ullrich - FINDER
    • Peter Ullrich - REPORTER
    • Jonatan Männchen / EEF - ANALYST
    • Peter Ullrich - COORDINATOR
    • Bernard Duggan - REMEDIATION_DEVELOPER

Affected packages

Hex / ex_aws

Package

Name
ex_aws
Purl
pkg:hex/ex_aws

Affected ranges

Type
SEMVER
Events
Introduced
2.1.2
Fixed
2.8.0

Affected versions

2.*
2.1.2
2.1.3
2.1.4
2.1.5
2.1.6
2.1.7
2.1.8
2.1.9
2.2.0
2.2.1
2.2.2
2.2.3
2.2.4
2.2.5
2.2.6
2.2.7
2.2.8
2.2.9
2.2.10
2.3.0
2.3.1
2.3.2
2.3.3
2.3.4
2.4.0
2.4.1
2.4.2
2.4.3
2.4.4
2.5.0
2.5.1
2.5.2
2.5.3
2.5.4
2.5.5
2.5.6
2.5.7
2.5.8
2.5.9
2.5.10
2.5.11
2.6.0
2.6.1
2.7.0

Database specific

source
"https://cna.erlef.org/osv/EEF-CVE-2026-62269.json"

Git / github.com/ex-aws/ex_aws

Affected ranges

Type
GIT
Repo
https://github.com/ex-aws/ex_aws
Events

Affected versions

v2.*
v2.1.2
v2.1.5
v2.1.7
v2.2.0
v2.2.1
v2.2.10
v2.2.2
v2.2.3
v2.2.4
v2.2.5
v2.2.6
v2.2.7
v2.2.8
v2.2.9
v2.3.0
v2.3.1
v2.3.2
v2.3.3
v2.3.4
v2.4.0
v2.4.1
v2.4.2
v2.4.3
v2.4.4
v2.5.0
v2.5.1
v2.5.10
v2.5.2
v2.5.3
v2.5.4
v2.5.5
v2.5.6
v2.5.7
v2.5.8
v2.5.9
v2.6.0
v2.6.1

Database specific

source
"https://cna.erlef.org/osv/EEF-CVE-2026-62269.json"