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.
Advisories

No advisories yet.

Fixes

Solution

No solution given by the 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).

History

Tue, 24 Nov 2026 14:30:00 +0000

Type Values Removed Values Added
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.
Title Unvalidated object metadata in ex_aws_s3 enables HTTP header (CRLF) injection into S3 requests
First Time appeared Ex-aws
Ex-aws ex Aws S3
Weaknesses CWE-113
CPEs cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
Vendors & Products Ex-aws
Ex-aws ex Aws S3
References
Metrics cvssV4_0

{'score': 2.1, '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'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: EEF

Published:

Updated: 2026-11-24T14:13:06.909Z

Reserved: 2026-07-22T13:55:59.401Z

Link: CVE-2026-65621

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-11-24T15:17:39.290

Modified: 2026-11-24T19:12:16.707

Link: CVE-2026-65621

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-24T18:00:09Z

Weaknesses