CVE-2026-65621Unvalidated object metadata in ex_aws_s3 enables HTTP header (CRLF) injection into S3…
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.
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
What the vendor says
As published in the CVE record by EEF, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- ex-aws ex_aws_s3: affected: 2.0.0 to before 2.6.0; fixed in
2.6.0 - ex-aws ex_aws_s3: affected: 4ce4d72219c0cb8de9356278203d8ea780311b75 to before fa941106c2e3b10de8e710d1a03eeb673b88096c
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).
Vendor advisories:
- https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-5887-vcfr-5ff8 (vendor-advisory)
- https://github.com/ex-aws/ex_aws_s3/commit/fa941106c2e3b10de8e710d1a03eeb673b88096c (patch)
References
- https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-5887-vcfr-5ff8
- https://cna.erlef.org/cves/CVE-2026-65621.html
- https://osv.dev/vulnerability/EEF-CVE-2026-65621
- https://github.com/ex-aws/ex_aws_s3/commit/4ce4d72219c0cb8de9356278203d8ea780311b75
- https://github.com/ex-aws/ex_aws_s3/commit/fa941106c2e3b10de8e710d1a03eeb673b88096c
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.