# CVE-2026-65621: Unvalidated object metadata in ex\_aws\_s3 enables HTTP header (CRLF) injection into S3 requests

- **Severity:** LOW 2.1
- **CVSS:** 2.1 (v4.0, CNA) `CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: Low; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: Low; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 19, 2026-11-28)
- **CWE:** CWE-113
- **Published:** 2026-11-24T14:13:06.909Z
- **Modified:** 2026-11-24T19:12:16.707Z

## Who should check

- Anyone running ex-aws ex\_aws\_s3 \>= 2.0.0, \< 2.6.0
- Anyone running ex-aws ex\_aws\_s3 \>= 4ce4d72219c0cb8de9356278203d8ea780311b75, \< fa941106c2e3b10de8e710d1a03eeb673b88096c

## Description

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.

## Affected and fixed versions

- ex-aws ex\_aws\_s3: \>= 2.0.0, \< 2.6.0 (cvelist)
- ex-aws ex\_aws\_s3: \>= 4ce4d72219c0cb8de9356278203d8ea780311b75, \< fa941106c2e3b10de8e710d1a03eeb673b88096c (cvelist)

## Mitigation

- Upgrade ex\_aws\_s3 to 2.6.0 or later.
- Vendor workaround: Reject or strip carriage return (CR) and line feed (LF) characters from object metadata keys and values before passing them to ex\_aws\_s3, or configure an HTTP adapter that neutralizes CR/LF in header values before writing them to the socket (for example hackney 4.x).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-65621. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-65621.md
Affected: ex-aws ex_aws_s3 >= 2.0.0, < 2.6.0; ex-aws ex_aws_s3 >= 4ce4d72219c0cb8de9356278203d8ea780311b75, < fa941106c2e3b10de8e710d1a03eeb673b88096c
Fixed in: ex-aws ex_aws_s3 2.6.0

Steps:
1. Search this machine and project for ex-aws ex_aws_s3: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-65621 being exploited?

There is no confirmed exploitation: CVE-2026-65621 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-65621?

Low: CVSS 2.1 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-65621?

ex-aws ex\_aws\_s3 \>= 2.0.0, \< 2.6.0; ex-aws ex\_aws\_s3 \>= 4ce4d72219c0cb8de9356278203d8ea780311b75, \< fa941106c2e3b10de8e710d1a03eeb673b88096c.

### Is there a fix for CVE-2026-65621?

Yes. Fixed in ex-aws ex\_aws\_s3 2.6.0. Upgrade ex\_aws\_s3 to 2.6.0 or later. Vendor workaround: Reject or strip carriage return (CR) and line feed (LF) characters from object metadata keys and values before passing them to ex\_aws\_s3, or configure an HTTP adapter that neutralizes CR/LF in header values before writing them to the socket (for example hackney 4.x).

### How do I check if I'm affected by CVE-2026-65621?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-5887-vcfr-5ff8>
- patch: <https://github.com/ex-aws/ex_aws_s3/commit/4ce4d72219c0cb8de9356278203d8ea780311b75>
- patch: <https://github.com/ex-aws/ex_aws_s3/commit/fa941106c2e3b10de8e710d1a03eeb673b88096c>
- other: <https://cna.erlef.org/cves/CVE-2026-65621.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-65621>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-65621>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-65621> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-65621>
