EEF-CVE-2026-63584

Source
https://cna.erlef.org/osv/EEF-CVE-2026-63584.html
Import Source
https://cna.erlef.org/osv/EEF-CVE-2026-63584.json
JSON Data
https://api.osv.dev/v1/vulns/EEF-CVE-2026-63584
Aliases
  • GHSA-27g7-88jv-xqhq
  • CVE-2026-63584
Published
2026-11-24T14:15:10Z
Modified
2026-11-24T14:30:02Z
Severity
  • 2.1 (Low) CVSS_V4 - 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 (Source: CNA) CVSS Calculator
Summary
Copy-source header injection in ExAws.S3.upload_part_copy/8 via unencoded source key
Details

Summary

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.

Details

1. Encoding in the sibling function. put_object_copy in lib/ex_aws/s3.ex percent-encodes the source bucket and each path segment with URI.encode(..., &URI.char_unreserved?/1) before assembling the x-amz-copy-source header.

2. No encoding in upload_part_copy/8. upload_part_copy/8 builds the same header as "/#{src_bucket}/#{src_object}", interpolating the bucket and key raw.

3. Effect. Reserved characters in the source key (spaces, ?, &, =) are placed verbatim into the header and change the meaning of the copy-source reference, so the copy targets the wrong object or fails. A key containing \r or \n can split the header or inject additional headers into the outgoing request, depending on how the configured HTTP backend serializes headers.

Proof of concept

  1. An application copies a part whose source key comes from user input, calling ExAws.S3.upload_part_copy/8 and sending the operation with ExAws.request/2.
  2. The attacker supplies the source key evil key?x=1&y=2.
  3. upload_part_copy/8 interpolates it raw, so the request carries x-amz-copy-source: /src-bucket/evil key?x=1&y=2 instead of the encoded /src-bucket/evil%20key%3Fx%3D1%26y%3D2.
  4. The reserved characters change the copy-source reference; a key containing \r\n would additionally inject header lines, depending on the HTTP backend.

Impact

This is an output-encoding defect (missing percent-encoding) in the construction of the x-amz-copy-source header. Affected are applications that call ExAws.S3.upload_part_copy/8 with a source bucket or object key derived from untrusted input. The practical consequences range from a corrupted/incorrect copy-source reference (reserved characters) to header injection into the outgoing S3 request when the key contains CR/LF, the latter's reach depending on the HTTP client backend in use. Applications that only ever pass trusted, well-formed keys are not affected.

Workarounds

Percent-encode or otherwise sanitize the source bucket and object key before passing them to ExAws.S3.upload_part_copy/8. At minimum, reject (or strip) any value containing \r, \n, or the reserved URI characters that alter the copy-source reference. Encode each path segment with URI.encode(segment, &URI.char_unreserved?/1), mirroring how put_object_copy builds the same header.

Database specific
{
    "capec_ids":  [
        "CAPEC-105"
    ],
    "cpe_ids":  [
        "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
    ],
    "cwe_ids":  [
        "CWE-93"
    ]
}
References
Credits
    • Peter Ullrich - FINDER
    • Peter Ullrich - REPORTER
    • Jonatan Männchen / EEF - ANALYST
    • Peter Ullrich - COORDINATOR
    • Bernard Duggan - REMEDIATION_DEVELOPER

Affected packages

Hex / ex_aws_s3

Package

Name
ex_aws_s3
Purl
pkg:hex/ex_aws_s3

Affected ranges

Type
SEMVER
Events
Introduced
2.0.0
Fixed
2.6.0

Affected versions

2.*
2.0.0
2.0.1
2.0.2
2.1.0
2.2.0
2.3.0
2.3.1
2.3.2
2.3.3
2.4.0
2.5.0
2.5.1
2.5.2
2.5.3
2.5.4
2.5.5
2.5.6
2.5.7
2.5.8
2.5.9

Database specific

source
"https://cna.erlef.org/osv/EEF-CVE-2026-63584.json"

Git / github.com/ex-aws/ex_aws_s3

Affected ranges

Type
GIT
Repo
https://github.com/ex-aws/ex_aws_s3
Events

Affected versions

v2.*
v2.0.0
v2.0.1
v2.0.2
v2.1.0
v2.3.0
v2.3.1
v2.3.2
v2.3.3
v2.4.0
v2.5.0
v2.5.1
v2.5.2
v2.5.3
v2.5.4
v2.5.5
v2.5.7
v2.5.8
v2.5.9

Database specific

source
"https://cna.erlef.org/osv/EEF-CVE-2026-63584.json"