Unvalidated object metadata in ex_aws_s3 enables HTTP header (CRLF) injection into S3 requests
CVE-2026-65621Published 24 Nov 2026, 14:13 UTC
Real-world risk
0.6/ 10Low
Routine
If the vulnerable configuration applies to you: 1.3
PreliminaryFrom the CVSS vector only · confidence low
CVSS
2.1
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from EEF)
ex_aws_s3 builds x-amz-meta-* request headers by interpolating user-supplied object metadata directly into header names and values without any validation. In ExAws.S3.Utils.build_meta_headers/1 (lib/ex_aws/s3/utils.ex), each :meta entry is turned into a header as {"x-amz-meta-#{k}", v} with no check for carriage return (CR), line feed (LF), or other illegal header bytes. Object metadata is routinely derived from end-user input (for example an upload service that lets users attach a comment or label to an object). When such input reaches ExAws.S3.put_object/4 or any other operation accepting the :meta option, a value containing CR/LF is carried unchanged into the outbound header list. If the configured HTTP adapter does not neutralize header values before writing them to the socket, the embedded CRLF starts a new header line, allowing an attacker to inject arbitrary headers into (or split) the HTTP request the library sends to the S3 endpoint. This is an HTTP header (CRLF) injection leading to HTTP request splitting. The practical impact depends on the HTTP adapter, and no authentication is required beyond the ability to influence object metadata. This issue affects ex_aws_s3: from 2.0.0 before 2.6.0.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| ex_aws_s3Niche | >= 2.0.0, < 2.6.0 | 2.6.0 |
What to do
Update to a fixed version: 2.6.0.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.3% chance of exploitation in 30 days (percentile 28), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.225
- Threat T1: Nothing known0.850
- 10 × impact 0.3 × prerequisites 0.225 × threat 0.850.574
- Rounded to one decimal between 0.1 and 100.6
Exploitation and evidence timeline
- 24 Nov 2026 Published
- 3 Dec 2026 Risk 0.6 (cvss fallback)
Weakness
CWE-113
References
- https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-5887-vcfr-5ff8related, vendor-advisory
- https://cna.erlef.org/cves/CVE-2026-65621.htmlrelated
- https://osv.dev/vulnerability/EEF-CVE-2026-65621related
- https://github.com/ex-aws/ex_aws_s3/commit/4ce4d72219c0cb8de9356278203d8ea780311b75related
- https://github.com/ex-aws/ex_aws_s3/commit/fa941106c2e3b10de8e710d1a03eeb673b88096cpatch
- CVE-2026-65621 on CVE.org