CVE-2026-63584 in ex_aws_s3info

Summary

by MITRE • 11/24/2026

Improper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in ex-aws ex_aws_s3 allows HTTP header injection via an attacker-controlled copy-source key.

ExAws.S3.upload_part_copy/8 in lib/ex_aws/s3.ex builds the x-amz-copy-source request header by interpolating the source bucket and object key directly into "/#{src_bucket}/#{src_object}" with no percent-encoding. The sibling function put_object_copy percent-encodes the bucket and each path segment before assembling the same header, but upload_part_copy skips encoding entirely.

When the source key is derived from untrusted input, reserved characters (spaces, ?, &, =) pass through verbatim and corrupt the copy-source reference, so the copy targets the wrong object or fails. A key containing \r or \n can split or inject additional headers into the outgoing HTTP request, depending on how the configured HTTP backend serializes headers.

Applications that pass a source bucket or object key derived from untrusted input to ExAws.S3.upload_part_copy/8 are affected. Applications that only ever pass trusted, well-formed keys are not affected.

This issue affects ex_aws_s3: from 2.0.0 before 2.6.0.

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Analysis

by VulDB Data Team • 11/24/2026

The vulnerability identified as CRLF injection in the ExAws S3 library represents a critical flaw in how HTTP headers are constructed during multipart copy operations within Amazon Simple Storage Service interactions. This specific issue resides in the ex_aws_s3 module, particularly affecting versions from 2.0.0 up to but not including 2.6.0. The core technical failure lies in the implementation of the upload_part_copy function located in lib/ex_aws/s3.ex. When this function is invoked to copy an object part from a source location, it constructs the x-amz-copy-source header by directly interpolating the provided source bucket name and object key into a string format without applying any percent-encoding or sanitization. This stands in stark contrast to other functions within the same library, such as put_object_copy, which correctly implement encoding for each path segment before assembling the request headers. The absence of this protective measure creates a direct pathway for attackers who can control the input values used for the source bucket or object key to manipulate the resulting HTTP transaction.

From a technical perspective, the flaw allows an attacker to inject arbitrary characters into the header value by supplying specially crafted strings as part of the copy-source parameter. While standard reserved characters like spaces, question marks, ampersands, and equals signs will simply corrupt the reference causing the operation to target the wrong object or fail entirely, the inclusion of carriage return (\r) and line feed (\n) sequences poses a far more severe risk. These control characters can terminate the current header field prematurely and introduce new headers into the HTTP request stream. Depending on how the underlying HTTP backend serializes these headers, this manipulation can lead to response splitting attacks or allow an attacker to inject malicious directives that alter the behavior of downstream systems or logging mechanisms. This type of vulnerability is classified under CWE-138 as Improper Neutralization of CRLF Sequences in Headers and aligns with ATT&CK technique T1557, which covers Adversary-in-the-Middle scenarios where header injection can be used to intercept or modify communications between the client and the S3 service.

The operational impact of this vulnerability is significant for any application that processes untrusted data when performing multipart copy operations via ExAws.S3.upload_part_copy/8. If an attacker successfully injects headers, they may potentially bypass security controls such as authentication checks if those are implemented in custom middleware or proxy layers that parse the request headers before forwarding them to S3. Furthermore, injected headers could be used for server-side request forgery by manipulating host headers or other directives that influence routing decisions within internal networks. Even without successful injection of functional malicious headers, the corruption of the copy-source reference can lead to data integrity issues where files are copied from unintended sources, potentially exposing sensitive information if the wrong object is selected due to character interference in the path structure.

Mitigation strategies must focus on immediate patching and input validation. The primary remediation step is to upgrade the ex_aws_s3 dependency to version 2.6.0 or later, where this encoding oversight has been corrected. For applications that cannot immediately update their dependencies, a defensive coding approach involves implementing strict allow-lists for source bucket names and object keys at the application layer before they are passed to the library functions. Developers should ensure that all inputs derived from user requests undergo rigorous validation to exclude control characters such as carriage returns and line feeds. Additionally, employing web application firewalls or reverse proxies with robust header parsing capabilities can provide a secondary layer of defense by detecting and blocking malformed HTTP headers containing CRLF sequences before they reach the application logic. Regular security audits focusing on how external data is interpolated into API requests are essential to prevent similar injection vulnerabilities in other parts of the codebase.

Responsible

EEF

Reservation

07/17/2026

Disclosure

11/24/2026

Moderation

accepted

CPE

ready

EPSS

0.00275

KEV

no

Activities

very low

Sources

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!