{"id":"CVE-2026-63584","aliases":["CVE-2026-63584","EEF-CVE-2026-63584","GHSA-27g7-88jv-xqhq"],"related":[],"kind":"vulnerability","state":"published","title":"Copy-source header injection in ExAws.S3.upload_part_copy/8 via unencoded source key","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.\n\nExAws.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.\n\nWhen 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.\n\nApplications 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.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.\n\nExAws.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.\n\nWhen 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.\n\nApplications 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.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nImproper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in ex-aws ex_aws_s3 allows HTTP header injection via an attacker-controlled copy-source key.\n\n`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.\n\nWhen 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.\n\nApplications 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.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0.\n\n## Details\n\n**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.\n\n**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.\n\n**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.\n\n## Proof of concept\n\n1. 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`.\n2. The attacker supplies the source key `evil key?x=1&y=2`.\n3. `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`.\n4. The reserved characters change the copy-source reference; a key containing `\\r\\n` would additionally inject header lines, depending on the HTTP backend.\n\n## Impact\n\nThis 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.\n\n## Workarounds\n\nPercent-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.","format":"markdown","source":"eef"}],"published":"2026-11-24T14:15:10.351Z","modified":"2026-11-25T17:23:09.263Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","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","score":2.1,"rating":"LOW"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","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","score":2.1,"rating":"LOW"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","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"}],"cwes":["CWE-93"],"affected":[{"ranges":[{"type":"semver","introduced":"2.0.0","fixed":"2.6.0","status":"affected"}],"vendor":"ex-aws","product":"ex_aws_s3","package":"ex_aws_s3","cpe":"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*","repo":"https://github.com/ex-aws/ex_aws_s3","source":"cvelist"},{"ranges":[{"type":"git","introduced":"4ce4d72219c0cb8de9356278203d8ea780311b75","fixed":"b708beb7cbd0fe2ab7ce685834bb664397e4df1e","status":"affected"}],"vendor":"ex-aws","product":"ex_aws_s3","package":"ex-aws/ex_aws_s3","cpe":"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*","repo":"https://github.com/ex-aws/ex_aws_s3","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.6.0"}],"ecosystem":"Hex","package":"ex_aws_s3","purl":"pkg:hex/ex_aws_s3","source":"eef"},{"ranges":[{"type":"git","introduced":"4ce4d72219c0cb8de9356278203d8ea780311b75","status":"affected","fixed":"b708beb7cbd0fe2ab7ce685834bb664397e4df1e"}],"repo":"https://github.com/ex-aws/ex_aws_s3","source":"eef"}],"references":[{"url":"https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-27g7-88jv-xqhq","tags":["advisory","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-63584.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-63584","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ex-aws/ex_aws_s3/commit/4ce4d72219c0cb8de9356278203d8ea780311b75","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/ex-aws/ex_aws_s3/commit/b708beb7cbd0fe2ab7ce685834bb664397e4df1e","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/ex_aws_s3","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Jonatan Männchen / EEF","Bernard Duggan"],"assigner":"EEF","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-63584","url":"https://www.cve.org/CVERecord?id=CVE-2026-63584","licence":"CVE Terms of Use","modified":"2026-11-24T14:15:10.351Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-63584","url":"https://osv.dev/vulnerability/EEF-CVE-2026-63584","licence":"CC-BY-4.0","modified":"2026-11-25T17:23:09.263Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-63584","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63584","licence":"Public domain","modified":"2026-11-24T19:12:16.707Z"}],"updatedAt":"2026-11-25T22:59:52.832Z","epss":{"score":0.00275,"percentile":0.12594,"date":"2026-11-30T12:00:22.000Z"}}