CVE-2026-65621: Unvalidated object metadata in ex_aws_s3 enables HTTP header (CRLF) injection into S3 requests
Published 2026-11-24 · Updated 2026-11-25 · Also known as EEF-CVE-2026-65621, GHSA-5887-vcfr-5ff8
Summary
The ex_aws_s3 package builds x-amz-meta-* request headers by interpolating user-supplied object metadata without validation, enabling HTTP header CRLF injection. Engineering teams using affected versions with metadata derived from untrusted input should update to version 2.6.0.
Who is affected
Deployments using ex_aws_s3 versions 2.0.0 through 2.5.9 are affected when object metadata is derived from untrusted end-user input and the configured HTTP adapter does not neutralize carriage return or line feed characters. This can lead to HTTP request splitting or arbitrary header injection into requests sent to the S3 endpoint. The practical impact heavily depends on whether the underlying HTTP adapter safely sanitizes header values.
Exploitability
The CVSS 4.0 vector indicates local access (AV:L), low attack complexity (AC:L), privileged attack requirements (AT:P), no user interaction required (UI:N), and low impacts to integrity (VI:L) with no confidentiality or availability impact. EPSS is not yet available, and CISA KEV lists no known exploitation.
Remediation
- Upgrade the Hex ex_aws_s3 package to version 2.6.0 or later.
- Reject or strip carriage return (CR) and line feed (LF) characters from object metadata keys and values before passing them to ex_aws_s3.
- Configure an HTTP adapter that neutralizes CR and LF in header values before writing them to the socket, such as hackney 4.x.
How to check your project
- Inspect project dependency files (such as mix.exs) to check if the ex_aws_s3 package is used within the vulnerable version range of 2.0.0 up to 2.6.0.
- Audit application code for uses of ExAws.S3.put_object/4 or other operations that pass untrusted input into the :meta option without prior CR/LF validation.
Automated analysis of the published advisory data, generated 2026-11-25. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Hex | ex_aws_s3 |
>= 2.0.0, < 2.6.0 | 2.6.0 | mix deps.update ex_aws_s3 |
CVSS 4.0 vector
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
| Attack vector | Local |
|---|---|
| Attack complexity | Low |
| Attack requirements | Present |
| Privileges required | None |
| User interaction | None |
| Confidentiality (vulnerable system) | None |
| Integrity (vulnerable system) | Low |
| Availability (vulnerable system) | None |
| Confidentiality (subsequent systems) | None |
| Integrity (subsequent systems) | Low |
| Availability (subsequent systems) | None |
Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.
FAQ
What causes the CRLF injection vulnerability in ex_aws_s3?
The vulnerability is caused by ExAws.S3.Utils.build_meta_headers/1 interpolating user-supplied object metadata directly into header names and values without checking for carriage return or line feed bytes.
Which versions of ex_aws_s3 are affected?
The issue affects ex_aws_s3 from version 2.0.0 before version 2.6.0.
Is exploitation dependent on the HTTP adapter?
Yes. The vulnerability is only fully exploitable when an application uses an HTTP adapter that does not neutralize CR/LF in header values. Adapters like hackney 4.x strip CR/LF by default, whereas adapters that do not perform validation will allow the injected headers through.
Original advisory description
References
- ADVISORY https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-5887-vcfr-5ff8
- WEB https://cna.erlef.org/cves/CVE-2026-65621.html
- WEB https://github.com/ex-aws/ex_aws_s3/commit/4ce4d72219c0cb8de9356278203d8ea780311b75
- FIX https://github.com/ex-aws/ex_aws_s3/commit/fa941106c2e3b10de8e710d1a03eeb673b88096c
- PACKAGE https://hex.pm/packages/ex_aws_s3
Source records: EEF-CVE-2026-65621 (OSV.dev) · EPSS by FIRST, 2026-11-26.