Unvalidated object metadata in ex_aws_s3 enables HTTP header (CRLF) injection into S3 requests

State
Published
Severity
2.1 Low
Published
Nov 24, 2026
Updated
Nov 24, 2026
Reserved
Jul 22, 2026

Read the record on cve.org

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.

ProductVersions
ex_aws_s3 ex-aws2.0.0 to before 2.6.0 Affected
ex_aws_s3 ex-aws4ce4d72219c0cb8de9356278203d8ea780311b75 to before fa941106c2e3b10de8e710d1a03eeb673b88096c Affected

Weaknesses

  • CWE-113 Improper Neutralization of CRLF Sequences in HTTP Headers

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.