Search

Find a vulnerability

Search criteria

    16 vulnerabilities found for ex_aws_s3 by ex-aws

    CVE-2026-65621 (GCVE-0-2026-65621)

    Vulnerability from nvd – Published: 2026-11-24 14:13 – Updated: 2026-11-24 14:13
    VLAI
    Title
    Unvalidated object metadata in ex_aws_s3 enables HTTP header (CRLF) injection into S3 requests
    Summary
    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.
    CWE
    • CWE-113 - Improper Neutralization of CRLF Sequences in HTTP Headers
    Impacted products
    Vendor Product Version
    ex-aws ex_aws_s3 Affected: 2.0.0 , < 2.6.0 (semver)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ex-aws ex_aws_s3 Affected: 4ce4d72219c0cb8de9356278203d8ea780311b75 , < fa941106c2e3b10de8e710d1a03eeb673b88096c (git)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 14:13
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3.Utils\u0027",
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex_aws_s3",
              "packageURL": "pkg:hex/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3/utils.ex",
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3.Utils\u0027:build_meta_headers/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_object/4"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "2.6.0",
                  "status": "affected",
                  "version": "2.0.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3.Utils\u0027",
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex-aws/ex_aws_s3",
              "packageURL": "pkg:github/ex-aws/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3/utils.ex",
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3.Utils\u0027:build_meta_headers/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_object/4"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "fa941106c2e3b10de8e710d1a03eeb673b88096c",
                  "status": "affected",
                  "version": "4ce4d72219c0cb8de9356278203d8ea780311b75",
                  "versionType": "git"
                }
              ]
            }
          ],
          "configurations": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eThe vulnerability is only exploitable when an application both populates object \u003ccode\u003e:meta\u003c/code\u003e entries from untrusted input and uses an HTTP adapter that does not neutralize CR/LF in header values before writing them to the socket. The default adapter (hackney 4.x) strips CR/LF from header values, which masks the issue; the library performs no validation of its own and silently delegates safety to the configured HTTP client.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "The vulnerability is only exploitable when an application both populates object `:meta` entries from untrusted input and uses an HTTP adapter that does not neutralize CR/LF in header values before writing them to the socket. The default adapter (hackney 4.x) strips CR/LF from header values, which masks the issue; the library performs no validation of its own and silently delegates safety to the configured HTTP client."
                }
              ],
              "value": "The vulnerability is only exploitable when an application both populates object :meta entries from untrusted input and uses an HTTP adapter that does not neutralize CR/LF in header values before writing them to the socket. The default adapter (hackney 4.x) strips CR/LF from header values, which masks the issue; the library performs no validation of its own and silently delegates safety to the configured HTTP client."
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.6.0",
                      "versionStartIncluding": "2.0.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "analyst",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Bernard Duggan"
            }
          ],
          "datePublic": "2026-11-24T14:13:06.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eex_aws_s3 builds \u003ccode\u003ex-amz-meta-*\u003c/code\u003e request headers by interpolating user-supplied object metadata directly into header names and values without any validation. In \u003ccode\u003eExAws.S3.Utils.build_meta_headers/1\u003c/code\u003e (\u003ccode\u003elib/ex_aws/s3/utils.ex\u003c/code\u003e), each \u003ccode\u003e:meta\u003c/code\u003e entry is turned into a header as \u003ccode\u003e{\"x-amz-meta-#{k}\", v}\u003c/code\u003e with no check for carriage return (CR), line feed (LF), or other illegal header bytes.\u003c/p\u003e\n\u003cp\u003eObject 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 \u003ccode\u003eExAws.S3.put_object/4\u003c/code\u003e or any other operation accepting the \u003ccode\u003e:meta\u003c/code\u003e 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.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "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.\n\nObject 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.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
                }
              ],
              "value": "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.\n\nObject 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.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-105",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eThis is an HTTP header (CRLF) injection / request-splitting issue. Anyone using \u003ccode\u003eex_aws_s3\u003c/code\u003e to store objects whose metadata is derived from untrusted input (upload services, multi-tenant file stores, anything exposing object metadata over an HTTP boundary) is affected. The practical impact depends on the configured HTTP adapter: adapters that validate header values will reject or strip the injection, but the library offers no guarantee and performs no validation of its own, so the safety of the request is silently delegated to the HTTP client.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "This is an HTTP header (CRLF) injection / request-splitting issue. Anyone using `ex_aws_s3` to store objects whose metadata is derived from untrusted input (upload services, multi-tenant file stores, anything exposing object metadata over an HTTP boundary) is affected. The practical impact depends on the configured HTTP adapter: adapters that validate header values will reject or strip the injection, but the library offers no guarantee and performs no validation of its own, so the safety of the request is silently delegated to the HTTP client."
                    }
                  ],
                  "value": "This is an HTTP header (CRLF) injection / request-splitting issue. Anyone using ex_aws_s3 to store objects whose metadata is derived from untrusted input (upload services, multi-tenant file stores, anything exposing object metadata over an HTTP boundary) is affected. The practical impact depends on the configured HTTP adapter: adapters that validate header values will reject or strip the injection, but the library offers no guarantee and performs no validation of its own, so the safety of the request is silently delegated to the HTTP client."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "LOCAL",
                "baseScore": 2.1,
                "baseSeverity": "LOW",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "LOW",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "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",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "LOW",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-113",
                  "description": "CWE-113 Improper Neutralization of CRLF Sequences in HTTP Headers",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T14:13:06.909Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-5887-vcfr-5ff8"
            },
            {
              "name": "EEF CNA record for CVE-2026-65621",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-65621.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-65621",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-65621"
            },
            {
              "name": "Introducing commit 4ce4d72 in ex-aws/ex_aws_s3",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/4ce4d72219c0cb8de9356278203d8ea780311b75"
            },
            {
              "name": "Fix commit fa94110 in ex-aws/ex_aws_s3",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/fa941106c2e3b10de8e710d1a03eeb673b88096c"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "Unvalidated object metadata in ex_aws_s3 enables HTTP header (CRLF) injection into S3 requests",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eReject 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).\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "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)."
                }
              ],
              "value": "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)."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eAn upload service forwards user-supplied metadata: \u003ccode\u003eExAws.S3.put_object(\"victim-bucket\", \"uploads/file.txt\", \"hello\", meta: [{\"comment\", value}])\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker sets the value to \u003ccode\u003elegit\\r\\nX-Injected-By-Attacker: pwned\\r\\nX-Smuggled: yes\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ebuild_meta_headers/1\u003c/code\u003e copies it verbatim into the \u003ccode\u003ex-amz-meta-comment\u003c/code\u003e header.\u003c/li\u003e\n\u003cli\u003eWith an adapter that does not reject CR/LF, the bytes on the wire contain \u003ccode\u003eX-Injected-By-Attacker: pwned\u003c/code\u003e and \u003ccode\u003eX-Smuggled: yes\u003c/code\u003e as separate header lines.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. An upload service forwards user-supplied metadata: `ExAws.S3.put_object(\"victim-bucket\", \"uploads/file.txt\", \"hello\", meta: [{\"comment\", value}])`.\n2. The attacker sets the value to `legit\\r\\nX-Injected-By-Attacker: pwned\\r\\nX-Smuggled: yes`.\n3. `build_meta_headers/1` copies it verbatim into the `x-amz-meta-comment` header.\n4. With an adapter that does not reject CR/LF, the bytes on the wire contain `X-Injected-By-Attacker: pwned` and `X-Smuggled: yes` as separate header lines."
                }
              ],
              "value": "* An upload service forwards user-supplied metadata: ExAws.S3.put_object(\"victim-bucket\", \"uploads/file.txt\", \"hello\", meta: [{\"comment\", value}]).\n* The attacker sets the value to legit\\r\\nX-Injected-By-Attacker: pwned\\r\\nX-Smuggled: yes.\n* build_meta_headers/1 copies it verbatim into the x-amz-meta-comment header.\n* With an adapter that does not reject CR/LF, the bytes on the wire contain X-Injected-By-Attacker: pwned and X-Smuggled: yes as separate header lines."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Unvalidated header construction.\u003c/strong\u003e \u003ccode\u003eExAws.S3.Utils.build_meta_headers/1\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3/utils.ex\u003c/code\u003e turns each \u003ccode\u003e:meta\u003c/code\u003e entry into \u003ccode\u003e{\"x-amz-meta-#{k}\", v}\u003c/code\u003e. Neither the key nor the value is checked for CR, LF or other illegal header bytes.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Untrusted metadata.\u003c/strong\u003e Object metadata is routinely populated from end-user input, such as a comment or label attached to an upload. A value like \u003ccode\u003e\"legit\\r\\nX-Injected-By-Attacker: pwned\"\u003c/code\u003e reaches the header list unchanged through \u003ccode\u003eExAws.S3.put_object/4\u003c/code\u003e or any operation taking \u003ccode\u003e:meta\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Header injection.\u003c/strong\u003e If the HTTP adapter does not validate header values before writing them to the socket, the embedded CRLF ends the \u003ccode\u003ex-amz-meta-*\u003c/code\u003e line and starts a new one, injecting arbitrary headers into, or splitting, the request sent to S3. The library delegates this safety to the adapter entirely.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Unvalidated header construction.** `ExAws.S3.Utils.build_meta_headers/1` in `lib/ex_aws/s3/utils.ex` turns each `:meta` entry into `{\"x-amz-meta-#{k}\", v}`. Neither the key nor the value is checked for CR, LF or other illegal header bytes.\n\n**2. Untrusted metadata.** Object metadata is routinely populated from end-user input, such as a comment or label attached to an upload. A value like `\"legit\\r\\nX-Injected-By-Attacker: pwned\"` reaches the header list unchanged through `ExAws.S3.put_object/4` or any operation taking `:meta`.\n\n**3. Header injection.** If the HTTP adapter does not validate header values before writing them to the socket, the embedded CRLF ends the `x-amz-meta-*` line and starts a new one, injecting arbitrary headers into, or splitting, the request sent to S3. The library delegates this safety to the adapter entirely."
                }
              ],
              "value": "1. Unvalidated header construction. ExAws.S3.Utils.build_meta_headers/1 in lib/ex_aws/s3/utils.ex turns each :meta entry into {\"x-amz-meta-#{k}\", v}. Neither the key nor the value is checked for CR, LF or other illegal header bytes.\n\n2. Untrusted metadata. Object metadata is routinely populated from end-user input, such as a comment or label attached to an upload. A value like \"legit\\r\\nX-Injected-By-Attacker: pwned\" reaches the header list unchanged through ExAws.S3.put_object/4 or any operation taking :meta.\n\n3. Header injection. If the HTTP adapter does not validate header values before writing them to the socket, the embedded CRLF ends the x-amz-meta-* line and starts a new one, injecting arbitrary headers into, or splitting, the request sent to S3. The library delegates this safety to the adapter entirely."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-65621",
        "datePublished": "2026-11-24T14:13:06.909Z",
        "dateReserved": "2026-07-22T13:55:59.401Z",
        "dateUpdated": "2026-11-24T14:13:06.909Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-63585 (GCVE-0-2026-63585)

    Vulnerability from nvd – Published: 2026-11-24 14:13 – Updated: 2026-11-24 14:13
    VLAI
    Title
    ExAws.S3 ACL grantee injection via unescaped grant headers in format_grant_header/1
    Summary
    ExAws.S3 constructs S3 ACL grant headers (such as x-amz-grant-read and x-amz-grant-full-control) in format_grant_header/1 by interpolating grantee identifiers into a quoted, comma-separated list without escaping. Grantee email and id values are wrapped in double quotes and joined with a comma, but double-quote, comma, and CR/LF characters in the value are not neutralized. An application that passes an attacker-influenced grantee value (for example an email address taken from a "share this object" feature) into an ACL grant option (grant_read, grant_write, grant_read_acp, grant_write_acp, or grant_full_control) lets the attacker close the quoted token and inject an additional grantee, such as the attacker's own canonical id or the predefined AllUsers group URI, into the header. S3 then applies the injected grantee, granting an arbitrary principal the same permission (up to full control or public access) in an unintended ACL grantee-injection and privilege-escalation issue. This issue affects ex_aws_s3: from 2.0.0 before 2.6.0.
    CWE
    • CWE-116 - Improper Encoding or Escaping of Output
    Impacted products
    Vendor Product Version
    ex-aws ex_aws_s3 Affected: 2.0.0 , < 2.6.0 (semver)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ex-aws ex_aws_s3 Affected: 4ce4d72219c0cb8de9356278203d8ea780311b75 , < dd422637a46203d01cc47fd832836758f8090556 (git)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 14:13
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3.Utils\u0027",
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex_aws_s3",
              "packageURL": "pkg:hex/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3/utils.ex",
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3.Utils\u0027:format_grant_header/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_object_acl/3"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_acl/3"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "2.6.0",
                  "status": "affected",
                  "version": "2.0.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3.Utils\u0027",
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex-aws/ex_aws_s3",
              "packageURL": "pkg:github/ex-aws/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3/utils.ex",
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3.Utils\u0027:format_grant_header/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_object_acl/3"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_acl/3"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "dd422637a46203d01cc47fd832836758f8090556",
                  "status": "affected",
                  "version": "4ce4d72219c0cb8de9356278203d8ea780311b75",
                  "versionType": "git"
                }
              ]
            }
          ],
          "configurations": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eThe vulnerability requires the host application to pass untrusted input into an \u003ccode\u003eExAws.S3\u003c/code\u003e ACL grant option (\u003ccode\u003egrant_read\u003c/code\u003e, \u003ccode\u003egrant_write\u003c/code\u003e, \u003ccode\u003egrant_read_acp\u003c/code\u003e, \u003ccode\u003egrant_write_acp\u003c/code\u003e, or \u003ccode\u003egrant_full_control\u003c/code\u003e). Applications that only pass trusted, validated grantee identifiers into these options are not affected.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "The vulnerability requires the host application to pass untrusted input into an `ExAws.S3` ACL grant option (`grant_read`, `grant_write`, `grant_read_acp`, `grant_write_acp`, or `grant_full_control`). Applications that only pass trusted, validated grantee identifiers into these options are not affected."
                }
              ],
              "value": "The vulnerability requires the host application to pass untrusted input into an ExAws.S3 ACL grant option (grant_read, grant_write, grant_read_acp, grant_write_acp, or grant_full_control). Applications that only pass trusted, validated grantee identifiers into these options are not affected."
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.6.0",
                      "versionStartIncluding": "2.0.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "analyst",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Bernard Duggan"
            }
          ],
          "datePublic": "2026-11-24T14:13:11.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003ccode\u003eExAws.S3\u003c/code\u003e constructs S3 ACL grant headers (such as \u003ccode\u003ex-amz-grant-read\u003c/code\u003e and \u003ccode\u003ex-amz-grant-full-control\u003c/code\u003e) in \u003ccode\u003eformat_grant_header/1\u003c/code\u003e by interpolating grantee identifiers into a quoted, comma-separated list without escaping. Grantee email and id values are wrapped in double quotes and joined with a comma, but double-quote, comma, and CR/LF characters in the value are not neutralized. An application that passes an attacker-influenced grantee value (for example an email address taken from a \"share this object\" feature) into an ACL grant option (\u003ccode\u003egrant_read\u003c/code\u003e, \u003ccode\u003egrant_write\u003c/code\u003e, \u003ccode\u003egrant_read_acp\u003c/code\u003e, \u003ccode\u003egrant_write_acp\u003c/code\u003e, or \u003ccode\u003egrant_full_control\u003c/code\u003e) lets the attacker close the quoted token and inject an additional grantee, such as the attacker\u0027s own canonical id or the predefined AllUsers group URI, into the header. S3 then applies the injected grantee, granting an arbitrary principal the same permission (up to full control or public access) in an unintended ACL grantee-injection and privilege-escalation issue.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "`ExAws.S3` constructs S3 ACL grant headers (such as `x-amz-grant-read` and `x-amz-grant-full-control`) in `format_grant_header/1` by interpolating grantee identifiers into a quoted, comma-separated list without escaping. Grantee email and id values are wrapped in double quotes and joined with a comma, but double-quote, comma, and CR/LF characters in the value are not neutralized. An application that passes an attacker-influenced grantee value (for example an email address taken from a \"share this object\" feature) into an ACL grant option (`grant_read`, `grant_write`, `grant_read_acp`, `grant_write_acp`, or `grant_full_control`) lets the attacker close the quoted token and inject an additional grantee, such as the attacker\u0027s own canonical id or the predefined AllUsers group URI, into the header. S3 then applies the injected grantee, granting an arbitrary principal the same permission (up to full control or public access) in an unintended ACL grantee-injection and privilege-escalation issue.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
                }
              ],
              "value": "ExAws.S3 constructs S3 ACL grant headers (such as x-amz-grant-read and x-amz-grant-full-control) in format_grant_header/1 by interpolating grantee identifiers into a quoted, comma-separated list without escaping. Grantee email and id values are wrapped in double quotes and joined with a comma, but double-quote, comma, and CR/LF characters in the value are not neutralized. An application that passes an attacker-influenced grantee value (for example an email address taken from a \"share this object\" feature) into an ACL grant option (grant_read, grant_write, grant_read_acp, grant_write_acp, or grant_full_control) lets the attacker close the quoted token and inject an additional grantee, such as the attacker\u0027s own canonical id or the predefined AllUsers group URI, into the header. S3 then applies the injected grantee, granting an arbitrary principal the same permission (up to full control or public access) in an unintended ACL grantee-injection and privilege-escalation issue.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-137",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eThis is an ACL grantee-injection vulnerability leading to unintended permission grants and potential privilege escalation. It affects any application using \u003ccode\u003eExAws.S3\u003c/code\u003e ACL grant options (\u003ccode\u003egrant_read\u003c/code\u003e, \u003ccode\u003egrant_write\u003c/code\u003e, \u003ccode\u003egrant_read_acp\u003c/code\u003e, \u003ccode\u003egrant_write_acp\u003c/code\u003e, \u003ccode\u003egrant_full_control\u003c/code\u003e) where the grantee email or id is derived from untrusted input. An attacker who can influence a grantee value can grant their own AWS principal access to objects or buckets, up to full control, by injecting an extra grantee into the comma-separated grant header.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "This is an ACL grantee-injection vulnerability leading to unintended permission grants and potential privilege escalation. It affects any application using `ExAws.S3` ACL grant options (`grant_read`, `grant_write`, `grant_read_acp`, `grant_write_acp`, `grant_full_control`) where the grantee email or id is derived from untrusted input. An attacker who can influence a grantee value can grant their own AWS principal access to objects or buckets, up to full control, by injecting an extra grantee into the comma-separated grant header."
                    }
                  ],
                  "value": "This is an ACL grantee-injection vulnerability leading to unintended permission grants and potential privilege escalation. It affects any application using ExAws.S3 ACL grant options (grant_read, grant_write, grant_read_acp, grant_write_acp, grant_full_control) where the grantee email or id is derived from untrusted input. An attacker who can influence a grantee value can grant their own AWS principal access to objects or buckets, up to full control, by injecting an extra grantee into the comma-separated grant header."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "LOCAL",
                "baseScore": 4.8,
                "baseSeverity": "MEDIUM",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "HIGH",
                "subIntegrityImpact": "LOW",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:H/SI:L/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "LOW",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-116",
                  "description": "CWE-116 Improper Encoding or Escaping of Output",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T14:13:11.918Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-6fg2-v8g4-vfg2"
            },
            {
              "name": "EEF CNA record for CVE-2026-63585",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-63585.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-63585",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-63585"
            },
            {
              "name": "Introducing commit 4ce4d72 in ex-aws/ex_aws_s3",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/4ce4d72219c0cb8de9356278203d8ea780311b75"
            },
            {
              "name": "Fix commit dd42263 in ex-aws/ex_aws_s3",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/dd422637a46203d01cc47fd832836758f8090556"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "ExAws.S3 ACL grantee injection via unescaped grant headers in format_grant_header/1",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eValidate grantee identifiers before passing them to \u003ccode\u003eExAws.S3\u003c/code\u003e ACL grant options and reject any value containing a double quote, comma, or CR/LF character, or restrict grantee input to trusted canonical ids and email addresses that match the expected S3 grantee grammar.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Validate grantee identifiers before passing them to `ExAws.S3` ACL grant options and reject any value containing a double quote, comma, or CR/LF character, or restrict grantee input to trusted canonical ids and email addresses that match the expected S3 grantee grammar."
                }
              ],
              "value": "Validate grantee identifiers before passing them to ExAws.S3 ACL grant options and reject any value containing a double quote, comma, or CR/LF character, or restrict grantee input to trusted canonical ids and email addresses that match the expected S3 grantee grammar."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eAn application offers \"share this object\" and calls \u003ccode\u003eExAws.S3.put_object_acl(\"victim-bucket\", \"secret.txt\", grant_read: [email: email])\u003c/code\u003e with a user-supplied email.\u003c/li\u003e\n\u003cli\u003eThe attacker submits the email \u003ccode\u003evictim@example.com\", id=\"ATTACKER_CANONICAL_ID_deadbeef\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eformat_grant_header/1\u003c/code\u003e interpolates it into \u003ccode\u003eemailAddress=\"...\"\u003c/code\u003e, closing the quote after \u003ccode\u003evictim@example.com\u003c/code\u003e and opening a second tuple.\u003c/li\u003e\n\u003cli\u003eThe \u003ccode\u003ex-amz-grant-read\u003c/code\u003e header carries \u003ccode\u003eemailAddress=\"victim@example.com\", id=\"ATTACKER_CANONICAL_ID_deadbeef\"\u003c/code\u003e, granting the attacker\u0027s principal read access.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. An application offers \"share this object\" and calls `ExAws.S3.put_object_acl(\"victim-bucket\", \"secret.txt\", grant_read: [email: email])` with a user-supplied email.\n2. The attacker submits the email `victim@example.com\", id=\"ATTACKER_CANONICAL_ID_deadbeef`.\n3. `format_grant_header/1` interpolates it into `emailAddress=\"...\"`, closing the quote after `victim@example.com` and opening a second tuple.\n4. The `x-amz-grant-read` header carries `emailAddress=\"victim@example.com\", id=\"ATTACKER_CANONICAL_ID_deadbeef\"`, granting the attacker\u0027s principal read access."
                }
              ],
              "value": "* An application offers \"share this object\" and calls ExAws.S3.put_object_acl(\"victim-bucket\", \"secret.txt\", grant_read: [email: email]) with a user-supplied email.\n* The attacker submits the email victim@example.com\", id=\"ATTACKER_CANONICAL_ID_deadbeef.\n* format_grant_header/1 interpolates it into emailAddress=\"...\", closing the quote after victim@example.com and opening a second tuple.\n* The x-amz-grant-read header carries emailAddress=\"victim@example.com\", id=\"ATTACKER_CANONICAL_ID_deadbeef\", granting the attacker\u0027s principal read access."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Header grammar.\u003c/strong\u003e S3 grant headers such as \u003ccode\u003ex-amz-grant-read\u003c/code\u003e and \u003ccode\u003ex-amz-grant-full-control\u003c/code\u003e are a comma-separated list of quoted grantee tuples, \u003ccode\u003etype=\"id\"[, type=\"id\"]...\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Unescaped interpolation.\u003c/strong\u003e \u003ccode\u003eformat_grant_header/1\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3/utils.ex\u003c/code\u003e builds each tuple as \u003ccode\u003eemailAddress=\"#{email}\"\u003c/code\u003e or \u003ccode\u003e#{key}=\"#{value}\"\u003c/code\u003e and joins them with \u003ccode\u003e, \u003c/code\u003e. It does not check identifiers against the id or email grammar and does not reject or escape \u003ccode\u003e\"\u003c/code\u003e, \u003ccode\u003e,\u003c/code\u003e or CR/LF.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Grantee injection.\u003c/strong\u003e A grantee value such as \u003ccode\u003ex\", id=\"ATTACKER_CANONICAL_ID\u003c/code\u003e closes the quoted token and opens a second tuple, producing \u003ccode\u003eid=\"x\", id=\"ATTACKER_CANONICAL_ID\"\u003c/code\u003e. S3 parses two grantees and gives the injected principal the permission the header conveys, up to full control for \u003ccode\u003ex-amz-grant-full-control\u003c/code\u003e.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Header grammar.** S3 grant headers such as `x-amz-grant-read` and `x-amz-grant-full-control` are a comma-separated list of quoted grantee tuples, `type=\"id\"[, type=\"id\"]...`.\n\n**2. Unescaped interpolation.** `format_grant_header/1` in `lib/ex_aws/s3/utils.ex` builds each tuple as `emailAddress=\"#{email}\"` or `#{key}=\"#{value}\"` and joins them with `, `. It does not check identifiers against the id or email grammar and does not reject or escape `\"`, `,` or CR/LF.\n\n**3. Grantee injection.** A grantee value such as `x\", id=\"ATTACKER_CANONICAL_ID` closes the quoted token and opens a second tuple, producing `id=\"x\", id=\"ATTACKER_CANONICAL_ID\"`. S3 parses two grantees and gives the injected principal the permission the header conveys, up to full control for `x-amz-grant-full-control`."
                }
              ],
              "value": "1. Header grammar. S3 grant headers such as x-amz-grant-read and x-amz-grant-full-control are a comma-separated list of quoted grantee tuples, type=\"id\"[, type=\"id\"]....\n\n2. Unescaped interpolation. format_grant_header/1 in lib/ex_aws/s3/utils.ex builds each tuple as emailAddress=\"#{email}\" or #{key}=\"#{value}\" and joins them with , . It does not check identifiers against the id or email grammar and does not reject or escape \", , or CR/LF.\n\n3. Grantee injection. A grantee value such as x\", id=\"ATTACKER_CANONICAL_ID closes the quoted token and opens a second tuple, producing id=\"x\", id=\"ATTACKER_CANONICAL_ID\". S3 parses two grantees and gives the injected principal the permission the header conveys, up to full control for x-amz-grant-full-control."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-63585",
        "datePublished": "2026-11-24T14:13:11.918Z",
        "dateReserved": "2026-07-17T04:14:44.351Z",
        "dateUpdated": "2026-11-24T14:13:11.918Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-63584 (GCVE-0-2026-63584)

    Vulnerability from nvd – Published: 2026-11-24 14:15 – Updated: 2026-11-24 14:15
    VLAI
    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. 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.
    CWE
    • CWE-93 - Improper Neutralization of CRLF Sequences
    Impacted products
    Vendor Product Version
    ex-aws ex_aws_s3 Affected: 2.0.0 , < 2.6.0 (semver)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ex-aws ex_aws_s3 Affected: 4ce4d72219c0cb8de9356278203d8ea780311b75 , < b708beb7cbd0fe2ab7ce685834bb664397e4df1e (git)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 14:15
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex_aws_s3",
              "packageURL": "pkg:hex/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:upload_part_copy/8"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "2.6.0",
                  "status": "affected",
                  "version": "2.0.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex-aws/ex_aws_s3",
              "packageURL": "pkg:github/ex-aws/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:upload_part_copy/8"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "b708beb7cbd0fe2ab7ce685834bb664397e4df1e",
                  "status": "affected",
                  "version": "4ce4d72219c0cb8de9356278203d8ea780311b75",
                  "versionType": "git"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.6.0",
                      "versionStartIncluding": "2.0.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "analyst",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Bernard Duggan"
            }
          ],
          "datePublic": "2026-11-24T14:15:09.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eImproper Neutralization of CRLF Sequences (\u0027CRLF Injection\u0027) vulnerability in ex-aws ex_aws_s3 allows HTTP header injection via an attacker-controlled copy-source key.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eExAws.S3.upload_part_copy/8\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e builds the \u003ccode\u003ex-amz-copy-source\u003c/code\u003e request header by interpolating the source bucket and object key directly into \u003ccode\u003e\"/#{src_bucket}/#{src_object}\"\u003c/code\u003e with no percent-encoding. The sibling function \u003ccode\u003eput_object_copy\u003c/code\u003e percent-encodes the bucket and each path segment before assembling the same header, but \u003ccode\u003eupload_part_copy\u003c/code\u003e skips encoding entirely.\u003c/p\u003e\n\u003cp\u003eWhen the source key is derived from untrusted input, reserved characters (spaces, \u003ccode\u003e?\u003c/code\u003e, \u003ccode\u003e\u0026amp;\u003c/code\u003e, \u003ccode\u003e=\u003c/code\u003e) pass through verbatim and corrupt the copy-source reference, so the copy targets the wrong object or fails. A key containing \u003ccode\u003e\\r\u003c/code\u003e or \u003ccode\u003e\\n\u003c/code\u003e can split or inject additional headers into the outgoing HTTP request, depending on how the configured HTTP backend serializes headers.\u003c/p\u003e\n\u003cp\u003eApplications that pass a source bucket or object key derived from untrusted input to \u003ccode\u003eExAws.S3.upload_part_copy/8\u003c/code\u003e are affected. Applications that only ever pass trusted, well-formed keys are not affected.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Improper Neutralization of CRLF Sequences (\u0027CRLF Injection\u0027) 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, `?`, `\u0026`, `=`) 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."
                }
              ],
              "value": "Improper Neutralization of CRLF Sequences (\u0027CRLF Injection\u0027) 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, ?, \u0026, =) 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."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-105",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eThis is an output-encoding defect (missing percent-encoding) in the construction of the \u003ccode\u003ex-amz-copy-source\u003c/code\u003e header. Affected are applications that call \u003ccode\u003eExAws.S3.upload_part_copy/8\u003c/code\u003e 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\u0027s reach depending on the HTTP client backend in use. Applications that only ever pass trusted, well-formed keys are not affected.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "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\u0027s reach depending on the HTTP client backend in use. Applications that only ever pass trusted, well-formed keys are not affected."
                    }
                  ],
                  "value": "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\u0027s reach depending on the HTTP client backend in use. Applications that only ever pass trusted, well-formed keys are not affected."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "LOCAL",
                "baseScore": 2.1,
                "baseSeverity": "LOW",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "LOW",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "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",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "LOW",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-93",
                  "description": "CWE-93 Improper Neutralization of CRLF Sequences",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T14:15:10.351Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-27g7-88jv-xqhq"
            },
            {
              "name": "EEF CNA record for CVE-2026-63584",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-63584.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-63584",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-63584"
            },
            {
              "name": "Introducing commit 4ce4d72 in ex-aws/ex_aws_s3",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/4ce4d72219c0cb8de9356278203d8ea780311b75"
            },
            {
              "name": "Fix commit b708beb in ex-aws/ex_aws_s3",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/b708beb7cbd0fe2ab7ce685834bb664397e4df1e"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "Copy-source header injection in ExAws.S3.upload_part_copy/8 via unencoded source key",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003ePercent-encode or otherwise sanitize the source bucket and object key before passing them to \u003ccode\u003eExAws.S3.upload_part_copy/8\u003c/code\u003e. At minimum, reject (or strip) any value containing \u003ccode\u003e\\r\u003c/code\u003e, \u003ccode\u003e\\n\u003c/code\u003e, or the reserved URI characters that alter the copy-source reference. Encode each path segment with \u003ccode\u003eURI.encode(segment, \u0026amp;URI.char_unreserved?/1)\u003c/code\u003e, mirroring how \u003ccode\u003eput_object_copy\u003c/code\u003e builds the same header.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "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, \u0026URI.char_unreserved?/1)`, mirroring how `put_object_copy` builds the same header."
                }
              ],
              "value": "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, \u0026URI.char_unreserved?/1), mirroring how put_object_copy builds the same header."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eAn application copies a part whose source key comes from user input, calling \u003ccode\u003eExAws.S3.upload_part_copy/8\u003c/code\u003e and sending the operation with \u003ccode\u003eExAws.request/2\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker supplies the source key \u003ccode\u003eevil key?x=1\u0026amp;y=2\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eupload_part_copy/8\u003c/code\u003e interpolates it raw, so the request carries \u003ccode\u003ex-amz-copy-source: /src-bucket/evil key?x=1\u0026amp;y=2\u003c/code\u003e instead of the encoded \u003ccode\u003e/src-bucket/evil%20key%3Fx%3D1%26y%3D2\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe reserved characters change the copy-source reference; a key containing \u003ccode\u003e\\r\\n\u003c/code\u003e would additionally inject header lines, depending on the HTTP backend.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "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`.\n2. The attacker supplies the source key `evil key?x=1\u0026y=2`.\n3. `upload_part_copy/8` interpolates it raw, so the request carries `x-amz-copy-source: /src-bucket/evil key?x=1\u0026y=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."
                }
              ],
              "value": "* 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.\n* The attacker supplies the source key evil key?x=1\u0026y=2.\n* upload_part_copy/8 interpolates it raw, so the request carries x-amz-copy-source: /src-bucket/evil key?x=1\u0026y=2 instead of the encoded /src-bucket/evil%20key%3Fx%3D1%26y%3D2.\n* The reserved characters change the copy-source reference; a key containing \\r\\n would additionally inject header lines, depending on the HTTP backend."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Encoding in the sibling function.\u003c/strong\u003e \u003ccode\u003eput_object_copy\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e percent-encodes the source bucket and each path segment with \u003ccode\u003eURI.encode(..., \u0026amp;URI.char_unreserved?/1)\u003c/code\u003e before assembling the \u003ccode\u003ex-amz-copy-source\u003c/code\u003e header.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. No encoding in \u003ccode\u003eupload_part_copy/8\u003c/code\u003e.\u003c/strong\u003e \u003ccode\u003eupload_part_copy/8\u003c/code\u003e builds the same header as \u003ccode\u003e\"/#{src_bucket}/#{src_object}\"\u003c/code\u003e, interpolating the bucket and key raw.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Effect.\u003c/strong\u003e Reserved characters in the source key (spaces, \u003ccode\u003e?\u003c/code\u003e, \u003ccode\u003e\u0026amp;\u003c/code\u003e, \u003ccode\u003e=\u003c/code\u003e) 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 \u003ccode\u003e\\r\u003c/code\u003e or \u003ccode\u003e\\n\u003c/code\u003e can split the header or inject additional headers into the outgoing request, depending on how the configured HTTP backend serializes headers.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**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(..., \u0026URI.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, `?`, `\u0026`, `=`) 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."
                }
              ],
              "value": "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(..., \u0026URI.char_unreserved?/1) before assembling the x-amz-copy-source header.\n\n2. 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\n3. Effect. Reserved characters in the source key (spaces, ?, \u0026, =) 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."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-63584",
        "datePublished": "2026-11-24T14:15:10.351Z",
        "dateReserved": "2026-07-17T04:14:44.351Z",
        "dateUpdated": "2026-11-24T14:15:10.351Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-63583 (GCVE-0-2026-63583)

    Vulnerability from nvd – Published: 2026-11-24 14:14 – Updated: 2026-11-24 14:14
    VLAI
    Title
    XML injection in ExAws.S3.Utils.build_lifecycle_rule/1 in ex_aws_s3
    Summary
    ExAws.S3.Utils.build_lifecycle_rule/1 in ex_aws_s3 interpolates caller-supplied lifecycle rule fields (the rule id, filter prefix, tag key and value, storage class, and noncurrent-version count) directly into the PutBucketLifecycleConfiguration XML body without escaping XML metacharacters. An application that populates any of these fields from untrusted input (for example a tenant-supplied object tag) lets an attacker break out of the surrounding element and inject arbitrary XML into the request, including an entirely new lifecycle action such as a delete-after-one-day expiration that destroys the bucket's objects. The public entry point ExAws.S3.put_bucket_lifecycle/2 flows directly into this builder. This issue affects ex_aws_s3: from 2.3.0 before 2.6.0.
    CWE
    Impacted products
    Vendor Product Version
    ex-aws ex_aws_s3 Affected: 2.3.0 , < 2.6.0 (semver)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ex-aws ex_aws_s3 Affected: 34a3f1b264bd9a28d68fa98173af7085da72a15b , < eda0b9b9c63707f7db8d8f18c331df7fda57c397 (git)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 14:14
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3.Utils\u0027",
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex_aws_s3",
              "packageURL": "pkg:hex/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3/utils.ex",
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3.Utils\u0027:build_lifecycle_rule/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_lifecycle/2"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "2.6.0",
                  "status": "affected",
                  "version": "2.3.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3.Utils\u0027",
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex-aws/ex_aws_s3",
              "packageURL": "pkg:github/ex-aws/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3/utils.ex",
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3.Utils\u0027:build_lifecycle_rule/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_lifecycle/2"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "eda0b9b9c63707f7db8d8f18c331df7fda57c397",
                  "status": "affected",
                  "version": "34a3f1b264bd9a28d68fa98173af7085da72a15b",
                  "versionType": "git"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.6.0",
                      "versionStartIncluding": "2.3.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "analyst",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Bernard Duggan"
            }
          ],
          "datePublic": "2026-11-24T14:14:57.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003ccode\u003eExAws.S3.Utils.build_lifecycle_rule/1\u003c/code\u003e in ex_aws_s3 interpolates caller-supplied lifecycle rule fields (the rule id, filter prefix, tag key and value, storage class, and noncurrent-version count) directly into the \u003ccode\u003ePutBucketLifecycleConfiguration\u003c/code\u003e XML body without escaping XML metacharacters. An application that populates any of these fields from untrusted input (for example a tenant-supplied object tag) lets an attacker break out of the surrounding element and inject arbitrary XML into the request, including an entirely new lifecycle action such as a delete-after-one-day expiration that destroys the bucket\u0027s objects. The public entry point \u003ccode\u003eExAws.S3.put_bucket_lifecycle/2\u003c/code\u003e flows directly into this builder.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.3.0 before 2.6.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "`ExAws.S3.Utils.build_lifecycle_rule/1` in ex_aws_s3 interpolates caller-supplied lifecycle rule fields (the rule id, filter prefix, tag key and value, storage class, and noncurrent-version count) directly into the `PutBucketLifecycleConfiguration` XML body without escaping XML metacharacters. An application that populates any of these fields from untrusted input (for example a tenant-supplied object tag) lets an attacker break out of the surrounding element and inject arbitrary XML into the request, including an entirely new lifecycle action such as a delete-after-one-day expiration that destroys the bucket\u0027s objects. The public entry point `ExAws.S3.put_bucket_lifecycle/2` flows directly into this builder.\n\nThis issue affects ex_aws_s3: from 2.3.0 before 2.6.0."
                }
              ],
              "value": "ExAws.S3.Utils.build_lifecycle_rule/1 in ex_aws_s3 interpolates caller-supplied lifecycle rule fields (the rule id, filter prefix, tag key and value, storage class, and noncurrent-version count) directly into the PutBucketLifecycleConfiguration XML body without escaping XML metacharacters. An application that populates any of these fields from untrusted input (for example a tenant-supplied object tag) lets an attacker break out of the surrounding element and inject arbitrary XML into the request, including an entirely new lifecycle action such as a delete-after-one-day expiration that destroys the bucket\u0027s objects. The public entry point ExAws.S3.put_bucket_lifecycle/2 flows directly into this builder.\n\nThis issue affects ex_aws_s3: from 2.3.0 before 2.6.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-250",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eThis is an XML/document injection vulnerability in the construction of the \u003ccode\u003ePutBucketLifecycleConfiguration\u003c/code\u003e request. Any application that uses \u003ccode\u003eex_aws_s3\u003c/code\u003e and populates a lifecycle rule\u0027s id, prefix, tag key/value, storage class, or noncurrent-version count from data it does not fully control is affected. An attacker who controls one of those fields can inject arbitrary lifecycle actions or rules into the request, most damagingly an expiration that deletes the bucket\u0027s objects, leading to data loss or unintended retention/transition policies. Multi-tenant services that map tenant-supplied tags or identifiers into bucket lifecycle configuration are the most exposed.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "This is an XML/document injection vulnerability in the construction of the `PutBucketLifecycleConfiguration` request. Any application that uses `ex_aws_s3` and populates a lifecycle rule\u0027s id, prefix, tag key/value, storage class, or noncurrent-version count from data it does not fully control is affected. An attacker who controls one of those fields can inject arbitrary lifecycle actions or rules into the request, most damagingly an expiration that deletes the bucket\u0027s objects, leading to data loss or unintended retention/transition policies. Multi-tenant services that map tenant-supplied tags or identifiers into bucket lifecycle configuration are the most exposed."
                    }
                  ],
                  "value": "This is an XML/document injection vulnerability in the construction of the PutBucketLifecycleConfiguration request. Any application that uses ex_aws_s3 and populates a lifecycle rule\u0027s id, prefix, tag key/value, storage class, or noncurrent-version count from data it does not fully control is affected. An attacker who controls one of those fields can inject arbitrary lifecycle actions or rules into the request, most damagingly an expiration that deletes the bucket\u0027s objects, leading to data loss or unintended retention/transition policies. Multi-tenant services that map tenant-supplied tags or identifiers into bucket lifecycle configuration are the most exposed."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "LOCAL",
                "baseScore": 7,
                "baseSeverity": "HIGH",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "HIGH",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "HIGH",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:H",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "HIGH",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-91",
                  "description": "CWE-91 XML Injection",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T14:14:58.243Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-pcgv-phrm-r85v"
            },
            {
              "name": "EEF CNA record for CVE-2026-63583",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-63583.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-63583",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-63583"
            },
            {
              "name": "Introducing commit 34a3f1b in ex-aws/ex_aws_s3",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/34a3f1b264bd9a28d68fa98173af7085da72a15b"
            },
            {
              "name": "Fix commit eda0b9b in ex-aws/ex_aws_s3",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/eda0b9b9c63707f7db8d8f18c331df7fda57c397"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "XML injection in ExAws.S3.Utils.build_lifecycle_rule/1 in ex_aws_s3",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eApplications can escape or strictly validate any untrusted value before passing it into a lifecycle rule field (the rule id, filter prefix, tag key or value, storage class, or noncurrent-version count) so that XML metacharacters cannot alter the request structure.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Applications can escape or strictly validate any untrusted value before passing it into a lifecycle rule field (the rule id, filter prefix, tag key or value, storage class, or noncurrent-version count) so that XML metacharacters cannot alter the request structure."
                }
              ],
              "value": "Applications can escape or strictly validate any untrusted value before passing it into a lifecycle rule field (the rule id, filter prefix, tag key or value, storage class, or noncurrent-version count) so that XML metacharacters cannot alter the request structure."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eA multi-tenant application mirrors tenant-supplied object tags into an S3 lifecycle rule: \u003ccode\u003eExAws.S3.put_bucket_lifecycle(\"tenant-bucket\", [rule]) |\u0026gt; ExAws.request(config)\u003c/code\u003e with \u003ccode\u003efilter: %{tags: [{\"team\", value}]}\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe tenant sets the tag value to \u003ccode\u003efrontend\u0026lt;/Value\u0026gt;\u0026lt;/Tag\u0026gt;\u0026lt;/Filter\u0026gt;\u0026lt;Expiration\u0026gt;\u0026lt;Days\u0026gt;1\u0026lt;/Days\u0026gt;\u0026lt;/Expiration\u0026gt;\u0026lt;Filter\u0026gt;\u0026lt;Tag\u0026gt;\u0026lt;Key\u0026gt;team\u0026lt;/Key\u0026gt;\u0026lt;Value\u0026gt;frontend\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ebuild_lifecycle_rule/1\u003c/code\u003e interpolates it unescaped into the request body.\u003c/li\u003e\n\u003cli\u003eThe body S3 receives contains \u003ccode\u003e//Rule/Expiration/Days\u003c/code\u003e equal to \u003ccode\u003e1\u003c/code\u003e: an injected action that expires the bucket\u0027s objects after one day.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. A multi-tenant application mirrors tenant-supplied object tags into an S3 lifecycle rule: `ExAws.S3.put_bucket_lifecycle(\"tenant-bucket\", [rule]) |\u003e ExAws.request(config)` with `filter: %{tags: [{\"team\", value}]}`.\n2. The tenant sets the tag value to `frontend\u003c/Value\u003e\u003c/Tag\u003e\u003c/Filter\u003e\u003cExpiration\u003e\u003cDays\u003e1\u003c/Days\u003e\u003c/Expiration\u003e\u003cFilter\u003e\u003cTag\u003e\u003cKey\u003eteam\u003c/Key\u003e\u003cValue\u003efrontend`.\n3. `build_lifecycle_rule/1` interpolates it unescaped into the request body.\n4. The body S3 receives contains `//Rule/Expiration/Days` equal to `1`: an injected action that expires the bucket\u0027s objects after one day."
                }
              ],
              "value": "* A multi-tenant application mirrors tenant-supplied object tags into an S3 lifecycle rule: ExAws.S3.put_bucket_lifecycle(\"tenant-bucket\", [rule]) |\u003e ExAws.request(config) with filter: %{tags: [{\"team\", value}]}.\n* The tenant sets the tag value to frontend\u003c/Value\u003e\u003c/Tag\u003e\u003c/Filter\u003e\u003cExpiration\u003e\u003cDays\u003e1\u003c/Days\u003e\u003c/Expiration\u003e\u003cFilter\u003e\u003cTag\u003e\u003cKey\u003eteam\u003c/Key\u003e\u003cValue\u003efrontend.\n* build_lifecycle_rule/1 interpolates it unescaped into the request body.\n* The body S3 receives contains //Rule/Expiration/Days equal to 1: an injected action that expires the bucket\u0027s objects after one day."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Unescaped interpolation.\u003c/strong\u003e \u003ccode\u003ebuild_lifecycle_rule/1\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3/utils.ex\u003c/code\u003e builds each text node of the \u003ccode\u003ePutBucketLifecycleConfiguration\u003c/code\u003e body by raw string interpolation: the rule \u003ccode\u003eid\u003c/code\u003e, the filter \u003ccode\u003eprefix\u003c/code\u003e, tag \u003ccode\u003ekey\u003c/code\u003e and \u003ccode\u003evalue\u003c/code\u003e, the \u003ccode\u003estorage\u003c/code\u003e class and \u003ccode\u003enewer_noncurrent_versions\u003c/code\u003e. None is XML-escaped or validated before \u003ccode\u003eIO.iodata_to_binary/1\u003c/code\u003e flattens the body.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Element break-out.\u003c/strong\u003e A value containing XML metacharacters is emitted verbatim. A tag value such as \u003ccode\u003efrontend\u0026lt;/Value\u0026gt;\u0026lt;/Tag\u0026gt;\u0026lt;/Filter\u0026gt;\u0026lt;Expiration\u0026gt;\u0026lt;Days\u0026gt;1\u0026lt;/Days\u0026gt;\u0026lt;/Expiration\u0026gt;\u0026lt;Filter\u0026gt;\u0026lt;Tag\u0026gt;\u0026lt;Key\u0026gt;team\u0026lt;/Key\u0026gt;\u0026lt;Value\u0026gt;frontend\u003c/code\u003e closes the \u003ccode\u003e\u0026lt;Value\u0026gt;\u003c/code\u003e, injects an \u003ccode\u003e\u0026lt;Expiration\u0026gt;\u003c/code\u003e action and reopens a \u003ccode\u003e\u0026lt;Filter\u0026gt;\u003c/code\u003e, so the rest of the document stays well-formed. The same technique can close and reopen \u003ccode\u003e\u0026lt;Rule\u0026gt;\u003c/code\u003e to append a separate rule.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Delivery.\u003c/strong\u003e The public entry point \u003ccode\u003eExAws.S3.put_bucket_lifecycle/2\u003c/code\u003e flows directly into this builder, so S3 receives and applies the injected lifecycle configuration as soon as the request is sent with \u003ccode\u003eExAws.request/2\u003c/code\u003e.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Unescaped interpolation.** `build_lifecycle_rule/1` in `lib/ex_aws/s3/utils.ex` builds each text node of the `PutBucketLifecycleConfiguration` body by raw string interpolation: the rule `id`, the filter `prefix`, tag `key` and `value`, the `storage` class and `newer_noncurrent_versions`. None is XML-escaped or validated before `IO.iodata_to_binary/1` flattens the body.\n\n**2. Element break-out.** A value containing XML metacharacters is emitted verbatim. A tag value such as `frontend\u003c/Value\u003e\u003c/Tag\u003e\u003c/Filter\u003e\u003cExpiration\u003e\u003cDays\u003e1\u003c/Days\u003e\u003c/Expiration\u003e\u003cFilter\u003e\u003cTag\u003e\u003cKey\u003eteam\u003c/Key\u003e\u003cValue\u003efrontend` closes the `\u003cValue\u003e`, injects an `\u003cExpiration\u003e` action and reopens a `\u003cFilter\u003e`, so the rest of the document stays well-formed. The same technique can close and reopen `\u003cRule\u003e` to append a separate rule.\n\n**3. Delivery.** The public entry point `ExAws.S3.put_bucket_lifecycle/2` flows directly into this builder, so S3 receives and applies the injected lifecycle configuration as soon as the request is sent with `ExAws.request/2`."
                }
              ],
              "value": "1. Unescaped interpolation. build_lifecycle_rule/1 in lib/ex_aws/s3/utils.ex builds each text node of the PutBucketLifecycleConfiguration body by raw string interpolation: the rule id, the filter prefix, tag key and value, the storage class and newer_noncurrent_versions. None is XML-escaped or validated before IO.iodata_to_binary/1 flattens the body.\n\n2. Element break-out. A value containing XML metacharacters is emitted verbatim. A tag value such as frontend\u003c/Value\u003e\u003c/Tag\u003e\u003c/Filter\u003e\u003cExpiration\u003e\u003cDays\u003e1\u003c/Days\u003e\u003c/Expiration\u003e\u003cFilter\u003e\u003cTag\u003e\u003cKey\u003eteam\u003c/Key\u003e\u003cValue\u003efrontend closes the \u003cValue\u003e, injects an \u003cExpiration\u003e action and reopens a \u003cFilter\u003e, so the rest of the document stays well-formed. The same technique can close and reopen \u003cRule\u003e to append a separate rule.\n\n3. Delivery. The public entry point ExAws.S3.put_bucket_lifecycle/2 flows directly into this builder, so S3 receives and applies the injected lifecycle configuration as soon as the request is sent with ExAws.request/2."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-63583",
        "datePublished": "2026-11-24T14:14:58.243Z",
        "dateReserved": "2026-07-17T04:14:44.351Z",
        "dateUpdated": "2026-11-24T14:14:58.243Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-63582 (GCVE-0-2026-63582)

    Vulnerability from nvd – Published: 2026-11-24 14:13 – Updated: 2026-11-24 14:13
    VLAI
    Title
    S3 bucket name controls the host of presigned URLs in ex_aws_s3
    Summary
    Externally Controlled Reference to a Resource in Another Sphere vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an S3 bucket name to make presigned URLs and presigned POST forms point at a host of their choice. With virtual_host: true, s3_accelerate: true or bucket_as_host: true, ExAws.S3.presigned_url/5 and ExAws.S3.presigned_post/4 build the URL from the bucket name without checking it. A bucket such as attacker.example/x? turns the URL into https://attacker.example/x?.s3.amazonaws.com..., and the signature is computed for that host. Clients given the URL upload their files to, or download content from, the attacker's host, and every such URL discloses the access key id. With bucket_as_host: true any valid hostname works as the bucket name. This issue affects ex_aws_s3: from 2.0.0 before 2.6.0.
    CWE
    • CWE-610 - Externally Controlled Reference to a Resource in Another Sphere
    Impacted products
    Vendor Product Version
    ex-aws ex_aws_s3 Affected: 2.0.0 , < 2.6.0 (semver)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ex-aws ex_aws_s3 Affected: 4ce4d72219c0cb8de9356278203d8ea780311b75 , < ea26e8b43785f3ff1f14d6b22d8069fc06a58e55 (git)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 14:13
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex_aws_s3",
              "packageURL": "pkg:hex/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:presigned_url/5"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:presigned_post/4"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:url_to_sign/5"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "2.6.0",
                  "status": "affected",
                  "version": "2.0.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex-aws/ex_aws_s3",
              "packageURL": "pkg:github/ex-aws/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:presigned_url/5"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:presigned_post/4"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:url_to_sign/5"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "ea26e8b43785f3ff1f14d6b22d8069fc06a58e55",
                  "status": "affected",
                  "version": "4ce4d72219c0cb8de9356278203d8ea780311b75",
                  "versionType": "git"
                }
              ]
            }
          ],
          "configurations": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eReachable only when presigned URLs or POST forms are generated with \u003ccode\u003evirtual_host: true\u003c/code\u003e, \u003ccode\u003es3_accelerate: true\u003c/code\u003e or \u003ccode\u003ebucket_as_host: true\u003c/code\u003e and the application passes a bucket name an attacker can influence, for example per-tenant or user-supplied buckets. Path-style presigning, the default, places the bucket in the path and is not affected.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Reachable only when presigned URLs or POST forms are generated with `virtual_host: true`, `s3_accelerate: true` or `bucket_as_host: true` and the application passes a bucket name an attacker can influence, for example per-tenant or user-supplied buckets. Path-style presigning, the default, places the bucket in the path and is not affected."
                }
              ],
              "value": "Reachable only when presigned URLs or POST forms are generated with virtual_host: true, s3_accelerate: true or bucket_as_host: true and the application passes a bucket name an attacker can influence, for example per-tenant or user-supplied buckets. Path-style presigning, the default, places the bucket in the path and is not affected."
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.6.0",
                      "versionStartIncluding": "2.0.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "analyst",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Bernard Duggan"
            }
          ],
          "dateAssigned": "2026-11-24T14:02:01.000Z",
          "datePublic": "2026-11-24T14:13:15.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eExternally Controlled Reference to a Resource in Another Sphere vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an S3 bucket name to make presigned URLs and presigned POST forms point at a host of their choice.\u003c/p\u003e\n\u003cp\u003eWith \u003ccode\u003evirtual_host: true\u003c/code\u003e, \u003ccode\u003es3_accelerate: true\u003c/code\u003e or \u003ccode\u003ebucket_as_host: true\u003c/code\u003e, \u003ccode\u003eExAws.S3.presigned_url/5\u003c/code\u003e and \u003ccode\u003eExAws.S3.presigned_post/4\u003c/code\u003e build the URL from the bucket name without checking it. A bucket such as \u003ccode\u003eattacker.example/x?\u003c/code\u003e turns the URL into \u003ccode\u003ehttps://attacker.example/x?.s3.amazonaws.com...\u003c/code\u003e, and the signature is computed for that host. Clients given the URL upload their files to, or download content from, the attacker\u0027s host, and every such URL discloses the access key id. With \u003ccode\u003ebucket_as_host: true\u003c/code\u003e any valid hostname works as the bucket name.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Externally Controlled Reference to a Resource in Another Sphere vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an S3 bucket name to make presigned URLs and presigned POST forms point at a host of their choice.\n\nWith `virtual_host: true`, `s3_accelerate: true` or `bucket_as_host: true`, `ExAws.S3.presigned_url/5` and `ExAws.S3.presigned_post/4` build the URL from the bucket name without checking it. A bucket such as `attacker.example/x?` turns the URL into `https://attacker.example/x?.s3.amazonaws.com...`, and the signature is computed for that host. Clients given the URL upload their files to, or download content from, the attacker\u0027s host, and every such URL discloses the access key id. With `bucket_as_host: true` any valid hostname works as the bucket name.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
                }
              ],
              "value": "Externally Controlled Reference to a Resource in Another Sphere vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an S3 bucket name to make presigned URLs and presigned POST forms point at a host of their choice.\n\nWith virtual_host: true, s3_accelerate: true or bucket_as_host: true, ExAws.S3.presigned_url/5 and ExAws.S3.presigned_post/4 build the URL from the bucket name without checking it. A bucket such as attacker.example/x? turns the URL into https://attacker.example/x?.s3.amazonaws.com..., and the signature is computed for that host. Clients given the URL upload their files to, or download content from, the attacker\u0027s host, and every such URL discloses the access key id. With bucket_as_host: true any valid hostname works as the bucket name.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-154",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eAn attacker who can choose the bucket name makes the application hand out presigned URLs and POST forms that point at the attacker\u0027s host. Files other users upload through those forms go to the attacker, presigned downloads serve attacker-controlled content under the application\u0027s name, and every such URL discloses the access key id. Applications that presign for per-tenant or user-supplied buckets with virtual-host addressing are affected.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "An attacker who can choose the bucket name makes the application hand out presigned URLs and POST forms that point at the attacker\u0027s host. Files other users upload through those forms go to the attacker, presigned downloads serve attacker-controlled content under the application\u0027s name, and every such URL discloses the access key id. Applications that presign for per-tenant or user-supplied buckets with virtual-host addressing are affected."
                    }
                  ],
                  "value": "An attacker who can choose the bucket name makes the application hand out presigned URLs and POST forms that point at the attacker\u0027s host. Files other users upload through those forms go to the attacker, presigned downloads serve attacker-controlled content under the application\u0027s name, and every such URL discloses the access key id. Applications that presign for per-tenant or user-supplied buckets with virtual-host addressing are affected."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "LOCAL",
                "baseScore": 5.8,
                "baseSeverity": "MEDIUM",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "PASSIVE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "HIGH",
                "vulnIntegrityImpact": "LOW",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-610",
                  "description": "CWE-610 Externally Controlled Reference to a Resource in Another Sphere",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T14:13:16.822Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "Virtual-host bucket name controls the host of presigned URLs in ExAws.S3.presigned_url/5 and presigned_post/4",
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-p62r-cgcg-9fm7"
            },
            {
              "name": "EEF CNA record for CVE-2026-63582",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-63582.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-63582",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-63582"
            },
            {
              "name": "Introducing commit 4ce4d72 in ex-aws/ex_aws_s3",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/4ce4d72219c0cb8de9356278203d8ea780311b75"
            },
            {
              "name": "Fix commit ea26e8b in ex-aws/ex_aws_s3",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/ea26e8b43785f3ff1f14d6b22d8069fc06a58e55"
            }
          ],
          "solutions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eUpgrading rejects bucket names containing characters that can change the host of a presigned URL. With \u003ccode\u003ebucket_as_host: true\u003c/code\u003e, a syntactically valid hostname is still used as the host after upgrading: applications that presign with \u003ccode\u003ebucket_as_host: true\u003c/code\u003e and bucket names they do not fully control must also pass the \u003ccode\u003ebucket_as_host_allowlist\u003c/code\u003e option, or set it in the S3 config, with the list of trusted hostnames.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Upgrading rejects bucket names containing characters that can change the host of a presigned URL. With `bucket_as_host: true`, a syntactically valid hostname is still used as the host after upgrading: applications that presign with `bucket_as_host: true` and bucket names they do not fully control must also pass the `bucket_as_host_allowlist` option, or set it in the S3 config, with the list of trusted hostnames."
                }
              ],
              "value": "Upgrading rejects bucket names containing characters that can change the host of a presigned URL. With bucket_as_host: true, a syntactically valid hostname is still used as the host after upgrading: applications that presign with bucket_as_host: true and bucket names they do not fully control must also pass the bucket_as_host_allowlist option, or set it in the S3 config, with the list of trusted hostnames."
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "S3 bucket name controls the host of presigned URLs in ex_aws_s3",
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eAn application presigns uploads for per-tenant buckets with \u003ccode\u003evirtual_host: true\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eA tenant sets its bucket name to \u003ccode\u003eattacker.example/x?\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eExAws.S3.presigned_url(config, :put, bucket, \"key\", virtual_host: true)\u003c/code\u003e returns \u003ccode\u003ehttps://attacker.example/x?.s3.amazonaws.com%2Fkey=\u0026amp;X-Amz-Credential=...\u003c/code\u003e, and \u003ccode\u003epresigned_post/4\u003c/code\u003e returns the form action \u003ccode\u003ehttps://attacker.example/x?.s3.amazonaws.com\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eURI.parse/1\u003c/code\u003e on either yields the host \u003ccode\u003eattacker.example\u003c/code\u003e, so any client given the URL or form connects there.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. An application presigns uploads for per-tenant buckets with `virtual_host: true`.\n2. A tenant sets its bucket name to `attacker.example/x?`.\n3. `ExAws.S3.presigned_url(config, :put, bucket, \"key\", virtual_host: true)` returns `https://attacker.example/x?.s3.amazonaws.com%2Fkey=\u0026X-Amz-Credential=...`, and `presigned_post/4` returns the form action `https://attacker.example/x?.s3.amazonaws.com`.\n4. `URI.parse/1` on either yields the host `attacker.example`, so any client given the URL or form connects there."
                }
              ],
              "value": "* An application presigns uploads for per-tenant buckets with virtual_host: true.\n* A tenant sets its bucket name to attacker.example/x?.\n* ExAws.S3.presigned_url(config, :put, bucket, \"key\", virtual_host: true) returns https://attacker.example/x?.s3.amazonaws.com%2Fkey=\u0026X-Amz-Credential=..., and presigned_post/4 returns the form action https://attacker.example/x?.s3.amazonaws.com.\n* URI.parse/1 on either yields the host attacker.example, so any client given the URL or form connects there."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. URL construction.\u003c/strong\u003e The private \u003ccode\u003eurl_to_sign/5\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e builds the URL for \u003ccode\u003epresigned_url/5\u003c/code\u003e and \u003ccode\u003epresigned_post/4\u003c/code\u003e as \u003ccode\u003e\"#{scheme}#{bucket}.#{host}#{port}#{object}\"\u003c/code\u003e when \u003ccode\u003evirtual_host\u003c/code\u003e is set, or \u003ccode\u003e\"#{scheme}#{bucket}#{port}#{object}\"\u003c/code\u003e with \u003ccode\u003ebucket_as_host\u003c/code\u003e. \u003ccode\u003es3_accelerate: true\u003c/code\u003e sets \u003ccode\u003evirtual_host\u003c/code\u003e and takes the same branch. The bucket name is not checked.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Signing for the attacker\u0027s host.\u003c/strong\u003e The string goes to \u003ccode\u003eExAws.Auth.presigned_url/9\u003c/code\u003e, which signs \u003ccode\u003eURI.parse(url).authority\u003c/code\u003e. For the bucket \u003ccode\u003eattacker.example/x?\u003c/code\u003e the signed host is \u003ccode\u003eattacker.example\u003c/code\u003e, and the \u003ccode\u003e?\u003c/code\u003e pushes the object key into the query string.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Effect.\u003c/strong\u003e Presigned URLs are built locally and never pass through \u003ccode\u003eExAws.Operation.S3.add_bucket_to_path/2\u003c/code\u003e, so the fix in ex_aws for the request path does not cover them. A browser submitting the presigned POST sends its upload to the attacker, a client following a presigned GET receives attacker content, and \u003ccode\u003eX-Amz-Credential\u003c/code\u003e discloses the access key id. The secret key is not disclosed and the signature cannot be replayed against AWS.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. URL construction.** The private `url_to_sign/5` in `lib/ex_aws/s3.ex` builds the URL for `presigned_url/5` and `presigned_post/4` as `\"#{scheme}#{bucket}.#{host}#{port}#{object}\"` when `virtual_host` is set, or `\"#{scheme}#{bucket}#{port}#{object}\"` with `bucket_as_host`. `s3_accelerate: true` sets `virtual_host` and takes the same branch. The bucket name is not checked.\n\n**2. Signing for the attacker\u0027s host.** The string goes to `ExAws.Auth.presigned_url/9`, which signs `URI.parse(url).authority`. For the bucket `attacker.example/x?` the signed host is `attacker.example`, and the `?` pushes the object key into the query string.\n\n**3. Effect.** Presigned URLs are built locally and never pass through `ExAws.Operation.S3.add_bucket_to_path/2`, so the fix in ex_aws for the request path does not cover them. A browser submitting the presigned POST sends its upload to the attacker, a client following a presigned GET receives attacker content, and `X-Amz-Credential` discloses the access key id. The secret key is not disclosed and the signature cannot be replayed against AWS."
                }
              ],
              "value": "1. URL construction. The private url_to_sign/5 in lib/ex_aws/s3.ex builds the URL for presigned_url/5 and presigned_post/4 as \"#{scheme}#{bucket}.#{host}#{port}#{object}\" when virtual_host is set, or \"#{scheme}#{bucket}#{port}#{object}\" with bucket_as_host. s3_accelerate: true sets virtual_host and takes the same branch. The bucket name is not checked.\n\n2. Signing for the attacker\u0027s host. The string goes to ExAws.Auth.presigned_url/9, which signs URI.parse(url).authority. For the bucket attacker.example/x? the signed host is attacker.example, and the ? pushes the object key into the query string.\n\n3. Effect. Presigned URLs are built locally and never pass through ExAws.Operation.S3.add_bucket_to_path/2, so the fix in ex_aws for the request path does not cover them. A browser submitting the presigned POST sends its upload to the attacker, a client following a presigned GET receives attacker content, and X-Amz-Credential discloses the access key id. The secret key is not disclosed and the signature cannot be replayed against AWS."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-63582",
        "datePublished": "2026-11-24T14:13:16.822Z",
        "dateReserved": "2026-07-17T04:14:44.351Z",
        "dateUpdated": "2026-11-24T14:13:16.822Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-63581 (GCVE-0-2026-63581)

    Vulnerability from nvd – Published: 2026-11-24 14:15 – Updated: 2026-11-24 14:15
    VLAI
    Title
    ex_aws_s3 XML injection in bucket-configuration builders
    Summary
    XML Injection vulnerability in ex-aws ex_aws_s3 (ExAws.S3 module) allows an attacker to inject arbitrary XML configuration elements into S3 bucket-configuration request bodies via unescaped, caller-supplied values. This vulnerability is associated with program files lib/ex_aws/s3.ex and program routines ExAws.S3.put_bucket_logging/2, ExAws.S3.put_bucket_notification/2, ExAws.S3.put_bucket_replication/2, ExAws.S3.put_bucket_website/2. The bucket-configuration body builders construct their XML by interpolating caller-supplied values directly into the request body without escaping, and never route them through the module's own escape_xml_string/1 helper. A value containing XML metacharacters (<, >, &, quotes) can close the intended element early and open attacker-chosen elements, which the builder's trailing closing tag then closes, keeping the document single-rooted and well-formed. In a multi-tenant application where tenants configure their own bucket settings, an attacker who can influence one of the interpolated field values (for example the logging target, a notification ARN, a replication destination or Account, or a website redirect HostName) can inject arbitrary configuration nodes into a request the application signs and sends to AWS. The affected builders are reached through the public functions put_bucket_logging/2, put_bucket_notification/2, put_bucket_replication/2, and put_bucket_website/2. This issue affects ex_aws_s3: from 2.5.9 before 2.6.0.
    CWE
    Impacted products
    Vendor Product Version
    ex-aws ex_aws_s3 Affected: 2.5.9 , < 2.6.0 (semver)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ex-aws ex_aws_s3 Affected: 7d6f5cde90aaea36f9a059de874d1420da20eef2 , < eda0b9b9c63707f7db8d8f18c331df7fda57c397 (git)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 14:15
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex_aws_s3",
              "packageURL": "pkg:hex/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_logging/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_notification/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_replication/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_website/2"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "2.6.0",
                  "status": "affected",
                  "version": "2.5.9",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex-aws/ex_aws_s3",
              "packageURL": "pkg:github/ex-aws/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_logging/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_notification/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_replication/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_website/2"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "eda0b9b9c63707f7db8d8f18c331df7fda57c397",
                  "status": "affected",
                  "version": "7d6f5cde90aaea36f9a059de874d1420da20eef2",
                  "versionType": "git"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.6.0",
                      "versionStartIncluding": "2.5.9",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "analyst",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Bernard Duggan"
            }
          ],
          "datePublic": "2026-11-24T14:15:20.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eXML Injection vulnerability in ex-aws ex_aws_s3 (\u003ccode\u003eExAws.S3\u003c/code\u003e module) allows an attacker to inject arbitrary XML configuration elements into S3 bucket-configuration request bodies via unescaped, caller-supplied values.\u003c/p\u003e\n\u003cp\u003eThis vulnerability is associated with program files \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e and program routines \u003ccode\u003eExAws.S3.put_bucket_logging/2\u003c/code\u003e, \u003ccode\u003eExAws.S3.put_bucket_notification/2\u003c/code\u003e, \u003ccode\u003eExAws.S3.put_bucket_replication/2\u003c/code\u003e, \u003ccode\u003eExAws.S3.put_bucket_website/2\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eThe bucket-configuration body builders construct their XML by interpolating caller-supplied values directly into the request body without escaping, and never route them through the module\u0027s own \u003ccode\u003eescape_xml_string/1\u003c/code\u003e helper. A value containing XML metacharacters (\u003ccode\u003e\u0026lt;\u003c/code\u003e, \u003ccode\u003e\u0026gt;\u003c/code\u003e, \u003ccode\u003e\u0026amp;\u003c/code\u003e, quotes) can close the intended element early and open attacker-chosen elements, which the builder\u0027s trailing closing tag then closes, keeping the document single-rooted and well-formed. In a multi-tenant application where tenants configure their own bucket settings, an attacker who can influence one of the interpolated field values (for example the logging target, a notification ARN, a replication destination or Account, or a website redirect HostName) can inject arbitrary configuration nodes into a request the application signs and sends to AWS. The affected builders are reached through the public functions \u003ccode\u003eput_bucket_logging/2\u003c/code\u003e, \u003ccode\u003eput_bucket_notification/2\u003c/code\u003e, \u003ccode\u003eput_bucket_replication/2\u003c/code\u003e, and \u003ccode\u003eput_bucket_website/2\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.5.9 before 2.6.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "XML Injection vulnerability in ex-aws ex_aws_s3 (`ExAws.S3` module) allows an attacker to inject arbitrary XML configuration elements into S3 bucket-configuration request bodies via unescaped, caller-supplied values.\n\nThis vulnerability is associated with program files `lib/ex_aws/s3.ex` and program routines `ExAws.S3.put_bucket_logging/2`, `ExAws.S3.put_bucket_notification/2`, `ExAws.S3.put_bucket_replication/2`, `ExAws.S3.put_bucket_website/2`.\n\nThe bucket-configuration body builders construct their XML by interpolating caller-supplied values directly into the request body without escaping, and never route them through the module\u0027s own `escape_xml_string/1` helper. A value containing XML metacharacters (`\u003c`, `\u003e`, `\u0026`, quotes) can close the intended element early and open attacker-chosen elements, which the builder\u0027s trailing closing tag then closes, keeping the document single-rooted and well-formed. In a multi-tenant application where tenants configure their own bucket settings, an attacker who can influence one of the interpolated field values (for example the logging target, a notification ARN, a replication destination or Account, or a website redirect HostName) can inject arbitrary configuration nodes into a request the application signs and sends to AWS. The affected builders are reached through the public functions `put_bucket_logging/2`, `put_bucket_notification/2`, `put_bucket_replication/2`, and `put_bucket_website/2`.\n\nThis issue affects ex_aws_s3: from 2.5.9 before 2.6.0."
                }
              ],
              "value": "XML Injection vulnerability in ex-aws ex_aws_s3 (ExAws.S3 module) allows an attacker to inject arbitrary XML configuration elements into S3 bucket-configuration request bodies via unescaped, caller-supplied values.\n\nThis vulnerability is associated with program files lib/ex_aws/s3.ex and program routines ExAws.S3.put_bucket_logging/2, ExAws.S3.put_bucket_notification/2, ExAws.S3.put_bucket_replication/2, ExAws.S3.put_bucket_website/2.\n\nThe bucket-configuration body builders construct their XML by interpolating caller-supplied values directly into the request body without escaping, and never route them through the module\u0027s own escape_xml_string/1 helper. A value containing XML metacharacters (\u003c, \u003e, \u0026, quotes) can close the intended element early and open attacker-chosen elements, which the builder\u0027s trailing closing tag then closes, keeping the document single-rooted and well-formed. In a multi-tenant application where tenants configure their own bucket settings, an attacker who can influence one of the interpolated field values (for example the logging target, a notification ARN, a replication destination or Account, or a website redirect HostName) can inject arbitrary configuration nodes into a request the application signs and sends to AWS. The affected builders are reached through the public functions put_bucket_logging/2, put_bucket_notification/2, put_bucket_replication/2, and put_bucket_website/2.\n\nThis issue affects ex_aws_s3: from 2.5.9 before 2.6.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-250",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eThis is an XML/structure injection vulnerability in the bucket-configuration body builders of \u003ccode\u003eex_aws_s3\u003c/code\u003e. It affects any application that passes untrusted or user-supplied values into these builders, most relevantly multi-tenant services that let tenants configure their own bucket logging, notifications, replication, or website settings. The only precondition is that an attacker can influence one of the interpolated field values; they can then inject arbitrary configuration elements (e.g. an attacker-owned replication destination/\u003ccode\u003eAccount\u003c/code\u003e, logging target, or website redirect \u003ccode\u003eHostName\u003c/code\u003e) into a request the application signs and sends to AWS.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "This is an XML/structure injection vulnerability in the bucket-configuration body builders of `ex_aws_s3`. It affects any application that passes untrusted or user-supplied values into these builders, most relevantly multi-tenant services that let tenants configure their own bucket logging, notifications, replication, or website settings. The only precondition is that an attacker can influence one of the interpolated field values; they can then inject arbitrary configuration elements (e.g. an attacker-owned replication destination/`Account`, logging target, or website redirect `HostName`) into a request the application signs and sends to AWS."
                    }
                  ],
                  "value": "This is an XML/structure injection vulnerability in the bucket-configuration body builders of ex_aws_s3. It affects any application that passes untrusted or user-supplied values into these builders, most relevantly multi-tenant services that let tenants configure their own bucket logging, notifications, replication, or website settings. The only precondition is that an attacker can influence one of the interpolated field values; they can then inject arbitrary configuration elements (e.g. an attacker-owned replication destination/Account, logging target, or website redirect HostName) into a request the application signs and sends to AWS."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "NONE",
                "attackVector": "LOCAL",
                "baseScore": 6.9,
                "baseSeverity": "MEDIUM",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "LOW",
                "subIntegrityImpact": "LOW",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:L/SI:L/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "HIGH",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-91",
                  "description": "CWE-91 XML Injection",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T14:15:21.465Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-cf93-7gwh-6w98"
            },
            {
              "name": "EEF CNA record for CVE-2026-63581",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-63581.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-63581",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-63581"
            },
            {
              "name": "Introducing commit 7d6f5cd in ex-aws/ex_aws_s3",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/7d6f5cde90aaea36f9a059de874d1420da20eef2"
            },
            {
              "name": "Fix commit eda0b9b in ex-aws/ex_aws_s3",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/eda0b9b9c63707f7db8d8f18c331df7fda57c397"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "ex_aws_s3 XML injection in bucket-configuration builders",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eValidate or sanitize caller-supplied values before passing them to the affected bucket-configuration builders, rejecting or escaping any value that contains XML metacharacters (\u003ccode\u003e\u0026lt;\u003c/code\u003e, \u003ccode\u003e\u0026gt;\u003c/code\u003e, \u003ccode\u003e\u0026amp;\u003c/code\u003e, \u003ccode\u003e\u0027\u003c/code\u003e, \u003ccode\u003e\"\u003c/code\u003e).\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Validate or sanitize caller-supplied values before passing them to the affected bucket-configuration builders, rejecting or escaping any value that contains XML metacharacters (`\u003c`, `\u003e`, `\u0026`, `\u0027`, `\"`)."
                }
              ],
              "value": "Validate or sanitize caller-supplied values before passing them to the affected bucket-configuration builders, rejecting or escaping any value that contains XML metacharacters (\u003c, \u003e, \u0026, \u0027, \")."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eA multi-tenant application exposes \u003ccode\u003ePOST /configure-logging\u003c/code\u003e and forwards the tenant\u0027s form values to \u003ccode\u003eExAws.S3.put_bucket_logging(bucket, target_bucket: target_bucket)\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker submits \u003ccode\u003etarget_bucket\u003c/code\u003e as \u003ccode\u003etenant-logs\u0026lt;/TargetBucket\u0026gt;\u0026lt;TargetBucket\u0026gt;attacker-exfil-bucket\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe builder interpolates it unescaped, and its own trailing \u003ccode\u003e\u0026lt;/TargetBucket\u0026gt;\u003c/code\u003e closes the injected element, so the body stays well-formed.\u003c/li\u003e\n\u003cli\u003eParsing the body yields two \u003ccode\u003eTargetBucket\u003c/code\u003e nodes, \u003ccode\u003etenant-logs\u003c/code\u003e and \u003ccode\u003eattacker-exfil-bucket\u003c/code\u003e, in the configuration the application signs and sends to AWS.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. A multi-tenant application exposes `POST /configure-logging` and forwards the tenant\u0027s form values to `ExAws.S3.put_bucket_logging(bucket, target_bucket: target_bucket)`.\n2. The attacker submits `target_bucket` as `tenant-logs\u003c/TargetBucket\u003e\u003cTargetBucket\u003eattacker-exfil-bucket`.\n3. The builder interpolates it unescaped, and its own trailing `\u003c/TargetBucket\u003e` closes the injected element, so the body stays well-formed.\n4. Parsing the body yields two `TargetBucket` nodes, `tenant-logs` and `attacker-exfil-bucket`, in the configuration the application signs and sends to AWS."
                }
              ],
              "value": "* A multi-tenant application exposes POST /configure-logging and forwards the tenant\u0027s form values to ExAws.S3.put_bucket_logging(bucket, target_bucket: target_bucket).\n* The attacker submits target_bucket as tenant-logs\u003c/TargetBucket\u003e\u003cTargetBucket\u003eattacker-exfil-bucket.\n* The builder interpolates it unescaped, and its own trailing \u003c/TargetBucket\u003e closes the injected element, so the body stays well-formed.\n* Parsing the body yields two TargetBucket nodes, tenant-logs and attacker-exfil-bucket, in the configuration the application signs and sends to AWS."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Unescaped interpolation.\u003c/strong\u003e The bucket-configuration body builders in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e interpolate caller-supplied values into XML with plain string interpolation and never apply the module\u0027s \u003ccode\u003eescape_xml_string/1\u003c/code\u003e helper. This covers \u003ccode\u003eput_bucket_logging\u003c/code\u003e (\u003ccode\u003etarget_bucket\u003c/code\u003e, \u003ccode\u003etarget_prefix\u003c/code\u003e), the notification builders (topic, Lambda and queue ARNs, \u003ccode\u003eid\u003c/code\u003e, events, filter rule names and values), the replication builders (\u003ccode\u003erole\u003c/code\u003e, rule \u003ccode\u003eid\u003c/code\u003e and \u003ccode\u003estatus\u003c/code\u003e, filter prefix, tag keys and values, destination \u003ccode\u003ebucket\u003c/code\u003e, \u003ccode\u003estorage_class\u003c/code\u003e, \u003ccode\u003eaccount\u003c/code\u003e, \u003ccode\u003eowner\u003c/code\u003e) and the website builders (\u003ccode\u003ehost_name\u003c/code\u003e, \u003ccode\u003eprotocol\u003c/code\u003e, \u003ccode\u003eindex_doc\u003c/code\u003e, \u003ccode\u003eerror_doc\u003c/code\u003e and every routing-rule field).\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Element break-out.\u003c/strong\u003e In \u003ccode\u003eput_bucket_logging\u003c/code\u003e, for example, the body contains \u003ccode\u003e\u0026lt;TargetBucket\u0026gt;#{target_bucket}\u0026lt;/TargetBucket\u0026gt;\u003c/code\u003e. A value containing \u003ccode\u003e\u0026lt;/TargetBucket\u0026gt;\u0026lt;TargetBucket\u0026gt;...\u003c/code\u003e closes the legitimate element early and opens a second one inside the same \u003ccode\u003e\u0026lt;LoggingEnabled\u0026gt;\u003c/code\u003e block.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Well-formed result.\u003c/strong\u003e The builder\u0027s own trailing closing tag closes the injected node, so the document stays single-rooted and well-formed, parses cleanly and would be accepted by AWS. The application signs and sends the attacker-shaped configuration as its own.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Unescaped interpolation.** The bucket-configuration body builders in `lib/ex_aws/s3.ex` interpolate caller-supplied values into XML with plain string interpolation and never apply the module\u0027s `escape_xml_string/1` helper. This covers `put_bucket_logging` (`target_bucket`, `target_prefix`), the notification builders (topic, Lambda and queue ARNs, `id`, events, filter rule names and values), the replication builders (`role`, rule `id` and `status`, filter prefix, tag keys and values, destination `bucket`, `storage_class`, `account`, `owner`) and the website builders (`host_name`, `protocol`, `index_doc`, `error_doc` and every routing-rule field).\n\n**2. Element break-out.** In `put_bucket_logging`, for example, the body contains `\u003cTargetBucket\u003e#{target_bucket}\u003c/TargetBucket\u003e`. A value containing `\u003c/TargetBucket\u003e\u003cTargetBucket\u003e...` closes the legitimate element early and opens a second one inside the same `\u003cLoggingEnabled\u003e` block.\n\n**3. Well-formed result.** The builder\u0027s own trailing closing tag closes the injected node, so the document stays single-rooted and well-formed, parses cleanly and would be accepted by AWS. The application signs and sends the attacker-shaped configuration as its own."
                }
              ],
              "value": "1. Unescaped interpolation. The bucket-configuration body builders in lib/ex_aws/s3.ex interpolate caller-supplied values into XML with plain string interpolation and never apply the module\u0027s escape_xml_string/1 helper. This covers put_bucket_logging (target_bucket, target_prefix), the notification builders (topic, Lambda and queue ARNs, id, events, filter rule names and values), the replication builders (role, rule id and status, filter prefix, tag keys and values, destination bucket, storage_class, account, owner) and the website builders (host_name, protocol, index_doc, error_doc and every routing-rule field).\n\n2. Element break-out. In put_bucket_logging, for example, the body contains \u003cTargetBucket\u003e#{target_bucket}\u003c/TargetBucket\u003e. A value containing \u003c/TargetBucket\u003e\u003cTargetBucket\u003e... closes the legitimate element early and opens a second one inside the same \u003cLoggingEnabled\u003e block.\n\n3. Well-formed result. The builder\u0027s own trailing closing tag closes the injected node, so the document stays single-rooted and well-formed, parses cleanly and would be accepted by AWS. The application signs and sends the attacker-shaped configuration as its own."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-63581",
        "datePublished": "2026-11-24T14:15:21.465Z",
        "dateReserved": "2026-07-17T04:14:44.351Z",
        "dateUpdated": "2026-11-24T14:15:21.465Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-62273 (GCVE-0-2026-62273)

    Vulnerability from nvd – Published: 2026-11-24 14:15 – Updated: 2026-11-24 14:15
    VLAI
    Title
    XML injection via unescaped tag keys and values in ex_aws_s3 object and bucket tagging
    Summary
    XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls tag keys or values to inject forged tag entries into S3 object and bucket tagging requests. ExAws.S3.put_object_tagging/4 and ExAws.S3.put_bucket_tagging/2 in lib/ex_aws/s3.ex build the <TagSet> request body by interpolating tag keys and values directly into <Key> and <Value> elements via to_string/1, without applying the module's existing escape_xml_string/1 helper (which delete_multiple_objects already uses for object keys). An application that forwards user-supplied data as a tag key or value lets an attacker close the intended element and inject attacker-chosen <Tag> entries. For example, a tag value of blue</Value></Tag><Tag><Key>owner</Key><Value>admin turns one intended tag into two tags on the wire. Because S3 honors tags in access-control conditions (aws:RequestTag, s3:ExistingObjectTag) and cost-allocation reporting, an injected tag can forge an authorization-relevant tag or corrupt the intended tag set. This issue affects ex_aws_s3: from 2.0.2 before 2.6.0.
    CWE
    Impacted products
    Vendor Product Version
    ex-aws ex_aws_s3 Affected: 2.0.2 , < 2.6.0 (semver)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ex-aws ex_aws_s3 Affected: c6331b84c80f09d24d4a25cf05d8604541ce162e , < eda0b9b9c63707f7db8d8f18c331df7fda57c397 (git)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 14:15
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex_aws_s3",
              "packageURL": "pkg:hex/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_object_tagging/4"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_tagging/2"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "2.6.0",
                  "status": "affected",
                  "version": "2.0.2",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex-aws/ex_aws_s3",
              "packageURL": "pkg:github/ex-aws/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_object_tagging/4"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_tagging/2"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "eda0b9b9c63707f7db8d8f18c331df7fda57c397",
                  "status": "affected",
                  "version": "c6331b84c80f09d24d4a25cf05d8604541ce162e",
                  "versionType": "git"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.6.0",
                      "versionStartIncluding": "2.0.2",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "analyst",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Bernard Duggan"
            }
          ],
          "datePublic": "2026-11-24T14:15:58.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eXML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls tag keys or values to inject forged tag entries into S3 object and bucket tagging requests.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eExAws.S3.put_object_tagging/4\u003c/code\u003e and \u003ccode\u003eExAws.S3.put_bucket_tagging/2\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e build the \u003ccode\u003e\u0026lt;TagSet\u0026gt;\u003c/code\u003e request body by interpolating tag keys and values directly into \u003ccode\u003e\u0026lt;Key\u0026gt;\u003c/code\u003e and \u003ccode\u003e\u0026lt;Value\u0026gt;\u003c/code\u003e elements via \u003ccode\u003eto_string/1\u003c/code\u003e, without applying the module\u0027s existing \u003ccode\u003eescape_xml_string/1\u003c/code\u003e helper (which \u003ccode\u003edelete_multiple_objects\u003c/code\u003e already uses for object keys). An application that forwards user-supplied data as a tag key or value lets an attacker close the intended element and inject attacker-chosen \u003ccode\u003e\u0026lt;Tag\u0026gt;\u003c/code\u003e entries. For example, a tag value of \u003ccode\u003eblue\u0026lt;/Value\u0026gt;\u0026lt;/Tag\u0026gt;\u0026lt;Tag\u0026gt;\u0026lt;Key\u0026gt;owner\u0026lt;/Key\u0026gt;\u0026lt;Value\u0026gt;admin\u003c/code\u003e turns one intended tag into two tags on the wire. Because S3 honors tags in access-control conditions (\u003ccode\u003eaws:RequestTag\u003c/code\u003e, \u003ccode\u003es3:ExistingObjectTag\u003c/code\u003e) and cost-allocation reporting, an injected tag can forge an authorization-relevant tag or corrupt the intended tag set.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.0.2 before 2.6.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls tag keys or values to inject forged tag entries into S3 object and bucket tagging requests.\n\n`ExAws.S3.put_object_tagging/4` and `ExAws.S3.put_bucket_tagging/2` in `lib/ex_aws/s3.ex` build the `\u003cTagSet\u003e` request body by interpolating tag keys and values directly into `\u003cKey\u003e` and `\u003cValue\u003e` elements via `to_string/1`, without applying the module\u0027s existing `escape_xml_string/1` helper (which `delete_multiple_objects` already uses for object keys). An application that forwards user-supplied data as a tag key or value lets an attacker close the intended element and inject attacker-chosen `\u003cTag\u003e` entries. For example, a tag value of `blue\u003c/Value\u003e\u003c/Tag\u003e\u003cTag\u003e\u003cKey\u003eowner\u003c/Key\u003e\u003cValue\u003eadmin` turns one intended tag into two tags on the wire. Because S3 honors tags in access-control conditions (`aws:RequestTag`, `s3:ExistingObjectTag`) and cost-allocation reporting, an injected tag can forge an authorization-relevant tag or corrupt the intended tag set.\n\nThis issue affects ex_aws_s3: from 2.0.2 before 2.6.0."
                }
              ],
              "value": "XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls tag keys or values to inject forged tag entries into S3 object and bucket tagging requests.\n\nExAws.S3.put_object_tagging/4 and ExAws.S3.put_bucket_tagging/2 in lib/ex_aws/s3.ex build the \u003cTagSet\u003e request body by interpolating tag keys and values directly into \u003cKey\u003e and \u003cValue\u003e elements via to_string/1, without applying the module\u0027s existing escape_xml_string/1 helper (which delete_multiple_objects already uses for object keys). An application that forwards user-supplied data as a tag key or value lets an attacker close the intended element and inject attacker-chosen \u003cTag\u003e entries. For example, a tag value of blue\u003c/Value\u003e\u003c/Tag\u003e\u003cTag\u003e\u003cKey\u003eowner\u003c/Key\u003e\u003cValue\u003eadmin turns one intended tag into two tags on the wire. Because S3 honors tags in access-control conditions (aws:RequestTag, s3:ExistingObjectTag) and cost-allocation reporting, an injected tag can forge an authorization-relevant tag or corrupt the intended tag set.\n\nThis issue affects ex_aws_s3: from 2.0.2 before 2.6.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-250",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eThis is an XML injection vulnerability. It affects any application that uses \u003ccode\u003eex_aws_s3\u003c/code\u003e and passes user-influenced data as tag keys or values to \u003ccode\u003eput_object_tagging/4\u003c/code\u003e or \u003ccode\u003eput_bucket_tagging/2\u003c/code\u003e. An attacker who controls part of a tag key or value can inject additional \u003ccode\u003e\u0026lt;Tag\u0026gt;\u003c/code\u003e elements into the request S3 receives, forging tags used for tag-based access control and cost allocation, or corrupting the intended tag set. The only precondition is that user-controlled input reaches the tag key/value of one of these calls.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "This is an XML injection vulnerability. It affects any application that uses `ex_aws_s3` and passes user-influenced data as tag keys or values to `put_object_tagging/4` or `put_bucket_tagging/2`. An attacker who controls part of a tag key or value can inject additional `\u003cTag\u003e` elements into the request S3 receives, forging tags used for tag-based access control and cost allocation, or corrupting the intended tag set. The only precondition is that user-controlled input reaches the tag key/value of one of these calls."
                    }
                  ],
                  "value": "This is an XML injection vulnerability. It affects any application that uses ex_aws_s3 and passes user-influenced data as tag keys or values to put_object_tagging/4 or put_bucket_tagging/2. An attacker who controls part of a tag key or value can inject additional \u003cTag\u003e elements into the request S3 receives, forging tags used for tag-based access control and cost allocation, or corrupting the intended tag set. The only precondition is that user-controlled input reaches the tag key/value of one of these calls."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "LOCAL",
                "baseScore": 2.1,
                "baseSeverity": "LOW",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "LOW",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "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",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "LOW",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-91",
                  "description": "CWE-91 XML Injection",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T14:15:59.569Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-979q-5hj9-vvvv"
            },
            {
              "name": "EEF CNA record for CVE-2026-62273",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-62273.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-62273",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-62273"
            },
            {
              "name": "Introducing commit c6331b8 in ex-aws/ex_aws_s3",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/c6331b84c80f09d24d4a25cf05d8604541ce162e"
            },
            {
              "name": "Fix commit eda0b9b in ex-aws/ex_aws_s3",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/eda0b9b9c63707f7db8d8f18c331df7fda57c397"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "XML injection via unescaped tag keys and values in ex_aws_s3 object and bucket tagging",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eBefore passing user-influenced data to \u003ccode\u003eput_object_tagging/4\u003c/code\u003e or \u003ccode\u003eput_bucket_tagging/2\u003c/code\u003e, validate and reject any tag key or value containing XML metacharacters (\u003ccode\u003e\u0026lt;\u003c/code\u003e, \u003ccode\u003e\u0026gt;\u003c/code\u003e, \u003ccode\u003e\u0026amp;\u003c/code\u003e, \u003ccode\u003e\"\u003c/code\u003e, \u003ccode\u003e\u0027\u003c/code\u003e), or restrict tag keys and values to an allowlisted character set.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Before passing user-influenced data to `put_object_tagging/4` or `put_bucket_tagging/2`, validate and reject any tag key or value containing XML metacharacters (`\u003c`, `\u003e`, `\u0026`, `\"`, `\u0027`), or restrict tag keys and values to an allowlisted character set."
                }
              ],
              "value": "Before passing user-influenced data to put_object_tagging/4 or put_bucket_tagging/2, validate and reject any tag key or value containing XML metacharacters (\u003c, \u003e, \u0026, \", \u0027), or restrict tag keys and values to an allowlisted character set."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eAn application forwards a user-supplied tag value: \u003ccode\u003eExAws.S3.put_object_tagging(\"victim-bucket\", \"user/object.txt\", [{\"customer\", value}]) |\u0026gt; ExAws.request()\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker supplies the value \u003ccode\u003eblue\u0026lt;/Value\u0026gt;\u0026lt;/Tag\u0026gt;\u0026lt;Tag\u0026gt;\u0026lt;Key\u0026gt;owner\u0026lt;/Key\u0026gt;\u0026lt;Value\u0026gt;admin\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eput_object_tagging/4\u003c/code\u003e interpolates it into the \u003ccode\u003e\u0026lt;TagSet\u0026gt;\u003c/code\u003e body without escaping.\u003c/li\u003e\n\u003cli\u003eThe request body S3 receives contains two \u003ccode\u003e\u0026lt;Tag\u0026gt;\u003c/code\u003e elements: \u003ccode\u003ecustomer=blue\u003c/code\u003e and the forged \u003ccode\u003eowner=admin\u003c/code\u003e.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. An application forwards a user-supplied tag value: `ExAws.S3.put_object_tagging(\"victim-bucket\", \"user/object.txt\", [{\"customer\", value}]) |\u003e ExAws.request()`.\n2. The attacker supplies the value `blue\u003c/Value\u003e\u003c/Tag\u003e\u003cTag\u003e\u003cKey\u003eowner\u003c/Key\u003e\u003cValue\u003eadmin`.\n3. `put_object_tagging/4` interpolates it into the `\u003cTagSet\u003e` body without escaping.\n4. The request body S3 receives contains two `\u003cTag\u003e` elements: `customer=blue` and the forged `owner=admin`."
                }
              ],
              "value": "* An application forwards a user-supplied tag value: ExAws.S3.put_object_tagging(\"victim-bucket\", \"user/object.txt\", [{\"customer\", value}]) |\u003e ExAws.request().\n* The attacker supplies the value blue\u003c/Value\u003e\u003c/Tag\u003e\u003cTag\u003e\u003cKey\u003eowner\u003c/Key\u003e\u003cValue\u003eadmin.\n* put_object_tagging/4 interpolates it into the \u003cTagSet\u003e body without escaping.\n* The request body S3 receives contains two \u003cTag\u003e elements: customer=blue and the forged owner=admin."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Unescaped interpolation.\u003c/strong\u003e \u003ccode\u003eExAws.S3.put_bucket_tagging/2\u003c/code\u003e and \u003ccode\u003eExAws.S3.put_object_tagging/4\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e build each \u003ccode\u003e\u0026lt;Tag\u0026gt;\u003c/code\u003e element by placing \u003ccode\u003eto_string(key)\u003c/code\u003e and \u003ccode\u003eto_string(value)\u003c/code\u003e directly inside \u003ccode\u003e\u0026lt;Key\u0026gt;\u003c/code\u003e and \u003ccode\u003e\u0026lt;Value\u0026gt;\u003c/code\u003e. The module\u0027s \u003ccode\u003eescape_xml_string/1\u003c/code\u003e helper, which \u003ccode\u003edelete_multiple_objects\u003c/code\u003e already applies to object keys, is not used.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Element break-out.\u003c/strong\u003e XML metacharacters in a key or value are emitted verbatim. A value such as \u003ccode\u003eblue\u0026lt;/Value\u0026gt;\u0026lt;/Tag\u0026gt;\u0026lt;Tag\u0026gt;\u0026lt;Key\u0026gt;owner\u0026lt;/Key\u0026gt;\u0026lt;Value\u0026gt;admin\u003c/code\u003e closes the intended \u003ccode\u003e\u0026lt;Value\u0026gt;\u003c/code\u003e and \u003ccode\u003e\u0026lt;Tag\u0026gt;\u003c/code\u003e and opens a new \u003ccode\u003e\u0026lt;Tag\u0026gt;\u003c/code\u003e of the attacker\u0027s choosing, so S3 parses two tags where the application intended one.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Effect in S3.\u003c/strong\u003e S3 honors tags in access-control conditions (\u003ccode\u003eaws:RequestTag\u003c/code\u003e, \u003ccode\u003es3:ExistingObjectTag/\u0026lt;key\u0026gt;\u003c/code\u003e) and in cost-allocation reporting, so the injected tag can set an authorization-relevant key the application never meant to assign, or override and corrupt the legitimate tag set.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Unescaped interpolation.** `ExAws.S3.put_bucket_tagging/2` and `ExAws.S3.put_object_tagging/4` in `lib/ex_aws/s3.ex` build each `\u003cTag\u003e` element by placing `to_string(key)` and `to_string(value)` directly inside `\u003cKey\u003e` and `\u003cValue\u003e`. The module\u0027s `escape_xml_string/1` helper, which `delete_multiple_objects` already applies to object keys, is not used.\n\n**2. Element break-out.** XML metacharacters in a key or value are emitted verbatim. A value such as `blue\u003c/Value\u003e\u003c/Tag\u003e\u003cTag\u003e\u003cKey\u003eowner\u003c/Key\u003e\u003cValue\u003eadmin` closes the intended `\u003cValue\u003e` and `\u003cTag\u003e` and opens a new `\u003cTag\u003e` of the attacker\u0027s choosing, so S3 parses two tags where the application intended one.\n\n**3. Effect in S3.** S3 honors tags in access-control conditions (`aws:RequestTag`, `s3:ExistingObjectTag/\u003ckey\u003e`) and in cost-allocation reporting, so the injected tag can set an authorization-relevant key the application never meant to assign, or override and corrupt the legitimate tag set."
                }
              ],
              "value": "1. Unescaped interpolation. ExAws.S3.put_bucket_tagging/2 and ExAws.S3.put_object_tagging/4 in lib/ex_aws/s3.ex build each \u003cTag\u003e element by placing to_string(key) and to_string(value) directly inside \u003cKey\u003e and \u003cValue\u003e. The module\u0027s escape_xml_string/1 helper, which delete_multiple_objects already applies to object keys, is not used.\n\n2. Element break-out. XML metacharacters in a key or value are emitted verbatim. A value such as blue\u003c/Value\u003e\u003c/Tag\u003e\u003cTag\u003e\u003cKey\u003eowner\u003c/Key\u003e\u003cValue\u003eadmin closes the intended \u003cValue\u003e and \u003cTag\u003e and opens a new \u003cTag\u003e of the attacker\u0027s choosing, so S3 parses two tags where the application intended one.\n\n3. Effect in S3. S3 honors tags in access-control conditions (aws:RequestTag, s3:ExistingObjectTag/\u003ckey\u003e) and in cost-allocation reporting, so the injected tag can set an authorization-relevant key the application never meant to assign, or override and corrupt the legitimate tag set."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-62273",
        "datePublished": "2026-11-24T14:15:59.569Z",
        "dateReserved": "2026-07-13T18:06:12.918Z",
        "dateUpdated": "2026-11-24T14:15:59.569Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-131902 (GCVE-0-2026-131902)

    Vulnerability from nvd – Published: 2026-11-24 14:13 – Updated: 2026-11-24 14:13
    VLAI
    Title
    XML injection via unescaped VersionId in ExAws.S3.delete_multiple_objects/3
    Summary
    XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an object version id passed to ExAws.S3.delete_multiple_objects/3 to add objects to the batch delete. delete_multiple_objects/3 in lib/ex_aws/s3.ex builds the <Delete> request body by placing each object's version between <VersionId> tags without XML escaping. A version such as v1</VersionId></Object><Object><Key>important-file</Key></Object><Object><Key>x</Key><VersionId>v2 closes the caller's object and opens new ones, so S3 deletes objects the application never listed, including other users' objects in the same bucket. This issue affects ex_aws_s3: from 2.0.0 before 2.6.0.
    CWE
    Impacted products
    Vendor Product Version
    ex-aws ex_aws_s3 Affected: 2.0.0 , < 2.6.0 (semver)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ex-aws ex_aws_s3 Affected: 4ce4d72219c0cb8de9356278203d8ea780311b75 , < eda0b9b9c63707f7db8d8f18c331df7fda57c397 (git)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 14:13
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex_aws_s3",
              "packageURL": "pkg:hex/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:delete_multiple_objects/3"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "2.6.0",
                  "status": "affected",
                  "version": "2.0.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex-aws/ex_aws_s3",
              "packageURL": "pkg:github/ex-aws/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:delete_multiple_objects/3"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "eda0b9b9c63707f7db8d8f18c331df7fda57c397",
                  "status": "affected",
                  "version": "4ce4d72219c0cb8de9356278203d8ea780311b75",
                  "versionType": "git"
                }
              ]
            }
          ],
          "configurations": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eReachable only when the application passes a version id derived, even partially, from untrusted input to \u003ccode\u003eExAws.S3.delete_multiple_objects/3\u003c/code\u003e, for example a service that lets users delete a specific object version by id.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Reachable only when the application passes a version id derived, even partially, from untrusted input to `ExAws.S3.delete_multiple_objects/3`, for example a service that lets users delete a specific object version by id."
                }
              ],
              "value": "Reachable only when the application passes a version id derived, even partially, from untrusted input to ExAws.S3.delete_multiple_objects/3, for example a service that lets users delete a specific object version by id."
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.6.0",
                      "versionStartIncluding": "2.0.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "analyst",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Bernard Duggan"
            }
          ],
          "dateAssigned": "2026-11-24T14:13:22.000Z",
          "datePublic": "2026-11-24T14:13:43.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eXML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an object version id passed to \u003ccode\u003eExAws.S3.delete_multiple_objects/3\u003c/code\u003e to add objects to the batch delete.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003edelete_multiple_objects/3\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e builds the \u003ccode\u003e\u0026lt;Delete\u0026gt;\u003c/code\u003e request body by placing each object\u0027s \u003ccode\u003eversion\u003c/code\u003e between \u003ccode\u003e\u0026lt;VersionId\u0026gt;\u003c/code\u003e tags without XML escaping. A version such as \u003ccode\u003ev1\u0026lt;/VersionId\u0026gt;\u0026lt;/Object\u0026gt;\u0026lt;Object\u0026gt;\u0026lt;Key\u0026gt;important-file\u0026lt;/Key\u0026gt;\u0026lt;/Object\u0026gt;\u0026lt;Object\u0026gt;\u0026lt;Key\u0026gt;x\u0026lt;/Key\u0026gt;\u0026lt;VersionId\u0026gt;v2\u003c/code\u003e closes the caller\u0027s object and opens new ones, so S3 deletes objects the application never listed, including other users\u0027 objects in the same bucket.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an object version id passed to `ExAws.S3.delete_multiple_objects/3` to add objects to the batch delete.\n\n`delete_multiple_objects/3` in `lib/ex_aws/s3.ex` builds the `\u003cDelete\u003e` request body by placing each object\u0027s `version` between `\u003cVersionId\u003e` tags without XML escaping. A version such as `v1\u003c/VersionId\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003eimportant-file\u003c/Key\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003ex\u003c/Key\u003e\u003cVersionId\u003ev2` closes the caller\u0027s object and opens new ones, so S3 deletes objects the application never listed, including other users\u0027 objects in the same bucket.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
                }
              ],
              "value": "XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an object version id passed to ExAws.S3.delete_multiple_objects/3 to add objects to the batch delete.\n\ndelete_multiple_objects/3 in lib/ex_aws/s3.ex builds the \u003cDelete\u003e request body by placing each object\u0027s version between \u003cVersionId\u003e tags without XML escaping. A version such as v1\u003c/VersionId\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003eimportant-file\u003c/Key\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003ex\u003c/Key\u003e\u003cVersionId\u003ev2 closes the caller\u0027s object and opens new ones, so S3 deletes objects the application never listed, including other users\u0027 objects in the same bucket.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-250",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eAn attacker who controls a version id passed to \u003ccode\u003edelete_multiple_objects/3\u003c/code\u003e can make the batched delete request remove arbitrary additional objects in the same bucket, including objects belonging to other users or critical to the application. Services that let users delete a specific object version by id are affected.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "An attacker who controls a version id passed to `delete_multiple_objects/3` can make the batched delete request remove arbitrary additional objects in the same bucket, including objects belonging to other users or critical to the application. Services that let users delete a specific object version by id are affected."
                    }
                  ],
                  "value": "An attacker who controls a version id passed to delete_multiple_objects/3 can make the batched delete request remove arbitrary additional objects in the same bucket, including objects belonging to other users or critical to the application. Services that let users delete a specific object version by id are affected."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "LOCAL",
                "baseScore": 5.9,
                "baseSeverity": "MEDIUM",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "HIGH",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-91",
                  "description": "CWE-91 XML Injection",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T14:13:43.953Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "Unescaped VersionId in delete_multiple_objects: XML injection",
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-mwxg-gfj8-x32v"
            },
            {
              "name": "EEF CNA record for CVE-2026-131902",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-131902.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-131902",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-131902"
            },
            {
              "name": "Introducing commit 4ce4d72 in ex-aws/ex_aws_s3",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/4ce4d72219c0cb8de9356278203d8ea780311b75"
            },
            {
              "name": "Fix commit eda0b9b in ex-aws/ex_aws_s3",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/eda0b9b9c63707f7db8d8f18c331df7fda57c397"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "XML injection via unescaped VersionId in ExAws.S3.delete_multiple_objects/3",
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eAn application lets a user delete a version of their own object and calls \u003ccode\u003eExAws.S3.delete_multiple_objects(\"user-bucket\", [{key, version}])\u003c/code\u003e with the user\u0027s \u003ccode\u003ekey\u003c/code\u003e and \u003ccode\u003eversion\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker sends the key \u003ccode\u003emy-own-file\u003c/code\u003e and the version \u003ccode\u003ev1\u0026lt;/VersionId\u0026gt;\u0026lt;/Object\u0026gt;\u0026lt;Object\u0026gt;\u0026lt;Key\u0026gt;important-file\u0026lt;/Key\u0026gt;\u0026lt;/Object\u0026gt;\u0026lt;Object\u0026gt;\u0026lt;Key\u0026gt;x\u0026lt;/Key\u0026gt;\u0026lt;VersionId\u0026gt;v2\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003edelete_multiple_objects/3\u003c/code\u003e interpolates the version unescaped into the \u003ccode\u003e\u0026lt;Delete\u0026gt;\u003c/code\u003e body.\u003c/li\u003e\n\u003cli\u003eThe body contains three \u003ccode\u003e\u0026lt;Object\u0026gt;\u003c/code\u003e entries, one of them \u003ccode\u003eimportant-file\u003c/code\u003e, which S3 deletes although the user never named it.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. An application lets a user delete a version of their own object and calls `ExAws.S3.delete_multiple_objects(\"user-bucket\", [{key, version}])` with the user\u0027s `key` and `version`.\n2. The attacker sends the key `my-own-file` and the version `v1\u003c/VersionId\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003eimportant-file\u003c/Key\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003ex\u003c/Key\u003e\u003cVersionId\u003ev2`.\n3. `delete_multiple_objects/3` interpolates the version unescaped into the `\u003cDelete\u003e` body.\n4. The body contains three `\u003cObject\u003e` entries, one of them `important-file`, which S3 deletes although the user never named it."
                }
              ],
              "value": "* An application lets a user delete a version of their own object and calls ExAws.S3.delete_multiple_objects(\"user-bucket\", [{key, version}]) with the user\u0027s key and version.\n* The attacker sends the key my-own-file and the version v1\u003c/VersionId\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003eimportant-file\u003c/Key\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003ex\u003c/Key\u003e\u003cVersionId\u003ev2.\n* delete_multiple_objects/3 interpolates the version unescaped into the \u003cDelete\u003e body.\n* The body contains three \u003cObject\u003e entries, one of them important-file, which S3 deletes although the user never named it."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Selective escaping.\u003c/strong\u003e When \u003ccode\u003edelete_multiple_objects/3\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e builds the \u003ccode\u003e\u0026lt;Delete\u0026gt;\u003c/code\u003e body, it escapes each object\u0027s key with \u003ccode\u003eescape_xml_string/1\u003c/code\u003e but emits the version from the same tuple raw: \u003ccode\u003e\"\u0026lt;VersionId\u0026gt;\", version, \"\u0026lt;/VersionId\u0026gt;\"\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Element break-out.\u003c/strong\u003e XML metacharacters in \u003ccode\u003eversion\u003c/code\u003e are read as markup. A value beginning \u003ccode\u003e\u0026lt;/VersionId\u0026gt;\u0026lt;/Object\u0026gt;\u003c/code\u003e closes the current object early, and the rest of the string can open further \u003ccode\u003e\u0026lt;Object\u0026gt;...\u0026lt;/Object\u0026gt;\u003c/code\u003e elements while keeping the document well-formed.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Extra deletes.\u003c/strong\u003e The body POSTed to S3 lists more delete targets than the caller passed in, so a single crafted version id removes arbitrary additional objects in the bucket.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Selective escaping.** When `delete_multiple_objects/3` in `lib/ex_aws/s3.ex` builds the `\u003cDelete\u003e` body, it escapes each object\u0027s key with `escape_xml_string/1` but emits the version from the same tuple raw: `\"\u003cVersionId\u003e\", version, \"\u003c/VersionId\u003e\"`.\n\n**2. Element break-out.** XML metacharacters in `version` are read as markup. A value beginning `\u003c/VersionId\u003e\u003c/Object\u003e` closes the current object early, and the rest of the string can open further `\u003cObject\u003e...\u003c/Object\u003e` elements while keeping the document well-formed.\n\n**3. Extra deletes.** The body POSTed to S3 lists more delete targets than the caller passed in, so a single crafted version id removes arbitrary additional objects in the bucket."
                }
              ],
              "value": "1. Selective escaping. When delete_multiple_objects/3 in lib/ex_aws/s3.ex builds the \u003cDelete\u003e body, it escapes each object\u0027s key with escape_xml_string/1 but emits the version from the same tuple raw: \"\u003cVersionId\u003e\", version, \"\u003c/VersionId\u003e\".\n\n2. Element break-out. XML metacharacters in version are read as markup. A value beginning \u003c/VersionId\u003e\u003c/Object\u003e closes the current object early, and the rest of the string can open further \u003cObject\u003e...\u003c/Object\u003e elements while keeping the document well-formed.\n\n3. Extra deletes. The body POSTed to S3 lists more delete targets than the caller passed in, so a single crafted version id removes arbitrary additional objects in the bucket."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-131902",
        "datePublished": "2026-11-24T14:13:43.953Z",
        "dateReserved": "2026-11-24T13:01:43.723Z",
        "dateUpdated": "2026-11-24T14:13:43.953Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-62273 (GCVE-0-2026-62273)

    Vulnerability from cvelistv5 – Published: 2026-11-24 14:15 – Updated: 2026-11-24 14:15
    VLAI
    Title
    XML injection via unescaped tag keys and values in ex_aws_s3 object and bucket tagging
    Summary
    XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls tag keys or values to inject forged tag entries into S3 object and bucket tagging requests. ExAws.S3.put_object_tagging/4 and ExAws.S3.put_bucket_tagging/2 in lib/ex_aws/s3.ex build the <TagSet> request body by interpolating tag keys and values directly into <Key> and <Value> elements via to_string/1, without applying the module's existing escape_xml_string/1 helper (which delete_multiple_objects already uses for object keys). An application that forwards user-supplied data as a tag key or value lets an attacker close the intended element and inject attacker-chosen <Tag> entries. For example, a tag value of blue</Value></Tag><Tag><Key>owner</Key><Value>admin turns one intended tag into two tags on the wire. Because S3 honors tags in access-control conditions (aws:RequestTag, s3:ExistingObjectTag) and cost-allocation reporting, an injected tag can forge an authorization-relevant tag or corrupt the intended tag set. This issue affects ex_aws_s3: from 2.0.2 before 2.6.0.
    CWE
    Impacted products
    Vendor Product Version
    ex-aws ex_aws_s3 Affected: 2.0.2 , < 2.6.0 (semver)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ex-aws ex_aws_s3 Affected: c6331b84c80f09d24d4a25cf05d8604541ce162e , < eda0b9b9c63707f7db8d8f18c331df7fda57c397 (git)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 14:15
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex_aws_s3",
              "packageURL": "pkg:hex/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_object_tagging/4"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_tagging/2"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "2.6.0",
                  "status": "affected",
                  "version": "2.0.2",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex-aws/ex_aws_s3",
              "packageURL": "pkg:github/ex-aws/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_object_tagging/4"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_tagging/2"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "eda0b9b9c63707f7db8d8f18c331df7fda57c397",
                  "status": "affected",
                  "version": "c6331b84c80f09d24d4a25cf05d8604541ce162e",
                  "versionType": "git"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.6.0",
                      "versionStartIncluding": "2.0.2",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "analyst",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Bernard Duggan"
            }
          ],
          "datePublic": "2026-11-24T14:15:58.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eXML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls tag keys or values to inject forged tag entries into S3 object and bucket tagging requests.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eExAws.S3.put_object_tagging/4\u003c/code\u003e and \u003ccode\u003eExAws.S3.put_bucket_tagging/2\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e build the \u003ccode\u003e\u0026lt;TagSet\u0026gt;\u003c/code\u003e request body by interpolating tag keys and values directly into \u003ccode\u003e\u0026lt;Key\u0026gt;\u003c/code\u003e and \u003ccode\u003e\u0026lt;Value\u0026gt;\u003c/code\u003e elements via \u003ccode\u003eto_string/1\u003c/code\u003e, without applying the module\u0027s existing \u003ccode\u003eescape_xml_string/1\u003c/code\u003e helper (which \u003ccode\u003edelete_multiple_objects\u003c/code\u003e already uses for object keys). An application that forwards user-supplied data as a tag key or value lets an attacker close the intended element and inject attacker-chosen \u003ccode\u003e\u0026lt;Tag\u0026gt;\u003c/code\u003e entries. For example, a tag value of \u003ccode\u003eblue\u0026lt;/Value\u0026gt;\u0026lt;/Tag\u0026gt;\u0026lt;Tag\u0026gt;\u0026lt;Key\u0026gt;owner\u0026lt;/Key\u0026gt;\u0026lt;Value\u0026gt;admin\u003c/code\u003e turns one intended tag into two tags on the wire. Because S3 honors tags in access-control conditions (\u003ccode\u003eaws:RequestTag\u003c/code\u003e, \u003ccode\u003es3:ExistingObjectTag\u003c/code\u003e) and cost-allocation reporting, an injected tag can forge an authorization-relevant tag or corrupt the intended tag set.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.0.2 before 2.6.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls tag keys or values to inject forged tag entries into S3 object and bucket tagging requests.\n\n`ExAws.S3.put_object_tagging/4` and `ExAws.S3.put_bucket_tagging/2` in `lib/ex_aws/s3.ex` build the `\u003cTagSet\u003e` request body by interpolating tag keys and values directly into `\u003cKey\u003e` and `\u003cValue\u003e` elements via `to_string/1`, without applying the module\u0027s existing `escape_xml_string/1` helper (which `delete_multiple_objects` already uses for object keys). An application that forwards user-supplied data as a tag key or value lets an attacker close the intended element and inject attacker-chosen `\u003cTag\u003e` entries. For example, a tag value of `blue\u003c/Value\u003e\u003c/Tag\u003e\u003cTag\u003e\u003cKey\u003eowner\u003c/Key\u003e\u003cValue\u003eadmin` turns one intended tag into two tags on the wire. Because S3 honors tags in access-control conditions (`aws:RequestTag`, `s3:ExistingObjectTag`) and cost-allocation reporting, an injected tag can forge an authorization-relevant tag or corrupt the intended tag set.\n\nThis issue affects ex_aws_s3: from 2.0.2 before 2.6.0."
                }
              ],
              "value": "XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls tag keys or values to inject forged tag entries into S3 object and bucket tagging requests.\n\nExAws.S3.put_object_tagging/4 and ExAws.S3.put_bucket_tagging/2 in lib/ex_aws/s3.ex build the \u003cTagSet\u003e request body by interpolating tag keys and values directly into \u003cKey\u003e and \u003cValue\u003e elements via to_string/1, without applying the module\u0027s existing escape_xml_string/1 helper (which delete_multiple_objects already uses for object keys). An application that forwards user-supplied data as a tag key or value lets an attacker close the intended element and inject attacker-chosen \u003cTag\u003e entries. For example, a tag value of blue\u003c/Value\u003e\u003c/Tag\u003e\u003cTag\u003e\u003cKey\u003eowner\u003c/Key\u003e\u003cValue\u003eadmin turns one intended tag into two tags on the wire. Because S3 honors tags in access-control conditions (aws:RequestTag, s3:ExistingObjectTag) and cost-allocation reporting, an injected tag can forge an authorization-relevant tag or corrupt the intended tag set.\n\nThis issue affects ex_aws_s3: from 2.0.2 before 2.6.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-250",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eThis is an XML injection vulnerability. It affects any application that uses \u003ccode\u003eex_aws_s3\u003c/code\u003e and passes user-influenced data as tag keys or values to \u003ccode\u003eput_object_tagging/4\u003c/code\u003e or \u003ccode\u003eput_bucket_tagging/2\u003c/code\u003e. An attacker who controls part of a tag key or value can inject additional \u003ccode\u003e\u0026lt;Tag\u0026gt;\u003c/code\u003e elements into the request S3 receives, forging tags used for tag-based access control and cost allocation, or corrupting the intended tag set. The only precondition is that user-controlled input reaches the tag key/value of one of these calls.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "This is an XML injection vulnerability. It affects any application that uses `ex_aws_s3` and passes user-influenced data as tag keys or values to `put_object_tagging/4` or `put_bucket_tagging/2`. An attacker who controls part of a tag key or value can inject additional `\u003cTag\u003e` elements into the request S3 receives, forging tags used for tag-based access control and cost allocation, or corrupting the intended tag set. The only precondition is that user-controlled input reaches the tag key/value of one of these calls."
                    }
                  ],
                  "value": "This is an XML injection vulnerability. It affects any application that uses ex_aws_s3 and passes user-influenced data as tag keys or values to put_object_tagging/4 or put_bucket_tagging/2. An attacker who controls part of a tag key or value can inject additional \u003cTag\u003e elements into the request S3 receives, forging tags used for tag-based access control and cost allocation, or corrupting the intended tag set. The only precondition is that user-controlled input reaches the tag key/value of one of these calls."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "LOCAL",
                "baseScore": 2.1,
                "baseSeverity": "LOW",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "LOW",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "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",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "LOW",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-91",
                  "description": "CWE-91 XML Injection",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T14:15:59.569Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-979q-5hj9-vvvv"
            },
            {
              "name": "EEF CNA record for CVE-2026-62273",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-62273.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-62273",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-62273"
            },
            {
              "name": "Introducing commit c6331b8 in ex-aws/ex_aws_s3",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/c6331b84c80f09d24d4a25cf05d8604541ce162e"
            },
            {
              "name": "Fix commit eda0b9b in ex-aws/ex_aws_s3",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/eda0b9b9c63707f7db8d8f18c331df7fda57c397"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "XML injection via unescaped tag keys and values in ex_aws_s3 object and bucket tagging",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eBefore passing user-influenced data to \u003ccode\u003eput_object_tagging/4\u003c/code\u003e or \u003ccode\u003eput_bucket_tagging/2\u003c/code\u003e, validate and reject any tag key or value containing XML metacharacters (\u003ccode\u003e\u0026lt;\u003c/code\u003e, \u003ccode\u003e\u0026gt;\u003c/code\u003e, \u003ccode\u003e\u0026amp;\u003c/code\u003e, \u003ccode\u003e\"\u003c/code\u003e, \u003ccode\u003e\u0027\u003c/code\u003e), or restrict tag keys and values to an allowlisted character set.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Before passing user-influenced data to `put_object_tagging/4` or `put_bucket_tagging/2`, validate and reject any tag key or value containing XML metacharacters (`\u003c`, `\u003e`, `\u0026`, `\"`, `\u0027`), or restrict tag keys and values to an allowlisted character set."
                }
              ],
              "value": "Before passing user-influenced data to put_object_tagging/4 or put_bucket_tagging/2, validate and reject any tag key or value containing XML metacharacters (\u003c, \u003e, \u0026, \", \u0027), or restrict tag keys and values to an allowlisted character set."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eAn application forwards a user-supplied tag value: \u003ccode\u003eExAws.S3.put_object_tagging(\"victim-bucket\", \"user/object.txt\", [{\"customer\", value}]) |\u0026gt; ExAws.request()\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker supplies the value \u003ccode\u003eblue\u0026lt;/Value\u0026gt;\u0026lt;/Tag\u0026gt;\u0026lt;Tag\u0026gt;\u0026lt;Key\u0026gt;owner\u0026lt;/Key\u0026gt;\u0026lt;Value\u0026gt;admin\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eput_object_tagging/4\u003c/code\u003e interpolates it into the \u003ccode\u003e\u0026lt;TagSet\u0026gt;\u003c/code\u003e body without escaping.\u003c/li\u003e\n\u003cli\u003eThe request body S3 receives contains two \u003ccode\u003e\u0026lt;Tag\u0026gt;\u003c/code\u003e elements: \u003ccode\u003ecustomer=blue\u003c/code\u003e and the forged \u003ccode\u003eowner=admin\u003c/code\u003e.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. An application forwards a user-supplied tag value: `ExAws.S3.put_object_tagging(\"victim-bucket\", \"user/object.txt\", [{\"customer\", value}]) |\u003e ExAws.request()`.\n2. The attacker supplies the value `blue\u003c/Value\u003e\u003c/Tag\u003e\u003cTag\u003e\u003cKey\u003eowner\u003c/Key\u003e\u003cValue\u003eadmin`.\n3. `put_object_tagging/4` interpolates it into the `\u003cTagSet\u003e` body without escaping.\n4. The request body S3 receives contains two `\u003cTag\u003e` elements: `customer=blue` and the forged `owner=admin`."
                }
              ],
              "value": "* An application forwards a user-supplied tag value: ExAws.S3.put_object_tagging(\"victim-bucket\", \"user/object.txt\", [{\"customer\", value}]) |\u003e ExAws.request().\n* The attacker supplies the value blue\u003c/Value\u003e\u003c/Tag\u003e\u003cTag\u003e\u003cKey\u003eowner\u003c/Key\u003e\u003cValue\u003eadmin.\n* put_object_tagging/4 interpolates it into the \u003cTagSet\u003e body without escaping.\n* The request body S3 receives contains two \u003cTag\u003e elements: customer=blue and the forged owner=admin."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Unescaped interpolation.\u003c/strong\u003e \u003ccode\u003eExAws.S3.put_bucket_tagging/2\u003c/code\u003e and \u003ccode\u003eExAws.S3.put_object_tagging/4\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e build each \u003ccode\u003e\u0026lt;Tag\u0026gt;\u003c/code\u003e element by placing \u003ccode\u003eto_string(key)\u003c/code\u003e and \u003ccode\u003eto_string(value)\u003c/code\u003e directly inside \u003ccode\u003e\u0026lt;Key\u0026gt;\u003c/code\u003e and \u003ccode\u003e\u0026lt;Value\u0026gt;\u003c/code\u003e. The module\u0027s \u003ccode\u003eescape_xml_string/1\u003c/code\u003e helper, which \u003ccode\u003edelete_multiple_objects\u003c/code\u003e already applies to object keys, is not used.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Element break-out.\u003c/strong\u003e XML metacharacters in a key or value are emitted verbatim. A value such as \u003ccode\u003eblue\u0026lt;/Value\u0026gt;\u0026lt;/Tag\u0026gt;\u0026lt;Tag\u0026gt;\u0026lt;Key\u0026gt;owner\u0026lt;/Key\u0026gt;\u0026lt;Value\u0026gt;admin\u003c/code\u003e closes the intended \u003ccode\u003e\u0026lt;Value\u0026gt;\u003c/code\u003e and \u003ccode\u003e\u0026lt;Tag\u0026gt;\u003c/code\u003e and opens a new \u003ccode\u003e\u0026lt;Tag\u0026gt;\u003c/code\u003e of the attacker\u0027s choosing, so S3 parses two tags where the application intended one.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Effect in S3.\u003c/strong\u003e S3 honors tags in access-control conditions (\u003ccode\u003eaws:RequestTag\u003c/code\u003e, \u003ccode\u003es3:ExistingObjectTag/\u0026lt;key\u0026gt;\u003c/code\u003e) and in cost-allocation reporting, so the injected tag can set an authorization-relevant key the application never meant to assign, or override and corrupt the legitimate tag set.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Unescaped interpolation.** `ExAws.S3.put_bucket_tagging/2` and `ExAws.S3.put_object_tagging/4` in `lib/ex_aws/s3.ex` build each `\u003cTag\u003e` element by placing `to_string(key)` and `to_string(value)` directly inside `\u003cKey\u003e` and `\u003cValue\u003e`. The module\u0027s `escape_xml_string/1` helper, which `delete_multiple_objects` already applies to object keys, is not used.\n\n**2. Element break-out.** XML metacharacters in a key or value are emitted verbatim. A value such as `blue\u003c/Value\u003e\u003c/Tag\u003e\u003cTag\u003e\u003cKey\u003eowner\u003c/Key\u003e\u003cValue\u003eadmin` closes the intended `\u003cValue\u003e` and `\u003cTag\u003e` and opens a new `\u003cTag\u003e` of the attacker\u0027s choosing, so S3 parses two tags where the application intended one.\n\n**3. Effect in S3.** S3 honors tags in access-control conditions (`aws:RequestTag`, `s3:ExistingObjectTag/\u003ckey\u003e`) and in cost-allocation reporting, so the injected tag can set an authorization-relevant key the application never meant to assign, or override and corrupt the legitimate tag set."
                }
              ],
              "value": "1. Unescaped interpolation. ExAws.S3.put_bucket_tagging/2 and ExAws.S3.put_object_tagging/4 in lib/ex_aws/s3.ex build each \u003cTag\u003e element by placing to_string(key) and to_string(value) directly inside \u003cKey\u003e and \u003cValue\u003e. The module\u0027s escape_xml_string/1 helper, which delete_multiple_objects already applies to object keys, is not used.\n\n2. Element break-out. XML metacharacters in a key or value are emitted verbatim. A value such as blue\u003c/Value\u003e\u003c/Tag\u003e\u003cTag\u003e\u003cKey\u003eowner\u003c/Key\u003e\u003cValue\u003eadmin closes the intended \u003cValue\u003e and \u003cTag\u003e and opens a new \u003cTag\u003e of the attacker\u0027s choosing, so S3 parses two tags where the application intended one.\n\n3. Effect in S3. S3 honors tags in access-control conditions (aws:RequestTag, s3:ExistingObjectTag/\u003ckey\u003e) and in cost-allocation reporting, so the injected tag can set an authorization-relevant key the application never meant to assign, or override and corrupt the legitimate tag set."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-62273",
        "datePublished": "2026-11-24T14:15:59.569Z",
        "dateReserved": "2026-07-13T18:06:12.918Z",
        "dateUpdated": "2026-11-24T14:15:59.569Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-63581 (GCVE-0-2026-63581)

    Vulnerability from cvelistv5 – Published: 2026-11-24 14:15 – Updated: 2026-11-24 14:15
    VLAI
    Title
    ex_aws_s3 XML injection in bucket-configuration builders
    Summary
    XML Injection vulnerability in ex-aws ex_aws_s3 (ExAws.S3 module) allows an attacker to inject arbitrary XML configuration elements into S3 bucket-configuration request bodies via unescaped, caller-supplied values. This vulnerability is associated with program files lib/ex_aws/s3.ex and program routines ExAws.S3.put_bucket_logging/2, ExAws.S3.put_bucket_notification/2, ExAws.S3.put_bucket_replication/2, ExAws.S3.put_bucket_website/2. The bucket-configuration body builders construct their XML by interpolating caller-supplied values directly into the request body without escaping, and never route them through the module's own escape_xml_string/1 helper. A value containing XML metacharacters (<, >, &, quotes) can close the intended element early and open attacker-chosen elements, which the builder's trailing closing tag then closes, keeping the document single-rooted and well-formed. In a multi-tenant application where tenants configure their own bucket settings, an attacker who can influence one of the interpolated field values (for example the logging target, a notification ARN, a replication destination or Account, or a website redirect HostName) can inject arbitrary configuration nodes into a request the application signs and sends to AWS. The affected builders are reached through the public functions put_bucket_logging/2, put_bucket_notification/2, put_bucket_replication/2, and put_bucket_website/2. This issue affects ex_aws_s3: from 2.5.9 before 2.6.0.
    CWE
    Impacted products
    Vendor Product Version
    ex-aws ex_aws_s3 Affected: 2.5.9 , < 2.6.0 (semver)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ex-aws ex_aws_s3 Affected: 7d6f5cde90aaea36f9a059de874d1420da20eef2 , < eda0b9b9c63707f7db8d8f18c331df7fda57c397 (git)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 14:15
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex_aws_s3",
              "packageURL": "pkg:hex/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_logging/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_notification/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_replication/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_website/2"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "2.6.0",
                  "status": "affected",
                  "version": "2.5.9",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex-aws/ex_aws_s3",
              "packageURL": "pkg:github/ex-aws/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_logging/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_notification/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_replication/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_website/2"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "eda0b9b9c63707f7db8d8f18c331df7fda57c397",
                  "status": "affected",
                  "version": "7d6f5cde90aaea36f9a059de874d1420da20eef2",
                  "versionType": "git"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.6.0",
                      "versionStartIncluding": "2.5.9",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "analyst",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Bernard Duggan"
            }
          ],
          "datePublic": "2026-11-24T14:15:20.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eXML Injection vulnerability in ex-aws ex_aws_s3 (\u003ccode\u003eExAws.S3\u003c/code\u003e module) allows an attacker to inject arbitrary XML configuration elements into S3 bucket-configuration request bodies via unescaped, caller-supplied values.\u003c/p\u003e\n\u003cp\u003eThis vulnerability is associated with program files \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e and program routines \u003ccode\u003eExAws.S3.put_bucket_logging/2\u003c/code\u003e, \u003ccode\u003eExAws.S3.put_bucket_notification/2\u003c/code\u003e, \u003ccode\u003eExAws.S3.put_bucket_replication/2\u003c/code\u003e, \u003ccode\u003eExAws.S3.put_bucket_website/2\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eThe bucket-configuration body builders construct their XML by interpolating caller-supplied values directly into the request body without escaping, and never route them through the module\u0027s own \u003ccode\u003eescape_xml_string/1\u003c/code\u003e helper. A value containing XML metacharacters (\u003ccode\u003e\u0026lt;\u003c/code\u003e, \u003ccode\u003e\u0026gt;\u003c/code\u003e, \u003ccode\u003e\u0026amp;\u003c/code\u003e, quotes) can close the intended element early and open attacker-chosen elements, which the builder\u0027s trailing closing tag then closes, keeping the document single-rooted and well-formed. In a multi-tenant application where tenants configure their own bucket settings, an attacker who can influence one of the interpolated field values (for example the logging target, a notification ARN, a replication destination or Account, or a website redirect HostName) can inject arbitrary configuration nodes into a request the application signs and sends to AWS. The affected builders are reached through the public functions \u003ccode\u003eput_bucket_logging/2\u003c/code\u003e, \u003ccode\u003eput_bucket_notification/2\u003c/code\u003e, \u003ccode\u003eput_bucket_replication/2\u003c/code\u003e, and \u003ccode\u003eput_bucket_website/2\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.5.9 before 2.6.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "XML Injection vulnerability in ex-aws ex_aws_s3 (`ExAws.S3` module) allows an attacker to inject arbitrary XML configuration elements into S3 bucket-configuration request bodies via unescaped, caller-supplied values.\n\nThis vulnerability is associated with program files `lib/ex_aws/s3.ex` and program routines `ExAws.S3.put_bucket_logging/2`, `ExAws.S3.put_bucket_notification/2`, `ExAws.S3.put_bucket_replication/2`, `ExAws.S3.put_bucket_website/2`.\n\nThe bucket-configuration body builders construct their XML by interpolating caller-supplied values directly into the request body without escaping, and never route them through the module\u0027s own `escape_xml_string/1` helper. A value containing XML metacharacters (`\u003c`, `\u003e`, `\u0026`, quotes) can close the intended element early and open attacker-chosen elements, which the builder\u0027s trailing closing tag then closes, keeping the document single-rooted and well-formed. In a multi-tenant application where tenants configure their own bucket settings, an attacker who can influence one of the interpolated field values (for example the logging target, a notification ARN, a replication destination or Account, or a website redirect HostName) can inject arbitrary configuration nodes into a request the application signs and sends to AWS. The affected builders are reached through the public functions `put_bucket_logging/2`, `put_bucket_notification/2`, `put_bucket_replication/2`, and `put_bucket_website/2`.\n\nThis issue affects ex_aws_s3: from 2.5.9 before 2.6.0."
                }
              ],
              "value": "XML Injection vulnerability in ex-aws ex_aws_s3 (ExAws.S3 module) allows an attacker to inject arbitrary XML configuration elements into S3 bucket-configuration request bodies via unescaped, caller-supplied values.\n\nThis vulnerability is associated with program files lib/ex_aws/s3.ex and program routines ExAws.S3.put_bucket_logging/2, ExAws.S3.put_bucket_notification/2, ExAws.S3.put_bucket_replication/2, ExAws.S3.put_bucket_website/2.\n\nThe bucket-configuration body builders construct their XML by interpolating caller-supplied values directly into the request body without escaping, and never route them through the module\u0027s own escape_xml_string/1 helper. A value containing XML metacharacters (\u003c, \u003e, \u0026, quotes) can close the intended element early and open attacker-chosen elements, which the builder\u0027s trailing closing tag then closes, keeping the document single-rooted and well-formed. In a multi-tenant application where tenants configure their own bucket settings, an attacker who can influence one of the interpolated field values (for example the logging target, a notification ARN, a replication destination or Account, or a website redirect HostName) can inject arbitrary configuration nodes into a request the application signs and sends to AWS. The affected builders are reached through the public functions put_bucket_logging/2, put_bucket_notification/2, put_bucket_replication/2, and put_bucket_website/2.\n\nThis issue affects ex_aws_s3: from 2.5.9 before 2.6.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-250",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eThis is an XML/structure injection vulnerability in the bucket-configuration body builders of \u003ccode\u003eex_aws_s3\u003c/code\u003e. It affects any application that passes untrusted or user-supplied values into these builders, most relevantly multi-tenant services that let tenants configure their own bucket logging, notifications, replication, or website settings. The only precondition is that an attacker can influence one of the interpolated field values; they can then inject arbitrary configuration elements (e.g. an attacker-owned replication destination/\u003ccode\u003eAccount\u003c/code\u003e, logging target, or website redirect \u003ccode\u003eHostName\u003c/code\u003e) into a request the application signs and sends to AWS.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "This is an XML/structure injection vulnerability in the bucket-configuration body builders of `ex_aws_s3`. It affects any application that passes untrusted or user-supplied values into these builders, most relevantly multi-tenant services that let tenants configure their own bucket logging, notifications, replication, or website settings. The only precondition is that an attacker can influence one of the interpolated field values; they can then inject arbitrary configuration elements (e.g. an attacker-owned replication destination/`Account`, logging target, or website redirect `HostName`) into a request the application signs and sends to AWS."
                    }
                  ],
                  "value": "This is an XML/structure injection vulnerability in the bucket-configuration body builders of ex_aws_s3. It affects any application that passes untrusted or user-supplied values into these builders, most relevantly multi-tenant services that let tenants configure their own bucket logging, notifications, replication, or website settings. The only precondition is that an attacker can influence one of the interpolated field values; they can then inject arbitrary configuration elements (e.g. an attacker-owned replication destination/Account, logging target, or website redirect HostName) into a request the application signs and sends to AWS."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "NONE",
                "attackVector": "LOCAL",
                "baseScore": 6.9,
                "baseSeverity": "MEDIUM",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "LOW",
                "subIntegrityImpact": "LOW",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:L/SI:L/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "HIGH",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-91",
                  "description": "CWE-91 XML Injection",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T14:15:21.465Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-cf93-7gwh-6w98"
            },
            {
              "name": "EEF CNA record for CVE-2026-63581",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-63581.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-63581",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-63581"
            },
            {
              "name": "Introducing commit 7d6f5cd in ex-aws/ex_aws_s3",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/7d6f5cde90aaea36f9a059de874d1420da20eef2"
            },
            {
              "name": "Fix commit eda0b9b in ex-aws/ex_aws_s3",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/eda0b9b9c63707f7db8d8f18c331df7fda57c397"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "ex_aws_s3 XML injection in bucket-configuration builders",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eValidate or sanitize caller-supplied values before passing them to the affected bucket-configuration builders, rejecting or escaping any value that contains XML metacharacters (\u003ccode\u003e\u0026lt;\u003c/code\u003e, \u003ccode\u003e\u0026gt;\u003c/code\u003e, \u003ccode\u003e\u0026amp;\u003c/code\u003e, \u003ccode\u003e\u0027\u003c/code\u003e, \u003ccode\u003e\"\u003c/code\u003e).\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Validate or sanitize caller-supplied values before passing them to the affected bucket-configuration builders, rejecting or escaping any value that contains XML metacharacters (`\u003c`, `\u003e`, `\u0026`, `\u0027`, `\"`)."
                }
              ],
              "value": "Validate or sanitize caller-supplied values before passing them to the affected bucket-configuration builders, rejecting or escaping any value that contains XML metacharacters (\u003c, \u003e, \u0026, \u0027, \")."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eA multi-tenant application exposes \u003ccode\u003ePOST /configure-logging\u003c/code\u003e and forwards the tenant\u0027s form values to \u003ccode\u003eExAws.S3.put_bucket_logging(bucket, target_bucket: target_bucket)\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker submits \u003ccode\u003etarget_bucket\u003c/code\u003e as \u003ccode\u003etenant-logs\u0026lt;/TargetBucket\u0026gt;\u0026lt;TargetBucket\u0026gt;attacker-exfil-bucket\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe builder interpolates it unescaped, and its own trailing \u003ccode\u003e\u0026lt;/TargetBucket\u0026gt;\u003c/code\u003e closes the injected element, so the body stays well-formed.\u003c/li\u003e\n\u003cli\u003eParsing the body yields two \u003ccode\u003eTargetBucket\u003c/code\u003e nodes, \u003ccode\u003etenant-logs\u003c/code\u003e and \u003ccode\u003eattacker-exfil-bucket\u003c/code\u003e, in the configuration the application signs and sends to AWS.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. A multi-tenant application exposes `POST /configure-logging` and forwards the tenant\u0027s form values to `ExAws.S3.put_bucket_logging(bucket, target_bucket: target_bucket)`.\n2. The attacker submits `target_bucket` as `tenant-logs\u003c/TargetBucket\u003e\u003cTargetBucket\u003eattacker-exfil-bucket`.\n3. The builder interpolates it unescaped, and its own trailing `\u003c/TargetBucket\u003e` closes the injected element, so the body stays well-formed.\n4. Parsing the body yields two `TargetBucket` nodes, `tenant-logs` and `attacker-exfil-bucket`, in the configuration the application signs and sends to AWS."
                }
              ],
              "value": "* A multi-tenant application exposes POST /configure-logging and forwards the tenant\u0027s form values to ExAws.S3.put_bucket_logging(bucket, target_bucket: target_bucket).\n* The attacker submits target_bucket as tenant-logs\u003c/TargetBucket\u003e\u003cTargetBucket\u003eattacker-exfil-bucket.\n* The builder interpolates it unescaped, and its own trailing \u003c/TargetBucket\u003e closes the injected element, so the body stays well-formed.\n* Parsing the body yields two TargetBucket nodes, tenant-logs and attacker-exfil-bucket, in the configuration the application signs and sends to AWS."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Unescaped interpolation.\u003c/strong\u003e The bucket-configuration body builders in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e interpolate caller-supplied values into XML with plain string interpolation and never apply the module\u0027s \u003ccode\u003eescape_xml_string/1\u003c/code\u003e helper. This covers \u003ccode\u003eput_bucket_logging\u003c/code\u003e (\u003ccode\u003etarget_bucket\u003c/code\u003e, \u003ccode\u003etarget_prefix\u003c/code\u003e), the notification builders (topic, Lambda and queue ARNs, \u003ccode\u003eid\u003c/code\u003e, events, filter rule names and values), the replication builders (\u003ccode\u003erole\u003c/code\u003e, rule \u003ccode\u003eid\u003c/code\u003e and \u003ccode\u003estatus\u003c/code\u003e, filter prefix, tag keys and values, destination \u003ccode\u003ebucket\u003c/code\u003e, \u003ccode\u003estorage_class\u003c/code\u003e, \u003ccode\u003eaccount\u003c/code\u003e, \u003ccode\u003eowner\u003c/code\u003e) and the website builders (\u003ccode\u003ehost_name\u003c/code\u003e, \u003ccode\u003eprotocol\u003c/code\u003e, \u003ccode\u003eindex_doc\u003c/code\u003e, \u003ccode\u003eerror_doc\u003c/code\u003e and every routing-rule field).\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Element break-out.\u003c/strong\u003e In \u003ccode\u003eput_bucket_logging\u003c/code\u003e, for example, the body contains \u003ccode\u003e\u0026lt;TargetBucket\u0026gt;#{target_bucket}\u0026lt;/TargetBucket\u0026gt;\u003c/code\u003e. A value containing \u003ccode\u003e\u0026lt;/TargetBucket\u0026gt;\u0026lt;TargetBucket\u0026gt;...\u003c/code\u003e closes the legitimate element early and opens a second one inside the same \u003ccode\u003e\u0026lt;LoggingEnabled\u0026gt;\u003c/code\u003e block.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Well-formed result.\u003c/strong\u003e The builder\u0027s own trailing closing tag closes the injected node, so the document stays single-rooted and well-formed, parses cleanly and would be accepted by AWS. The application signs and sends the attacker-shaped configuration as its own.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Unescaped interpolation.** The bucket-configuration body builders in `lib/ex_aws/s3.ex` interpolate caller-supplied values into XML with plain string interpolation and never apply the module\u0027s `escape_xml_string/1` helper. This covers `put_bucket_logging` (`target_bucket`, `target_prefix`), the notification builders (topic, Lambda and queue ARNs, `id`, events, filter rule names and values), the replication builders (`role`, rule `id` and `status`, filter prefix, tag keys and values, destination `bucket`, `storage_class`, `account`, `owner`) and the website builders (`host_name`, `protocol`, `index_doc`, `error_doc` and every routing-rule field).\n\n**2. Element break-out.** In `put_bucket_logging`, for example, the body contains `\u003cTargetBucket\u003e#{target_bucket}\u003c/TargetBucket\u003e`. A value containing `\u003c/TargetBucket\u003e\u003cTargetBucket\u003e...` closes the legitimate element early and opens a second one inside the same `\u003cLoggingEnabled\u003e` block.\n\n**3. Well-formed result.** The builder\u0027s own trailing closing tag closes the injected node, so the document stays single-rooted and well-formed, parses cleanly and would be accepted by AWS. The application signs and sends the attacker-shaped configuration as its own."
                }
              ],
              "value": "1. Unescaped interpolation. The bucket-configuration body builders in lib/ex_aws/s3.ex interpolate caller-supplied values into XML with plain string interpolation and never apply the module\u0027s escape_xml_string/1 helper. This covers put_bucket_logging (target_bucket, target_prefix), the notification builders (topic, Lambda and queue ARNs, id, events, filter rule names and values), the replication builders (role, rule id and status, filter prefix, tag keys and values, destination bucket, storage_class, account, owner) and the website builders (host_name, protocol, index_doc, error_doc and every routing-rule field).\n\n2. Element break-out. In put_bucket_logging, for example, the body contains \u003cTargetBucket\u003e#{target_bucket}\u003c/TargetBucket\u003e. A value containing \u003c/TargetBucket\u003e\u003cTargetBucket\u003e... closes the legitimate element early and opens a second one inside the same \u003cLoggingEnabled\u003e block.\n\n3. Well-formed result. The builder\u0027s own trailing closing tag closes the injected node, so the document stays single-rooted and well-formed, parses cleanly and would be accepted by AWS. The application signs and sends the attacker-shaped configuration as its own."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-63581",
        "datePublished": "2026-11-24T14:15:21.465Z",
        "dateReserved": "2026-07-17T04:14:44.351Z",
        "dateUpdated": "2026-11-24T14:15:21.465Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-63584 (GCVE-0-2026-63584)

    Vulnerability from cvelistv5 – Published: 2026-11-24 14:15 – Updated: 2026-11-24 14:15
    VLAI
    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. 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.
    CWE
    • CWE-93 - Improper Neutralization of CRLF Sequences
    Impacted products
    Vendor Product Version
    ex-aws ex_aws_s3 Affected: 2.0.0 , < 2.6.0 (semver)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ex-aws ex_aws_s3 Affected: 4ce4d72219c0cb8de9356278203d8ea780311b75 , < b708beb7cbd0fe2ab7ce685834bb664397e4df1e (git)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 14:15
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex_aws_s3",
              "packageURL": "pkg:hex/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:upload_part_copy/8"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "2.6.0",
                  "status": "affected",
                  "version": "2.0.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex-aws/ex_aws_s3",
              "packageURL": "pkg:github/ex-aws/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:upload_part_copy/8"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "b708beb7cbd0fe2ab7ce685834bb664397e4df1e",
                  "status": "affected",
                  "version": "4ce4d72219c0cb8de9356278203d8ea780311b75",
                  "versionType": "git"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.6.0",
                      "versionStartIncluding": "2.0.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "analyst",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Bernard Duggan"
            }
          ],
          "datePublic": "2026-11-24T14:15:09.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eImproper Neutralization of CRLF Sequences (\u0027CRLF Injection\u0027) vulnerability in ex-aws ex_aws_s3 allows HTTP header injection via an attacker-controlled copy-source key.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eExAws.S3.upload_part_copy/8\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e builds the \u003ccode\u003ex-amz-copy-source\u003c/code\u003e request header by interpolating the source bucket and object key directly into \u003ccode\u003e\"/#{src_bucket}/#{src_object}\"\u003c/code\u003e with no percent-encoding. The sibling function \u003ccode\u003eput_object_copy\u003c/code\u003e percent-encodes the bucket and each path segment before assembling the same header, but \u003ccode\u003eupload_part_copy\u003c/code\u003e skips encoding entirely.\u003c/p\u003e\n\u003cp\u003eWhen the source key is derived from untrusted input, reserved characters (spaces, \u003ccode\u003e?\u003c/code\u003e, \u003ccode\u003e\u0026amp;\u003c/code\u003e, \u003ccode\u003e=\u003c/code\u003e) pass through verbatim and corrupt the copy-source reference, so the copy targets the wrong object or fails. A key containing \u003ccode\u003e\\r\u003c/code\u003e or \u003ccode\u003e\\n\u003c/code\u003e can split or inject additional headers into the outgoing HTTP request, depending on how the configured HTTP backend serializes headers.\u003c/p\u003e\n\u003cp\u003eApplications that pass a source bucket or object key derived from untrusted input to \u003ccode\u003eExAws.S3.upload_part_copy/8\u003c/code\u003e are affected. Applications that only ever pass trusted, well-formed keys are not affected.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Improper Neutralization of CRLF Sequences (\u0027CRLF Injection\u0027) 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, `?`, `\u0026`, `=`) 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."
                }
              ],
              "value": "Improper Neutralization of CRLF Sequences (\u0027CRLF Injection\u0027) 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, ?, \u0026, =) 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."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-105",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eThis is an output-encoding defect (missing percent-encoding) in the construction of the \u003ccode\u003ex-amz-copy-source\u003c/code\u003e header. Affected are applications that call \u003ccode\u003eExAws.S3.upload_part_copy/8\u003c/code\u003e 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\u0027s reach depending on the HTTP client backend in use. Applications that only ever pass trusted, well-formed keys are not affected.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "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\u0027s reach depending on the HTTP client backend in use. Applications that only ever pass trusted, well-formed keys are not affected."
                    }
                  ],
                  "value": "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\u0027s reach depending on the HTTP client backend in use. Applications that only ever pass trusted, well-formed keys are not affected."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "LOCAL",
                "baseScore": 2.1,
                "baseSeverity": "LOW",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "LOW",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "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",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "LOW",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-93",
                  "description": "CWE-93 Improper Neutralization of CRLF Sequences",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T14:15:10.351Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-27g7-88jv-xqhq"
            },
            {
              "name": "EEF CNA record for CVE-2026-63584",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-63584.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-63584",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-63584"
            },
            {
              "name": "Introducing commit 4ce4d72 in ex-aws/ex_aws_s3",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/4ce4d72219c0cb8de9356278203d8ea780311b75"
            },
            {
              "name": "Fix commit b708beb in ex-aws/ex_aws_s3",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/b708beb7cbd0fe2ab7ce685834bb664397e4df1e"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "Copy-source header injection in ExAws.S3.upload_part_copy/8 via unencoded source key",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003ePercent-encode or otherwise sanitize the source bucket and object key before passing them to \u003ccode\u003eExAws.S3.upload_part_copy/8\u003c/code\u003e. At minimum, reject (or strip) any value containing \u003ccode\u003e\\r\u003c/code\u003e, \u003ccode\u003e\\n\u003c/code\u003e, or the reserved URI characters that alter the copy-source reference. Encode each path segment with \u003ccode\u003eURI.encode(segment, \u0026amp;URI.char_unreserved?/1)\u003c/code\u003e, mirroring how \u003ccode\u003eput_object_copy\u003c/code\u003e builds the same header.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "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, \u0026URI.char_unreserved?/1)`, mirroring how `put_object_copy` builds the same header."
                }
              ],
              "value": "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, \u0026URI.char_unreserved?/1), mirroring how put_object_copy builds the same header."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eAn application copies a part whose source key comes from user input, calling \u003ccode\u003eExAws.S3.upload_part_copy/8\u003c/code\u003e and sending the operation with \u003ccode\u003eExAws.request/2\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker supplies the source key \u003ccode\u003eevil key?x=1\u0026amp;y=2\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eupload_part_copy/8\u003c/code\u003e interpolates it raw, so the request carries \u003ccode\u003ex-amz-copy-source: /src-bucket/evil key?x=1\u0026amp;y=2\u003c/code\u003e instead of the encoded \u003ccode\u003e/src-bucket/evil%20key%3Fx%3D1%26y%3D2\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe reserved characters change the copy-source reference; a key containing \u003ccode\u003e\\r\\n\u003c/code\u003e would additionally inject header lines, depending on the HTTP backend.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "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`.\n2. The attacker supplies the source key `evil key?x=1\u0026y=2`.\n3. `upload_part_copy/8` interpolates it raw, so the request carries `x-amz-copy-source: /src-bucket/evil key?x=1\u0026y=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."
                }
              ],
              "value": "* 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.\n* The attacker supplies the source key evil key?x=1\u0026y=2.\n* upload_part_copy/8 interpolates it raw, so the request carries x-amz-copy-source: /src-bucket/evil key?x=1\u0026y=2 instead of the encoded /src-bucket/evil%20key%3Fx%3D1%26y%3D2.\n* The reserved characters change the copy-source reference; a key containing \\r\\n would additionally inject header lines, depending on the HTTP backend."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Encoding in the sibling function.\u003c/strong\u003e \u003ccode\u003eput_object_copy\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e percent-encodes the source bucket and each path segment with \u003ccode\u003eURI.encode(..., \u0026amp;URI.char_unreserved?/1)\u003c/code\u003e before assembling the \u003ccode\u003ex-amz-copy-source\u003c/code\u003e header.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. No encoding in \u003ccode\u003eupload_part_copy/8\u003c/code\u003e.\u003c/strong\u003e \u003ccode\u003eupload_part_copy/8\u003c/code\u003e builds the same header as \u003ccode\u003e\"/#{src_bucket}/#{src_object}\"\u003c/code\u003e, interpolating the bucket and key raw.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Effect.\u003c/strong\u003e Reserved characters in the source key (spaces, \u003ccode\u003e?\u003c/code\u003e, \u003ccode\u003e\u0026amp;\u003c/code\u003e, \u003ccode\u003e=\u003c/code\u003e) 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 \u003ccode\u003e\\r\u003c/code\u003e or \u003ccode\u003e\\n\u003c/code\u003e can split the header or inject additional headers into the outgoing request, depending on how the configured HTTP backend serializes headers.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**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(..., \u0026URI.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, `?`, `\u0026`, `=`) 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."
                }
              ],
              "value": "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(..., \u0026URI.char_unreserved?/1) before assembling the x-amz-copy-source header.\n\n2. 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\n3. Effect. Reserved characters in the source key (spaces, ?, \u0026, =) 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."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-63584",
        "datePublished": "2026-11-24T14:15:10.351Z",
        "dateReserved": "2026-07-17T04:14:44.351Z",
        "dateUpdated": "2026-11-24T14:15:10.351Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-63583 (GCVE-0-2026-63583)

    Vulnerability from cvelistv5 – Published: 2026-11-24 14:14 – Updated: 2026-11-24 14:14
    VLAI
    Title
    XML injection in ExAws.S3.Utils.build_lifecycle_rule/1 in ex_aws_s3
    Summary
    ExAws.S3.Utils.build_lifecycle_rule/1 in ex_aws_s3 interpolates caller-supplied lifecycle rule fields (the rule id, filter prefix, tag key and value, storage class, and noncurrent-version count) directly into the PutBucketLifecycleConfiguration XML body without escaping XML metacharacters. An application that populates any of these fields from untrusted input (for example a tenant-supplied object tag) lets an attacker break out of the surrounding element and inject arbitrary XML into the request, including an entirely new lifecycle action such as a delete-after-one-day expiration that destroys the bucket's objects. The public entry point ExAws.S3.put_bucket_lifecycle/2 flows directly into this builder. This issue affects ex_aws_s3: from 2.3.0 before 2.6.0.
    CWE
    Impacted products
    Vendor Product Version
    ex-aws ex_aws_s3 Affected: 2.3.0 , < 2.6.0 (semver)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ex-aws ex_aws_s3 Affected: 34a3f1b264bd9a28d68fa98173af7085da72a15b , < eda0b9b9c63707f7db8d8f18c331df7fda57c397 (git)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 14:14
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3.Utils\u0027",
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex_aws_s3",
              "packageURL": "pkg:hex/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3/utils.ex",
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3.Utils\u0027:build_lifecycle_rule/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_lifecycle/2"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "2.6.0",
                  "status": "affected",
                  "version": "2.3.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3.Utils\u0027",
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex-aws/ex_aws_s3",
              "packageURL": "pkg:github/ex-aws/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3/utils.ex",
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3.Utils\u0027:build_lifecycle_rule/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_lifecycle/2"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "eda0b9b9c63707f7db8d8f18c331df7fda57c397",
                  "status": "affected",
                  "version": "34a3f1b264bd9a28d68fa98173af7085da72a15b",
                  "versionType": "git"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.6.0",
                      "versionStartIncluding": "2.3.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "analyst",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Bernard Duggan"
            }
          ],
          "datePublic": "2026-11-24T14:14:57.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003ccode\u003eExAws.S3.Utils.build_lifecycle_rule/1\u003c/code\u003e in ex_aws_s3 interpolates caller-supplied lifecycle rule fields (the rule id, filter prefix, tag key and value, storage class, and noncurrent-version count) directly into the \u003ccode\u003ePutBucketLifecycleConfiguration\u003c/code\u003e XML body without escaping XML metacharacters. An application that populates any of these fields from untrusted input (for example a tenant-supplied object tag) lets an attacker break out of the surrounding element and inject arbitrary XML into the request, including an entirely new lifecycle action such as a delete-after-one-day expiration that destroys the bucket\u0027s objects. The public entry point \u003ccode\u003eExAws.S3.put_bucket_lifecycle/2\u003c/code\u003e flows directly into this builder.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.3.0 before 2.6.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "`ExAws.S3.Utils.build_lifecycle_rule/1` in ex_aws_s3 interpolates caller-supplied lifecycle rule fields (the rule id, filter prefix, tag key and value, storage class, and noncurrent-version count) directly into the `PutBucketLifecycleConfiguration` XML body without escaping XML metacharacters. An application that populates any of these fields from untrusted input (for example a tenant-supplied object tag) lets an attacker break out of the surrounding element and inject arbitrary XML into the request, including an entirely new lifecycle action such as a delete-after-one-day expiration that destroys the bucket\u0027s objects. The public entry point `ExAws.S3.put_bucket_lifecycle/2` flows directly into this builder.\n\nThis issue affects ex_aws_s3: from 2.3.0 before 2.6.0."
                }
              ],
              "value": "ExAws.S3.Utils.build_lifecycle_rule/1 in ex_aws_s3 interpolates caller-supplied lifecycle rule fields (the rule id, filter prefix, tag key and value, storage class, and noncurrent-version count) directly into the PutBucketLifecycleConfiguration XML body without escaping XML metacharacters. An application that populates any of these fields from untrusted input (for example a tenant-supplied object tag) lets an attacker break out of the surrounding element and inject arbitrary XML into the request, including an entirely new lifecycle action such as a delete-after-one-day expiration that destroys the bucket\u0027s objects. The public entry point ExAws.S3.put_bucket_lifecycle/2 flows directly into this builder.\n\nThis issue affects ex_aws_s3: from 2.3.0 before 2.6.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-250",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eThis is an XML/document injection vulnerability in the construction of the \u003ccode\u003ePutBucketLifecycleConfiguration\u003c/code\u003e request. Any application that uses \u003ccode\u003eex_aws_s3\u003c/code\u003e and populates a lifecycle rule\u0027s id, prefix, tag key/value, storage class, or noncurrent-version count from data it does not fully control is affected. An attacker who controls one of those fields can inject arbitrary lifecycle actions or rules into the request, most damagingly an expiration that deletes the bucket\u0027s objects, leading to data loss or unintended retention/transition policies. Multi-tenant services that map tenant-supplied tags or identifiers into bucket lifecycle configuration are the most exposed.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "This is an XML/document injection vulnerability in the construction of the `PutBucketLifecycleConfiguration` request. Any application that uses `ex_aws_s3` and populates a lifecycle rule\u0027s id, prefix, tag key/value, storage class, or noncurrent-version count from data it does not fully control is affected. An attacker who controls one of those fields can inject arbitrary lifecycle actions or rules into the request, most damagingly an expiration that deletes the bucket\u0027s objects, leading to data loss or unintended retention/transition policies. Multi-tenant services that map tenant-supplied tags or identifiers into bucket lifecycle configuration are the most exposed."
                    }
                  ],
                  "value": "This is an XML/document injection vulnerability in the construction of the PutBucketLifecycleConfiguration request. Any application that uses ex_aws_s3 and populates a lifecycle rule\u0027s id, prefix, tag key/value, storage class, or noncurrent-version count from data it does not fully control is affected. An attacker who controls one of those fields can inject arbitrary lifecycle actions or rules into the request, most damagingly an expiration that deletes the bucket\u0027s objects, leading to data loss or unintended retention/transition policies. Multi-tenant services that map tenant-supplied tags or identifiers into bucket lifecycle configuration are the most exposed."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "LOCAL",
                "baseScore": 7,
                "baseSeverity": "HIGH",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "HIGH",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "HIGH",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:H",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "HIGH",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-91",
                  "description": "CWE-91 XML Injection",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T14:14:58.243Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-pcgv-phrm-r85v"
            },
            {
              "name": "EEF CNA record for CVE-2026-63583",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-63583.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-63583",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-63583"
            },
            {
              "name": "Introducing commit 34a3f1b in ex-aws/ex_aws_s3",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/34a3f1b264bd9a28d68fa98173af7085da72a15b"
            },
            {
              "name": "Fix commit eda0b9b in ex-aws/ex_aws_s3",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/eda0b9b9c63707f7db8d8f18c331df7fda57c397"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "XML injection in ExAws.S3.Utils.build_lifecycle_rule/1 in ex_aws_s3",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eApplications can escape or strictly validate any untrusted value before passing it into a lifecycle rule field (the rule id, filter prefix, tag key or value, storage class, or noncurrent-version count) so that XML metacharacters cannot alter the request structure.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Applications can escape or strictly validate any untrusted value before passing it into a lifecycle rule field (the rule id, filter prefix, tag key or value, storage class, or noncurrent-version count) so that XML metacharacters cannot alter the request structure."
                }
              ],
              "value": "Applications can escape or strictly validate any untrusted value before passing it into a lifecycle rule field (the rule id, filter prefix, tag key or value, storage class, or noncurrent-version count) so that XML metacharacters cannot alter the request structure."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eA multi-tenant application mirrors tenant-supplied object tags into an S3 lifecycle rule: \u003ccode\u003eExAws.S3.put_bucket_lifecycle(\"tenant-bucket\", [rule]) |\u0026gt; ExAws.request(config)\u003c/code\u003e with \u003ccode\u003efilter: %{tags: [{\"team\", value}]}\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe tenant sets the tag value to \u003ccode\u003efrontend\u0026lt;/Value\u0026gt;\u0026lt;/Tag\u0026gt;\u0026lt;/Filter\u0026gt;\u0026lt;Expiration\u0026gt;\u0026lt;Days\u0026gt;1\u0026lt;/Days\u0026gt;\u0026lt;/Expiration\u0026gt;\u0026lt;Filter\u0026gt;\u0026lt;Tag\u0026gt;\u0026lt;Key\u0026gt;team\u0026lt;/Key\u0026gt;\u0026lt;Value\u0026gt;frontend\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ebuild_lifecycle_rule/1\u003c/code\u003e interpolates it unescaped into the request body.\u003c/li\u003e\n\u003cli\u003eThe body S3 receives contains \u003ccode\u003e//Rule/Expiration/Days\u003c/code\u003e equal to \u003ccode\u003e1\u003c/code\u003e: an injected action that expires the bucket\u0027s objects after one day.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. A multi-tenant application mirrors tenant-supplied object tags into an S3 lifecycle rule: `ExAws.S3.put_bucket_lifecycle(\"tenant-bucket\", [rule]) |\u003e ExAws.request(config)` with `filter: %{tags: [{\"team\", value}]}`.\n2. The tenant sets the tag value to `frontend\u003c/Value\u003e\u003c/Tag\u003e\u003c/Filter\u003e\u003cExpiration\u003e\u003cDays\u003e1\u003c/Days\u003e\u003c/Expiration\u003e\u003cFilter\u003e\u003cTag\u003e\u003cKey\u003eteam\u003c/Key\u003e\u003cValue\u003efrontend`.\n3. `build_lifecycle_rule/1` interpolates it unescaped into the request body.\n4. The body S3 receives contains `//Rule/Expiration/Days` equal to `1`: an injected action that expires the bucket\u0027s objects after one day."
                }
              ],
              "value": "* A multi-tenant application mirrors tenant-supplied object tags into an S3 lifecycle rule: ExAws.S3.put_bucket_lifecycle(\"tenant-bucket\", [rule]) |\u003e ExAws.request(config) with filter: %{tags: [{\"team\", value}]}.\n* The tenant sets the tag value to frontend\u003c/Value\u003e\u003c/Tag\u003e\u003c/Filter\u003e\u003cExpiration\u003e\u003cDays\u003e1\u003c/Days\u003e\u003c/Expiration\u003e\u003cFilter\u003e\u003cTag\u003e\u003cKey\u003eteam\u003c/Key\u003e\u003cValue\u003efrontend.\n* build_lifecycle_rule/1 interpolates it unescaped into the request body.\n* The body S3 receives contains //Rule/Expiration/Days equal to 1: an injected action that expires the bucket\u0027s objects after one day."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Unescaped interpolation.\u003c/strong\u003e \u003ccode\u003ebuild_lifecycle_rule/1\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3/utils.ex\u003c/code\u003e builds each text node of the \u003ccode\u003ePutBucketLifecycleConfiguration\u003c/code\u003e body by raw string interpolation: the rule \u003ccode\u003eid\u003c/code\u003e, the filter \u003ccode\u003eprefix\u003c/code\u003e, tag \u003ccode\u003ekey\u003c/code\u003e and \u003ccode\u003evalue\u003c/code\u003e, the \u003ccode\u003estorage\u003c/code\u003e class and \u003ccode\u003enewer_noncurrent_versions\u003c/code\u003e. None is XML-escaped or validated before \u003ccode\u003eIO.iodata_to_binary/1\u003c/code\u003e flattens the body.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Element break-out.\u003c/strong\u003e A value containing XML metacharacters is emitted verbatim. A tag value such as \u003ccode\u003efrontend\u0026lt;/Value\u0026gt;\u0026lt;/Tag\u0026gt;\u0026lt;/Filter\u0026gt;\u0026lt;Expiration\u0026gt;\u0026lt;Days\u0026gt;1\u0026lt;/Days\u0026gt;\u0026lt;/Expiration\u0026gt;\u0026lt;Filter\u0026gt;\u0026lt;Tag\u0026gt;\u0026lt;Key\u0026gt;team\u0026lt;/Key\u0026gt;\u0026lt;Value\u0026gt;frontend\u003c/code\u003e closes the \u003ccode\u003e\u0026lt;Value\u0026gt;\u003c/code\u003e, injects an \u003ccode\u003e\u0026lt;Expiration\u0026gt;\u003c/code\u003e action and reopens a \u003ccode\u003e\u0026lt;Filter\u0026gt;\u003c/code\u003e, so the rest of the document stays well-formed. The same technique can close and reopen \u003ccode\u003e\u0026lt;Rule\u0026gt;\u003c/code\u003e to append a separate rule.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Delivery.\u003c/strong\u003e The public entry point \u003ccode\u003eExAws.S3.put_bucket_lifecycle/2\u003c/code\u003e flows directly into this builder, so S3 receives and applies the injected lifecycle configuration as soon as the request is sent with \u003ccode\u003eExAws.request/2\u003c/code\u003e.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Unescaped interpolation.** `build_lifecycle_rule/1` in `lib/ex_aws/s3/utils.ex` builds each text node of the `PutBucketLifecycleConfiguration` body by raw string interpolation: the rule `id`, the filter `prefix`, tag `key` and `value`, the `storage` class and `newer_noncurrent_versions`. None is XML-escaped or validated before `IO.iodata_to_binary/1` flattens the body.\n\n**2. Element break-out.** A value containing XML metacharacters is emitted verbatim. A tag value such as `frontend\u003c/Value\u003e\u003c/Tag\u003e\u003c/Filter\u003e\u003cExpiration\u003e\u003cDays\u003e1\u003c/Days\u003e\u003c/Expiration\u003e\u003cFilter\u003e\u003cTag\u003e\u003cKey\u003eteam\u003c/Key\u003e\u003cValue\u003efrontend` closes the `\u003cValue\u003e`, injects an `\u003cExpiration\u003e` action and reopens a `\u003cFilter\u003e`, so the rest of the document stays well-formed. The same technique can close and reopen `\u003cRule\u003e` to append a separate rule.\n\n**3. Delivery.** The public entry point `ExAws.S3.put_bucket_lifecycle/2` flows directly into this builder, so S3 receives and applies the injected lifecycle configuration as soon as the request is sent with `ExAws.request/2`."
                }
              ],
              "value": "1. Unescaped interpolation. build_lifecycle_rule/1 in lib/ex_aws/s3/utils.ex builds each text node of the PutBucketLifecycleConfiguration body by raw string interpolation: the rule id, the filter prefix, tag key and value, the storage class and newer_noncurrent_versions. None is XML-escaped or validated before IO.iodata_to_binary/1 flattens the body.\n\n2. Element break-out. A value containing XML metacharacters is emitted verbatim. A tag value such as frontend\u003c/Value\u003e\u003c/Tag\u003e\u003c/Filter\u003e\u003cExpiration\u003e\u003cDays\u003e1\u003c/Days\u003e\u003c/Expiration\u003e\u003cFilter\u003e\u003cTag\u003e\u003cKey\u003eteam\u003c/Key\u003e\u003cValue\u003efrontend closes the \u003cValue\u003e, injects an \u003cExpiration\u003e action and reopens a \u003cFilter\u003e, so the rest of the document stays well-formed. The same technique can close and reopen \u003cRule\u003e to append a separate rule.\n\n3. Delivery. The public entry point ExAws.S3.put_bucket_lifecycle/2 flows directly into this builder, so S3 receives and applies the injected lifecycle configuration as soon as the request is sent with ExAws.request/2."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-63583",
        "datePublished": "2026-11-24T14:14:58.243Z",
        "dateReserved": "2026-07-17T04:14:44.351Z",
        "dateUpdated": "2026-11-24T14:14:58.243Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-131902 (GCVE-0-2026-131902)

    Vulnerability from cvelistv5 – Published: 2026-11-24 14:13 – Updated: 2026-11-24 14:13
    VLAI
    Title
    XML injection via unescaped VersionId in ExAws.S3.delete_multiple_objects/3
    Summary
    XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an object version id passed to ExAws.S3.delete_multiple_objects/3 to add objects to the batch delete. delete_multiple_objects/3 in lib/ex_aws/s3.ex builds the <Delete> request body by placing each object's version between <VersionId> tags without XML escaping. A version such as v1</VersionId></Object><Object><Key>important-file</Key></Object><Object><Key>x</Key><VersionId>v2 closes the caller's object and opens new ones, so S3 deletes objects the application never listed, including other users' objects in the same bucket. This issue affects ex_aws_s3: from 2.0.0 before 2.6.0.
    CWE
    Impacted products
    Vendor Product Version
    ex-aws ex_aws_s3 Affected: 2.0.0 , < 2.6.0 (semver)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ex-aws ex_aws_s3 Affected: 4ce4d72219c0cb8de9356278203d8ea780311b75 , < eda0b9b9c63707f7db8d8f18c331df7fda57c397 (git)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 14:13
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex_aws_s3",
              "packageURL": "pkg:hex/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:delete_multiple_objects/3"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "2.6.0",
                  "status": "affected",
                  "version": "2.0.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex-aws/ex_aws_s3",
              "packageURL": "pkg:github/ex-aws/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:delete_multiple_objects/3"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "eda0b9b9c63707f7db8d8f18c331df7fda57c397",
                  "status": "affected",
                  "version": "4ce4d72219c0cb8de9356278203d8ea780311b75",
                  "versionType": "git"
                }
              ]
            }
          ],
          "configurations": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eReachable only when the application passes a version id derived, even partially, from untrusted input to \u003ccode\u003eExAws.S3.delete_multiple_objects/3\u003c/code\u003e, for example a service that lets users delete a specific object version by id.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Reachable only when the application passes a version id derived, even partially, from untrusted input to `ExAws.S3.delete_multiple_objects/3`, for example a service that lets users delete a specific object version by id."
                }
              ],
              "value": "Reachable only when the application passes a version id derived, even partially, from untrusted input to ExAws.S3.delete_multiple_objects/3, for example a service that lets users delete a specific object version by id."
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.6.0",
                      "versionStartIncluding": "2.0.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "analyst",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Bernard Duggan"
            }
          ],
          "dateAssigned": "2026-11-24T14:13:22.000Z",
          "datePublic": "2026-11-24T14:13:43.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eXML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an object version id passed to \u003ccode\u003eExAws.S3.delete_multiple_objects/3\u003c/code\u003e to add objects to the batch delete.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003edelete_multiple_objects/3\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e builds the \u003ccode\u003e\u0026lt;Delete\u0026gt;\u003c/code\u003e request body by placing each object\u0027s \u003ccode\u003eversion\u003c/code\u003e between \u003ccode\u003e\u0026lt;VersionId\u0026gt;\u003c/code\u003e tags without XML escaping. A version such as \u003ccode\u003ev1\u0026lt;/VersionId\u0026gt;\u0026lt;/Object\u0026gt;\u0026lt;Object\u0026gt;\u0026lt;Key\u0026gt;important-file\u0026lt;/Key\u0026gt;\u0026lt;/Object\u0026gt;\u0026lt;Object\u0026gt;\u0026lt;Key\u0026gt;x\u0026lt;/Key\u0026gt;\u0026lt;VersionId\u0026gt;v2\u003c/code\u003e closes the caller\u0027s object and opens new ones, so S3 deletes objects the application never listed, including other users\u0027 objects in the same bucket.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an object version id passed to `ExAws.S3.delete_multiple_objects/3` to add objects to the batch delete.\n\n`delete_multiple_objects/3` in `lib/ex_aws/s3.ex` builds the `\u003cDelete\u003e` request body by placing each object\u0027s `version` between `\u003cVersionId\u003e` tags without XML escaping. A version such as `v1\u003c/VersionId\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003eimportant-file\u003c/Key\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003ex\u003c/Key\u003e\u003cVersionId\u003ev2` closes the caller\u0027s object and opens new ones, so S3 deletes objects the application never listed, including other users\u0027 objects in the same bucket.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
                }
              ],
              "value": "XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an object version id passed to ExAws.S3.delete_multiple_objects/3 to add objects to the batch delete.\n\ndelete_multiple_objects/3 in lib/ex_aws/s3.ex builds the \u003cDelete\u003e request body by placing each object\u0027s version between \u003cVersionId\u003e tags without XML escaping. A version such as v1\u003c/VersionId\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003eimportant-file\u003c/Key\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003ex\u003c/Key\u003e\u003cVersionId\u003ev2 closes the caller\u0027s object and opens new ones, so S3 deletes objects the application never listed, including other users\u0027 objects in the same bucket.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-250",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eAn attacker who controls a version id passed to \u003ccode\u003edelete_multiple_objects/3\u003c/code\u003e can make the batched delete request remove arbitrary additional objects in the same bucket, including objects belonging to other users or critical to the application. Services that let users delete a specific object version by id are affected.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "An attacker who controls a version id passed to `delete_multiple_objects/3` can make the batched delete request remove arbitrary additional objects in the same bucket, including objects belonging to other users or critical to the application. Services that let users delete a specific object version by id are affected."
                    }
                  ],
                  "value": "An attacker who controls a version id passed to delete_multiple_objects/3 can make the batched delete request remove arbitrary additional objects in the same bucket, including objects belonging to other users or critical to the application. Services that let users delete a specific object version by id are affected."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "LOCAL",
                "baseScore": 5.9,
                "baseSeverity": "MEDIUM",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "HIGH",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-91",
                  "description": "CWE-91 XML Injection",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T14:13:43.953Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "Unescaped VersionId in delete_multiple_objects: XML injection",
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-mwxg-gfj8-x32v"
            },
            {
              "name": "EEF CNA record for CVE-2026-131902",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-131902.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-131902",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-131902"
            },
            {
              "name": "Introducing commit 4ce4d72 in ex-aws/ex_aws_s3",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/4ce4d72219c0cb8de9356278203d8ea780311b75"
            },
            {
              "name": "Fix commit eda0b9b in ex-aws/ex_aws_s3",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/eda0b9b9c63707f7db8d8f18c331df7fda57c397"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "XML injection via unescaped VersionId in ExAws.S3.delete_multiple_objects/3",
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eAn application lets a user delete a version of their own object and calls \u003ccode\u003eExAws.S3.delete_multiple_objects(\"user-bucket\", [{key, version}])\u003c/code\u003e with the user\u0027s \u003ccode\u003ekey\u003c/code\u003e and \u003ccode\u003eversion\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker sends the key \u003ccode\u003emy-own-file\u003c/code\u003e and the version \u003ccode\u003ev1\u0026lt;/VersionId\u0026gt;\u0026lt;/Object\u0026gt;\u0026lt;Object\u0026gt;\u0026lt;Key\u0026gt;important-file\u0026lt;/Key\u0026gt;\u0026lt;/Object\u0026gt;\u0026lt;Object\u0026gt;\u0026lt;Key\u0026gt;x\u0026lt;/Key\u0026gt;\u0026lt;VersionId\u0026gt;v2\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003edelete_multiple_objects/3\u003c/code\u003e interpolates the version unescaped into the \u003ccode\u003e\u0026lt;Delete\u0026gt;\u003c/code\u003e body.\u003c/li\u003e\n\u003cli\u003eThe body contains three \u003ccode\u003e\u0026lt;Object\u0026gt;\u003c/code\u003e entries, one of them \u003ccode\u003eimportant-file\u003c/code\u003e, which S3 deletes although the user never named it.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. An application lets a user delete a version of their own object and calls `ExAws.S3.delete_multiple_objects(\"user-bucket\", [{key, version}])` with the user\u0027s `key` and `version`.\n2. The attacker sends the key `my-own-file` and the version `v1\u003c/VersionId\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003eimportant-file\u003c/Key\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003ex\u003c/Key\u003e\u003cVersionId\u003ev2`.\n3. `delete_multiple_objects/3` interpolates the version unescaped into the `\u003cDelete\u003e` body.\n4. The body contains three `\u003cObject\u003e` entries, one of them `important-file`, which S3 deletes although the user never named it."
                }
              ],
              "value": "* An application lets a user delete a version of their own object and calls ExAws.S3.delete_multiple_objects(\"user-bucket\", [{key, version}]) with the user\u0027s key and version.\n* The attacker sends the key my-own-file and the version v1\u003c/VersionId\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003eimportant-file\u003c/Key\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003ex\u003c/Key\u003e\u003cVersionId\u003ev2.\n* delete_multiple_objects/3 interpolates the version unescaped into the \u003cDelete\u003e body.\n* The body contains three \u003cObject\u003e entries, one of them important-file, which S3 deletes although the user never named it."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Selective escaping.\u003c/strong\u003e When \u003ccode\u003edelete_multiple_objects/3\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e builds the \u003ccode\u003e\u0026lt;Delete\u0026gt;\u003c/code\u003e body, it escapes each object\u0027s key with \u003ccode\u003eescape_xml_string/1\u003c/code\u003e but emits the version from the same tuple raw: \u003ccode\u003e\"\u0026lt;VersionId\u0026gt;\", version, \"\u0026lt;/VersionId\u0026gt;\"\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Element break-out.\u003c/strong\u003e XML metacharacters in \u003ccode\u003eversion\u003c/code\u003e are read as markup. A value beginning \u003ccode\u003e\u0026lt;/VersionId\u0026gt;\u0026lt;/Object\u0026gt;\u003c/code\u003e closes the current object early, and the rest of the string can open further \u003ccode\u003e\u0026lt;Object\u0026gt;...\u0026lt;/Object\u0026gt;\u003c/code\u003e elements while keeping the document well-formed.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Extra deletes.\u003c/strong\u003e The body POSTed to S3 lists more delete targets than the caller passed in, so a single crafted version id removes arbitrary additional objects in the bucket.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Selective escaping.** When `delete_multiple_objects/3` in `lib/ex_aws/s3.ex` builds the `\u003cDelete\u003e` body, it escapes each object\u0027s key with `escape_xml_string/1` but emits the version from the same tuple raw: `\"\u003cVersionId\u003e\", version, \"\u003c/VersionId\u003e\"`.\n\n**2. Element break-out.** XML metacharacters in `version` are read as markup. A value beginning `\u003c/VersionId\u003e\u003c/Object\u003e` closes the current object early, and the rest of the string can open further `\u003cObject\u003e...\u003c/Object\u003e` elements while keeping the document well-formed.\n\n**3. Extra deletes.** The body POSTed to S3 lists more delete targets than the caller passed in, so a single crafted version id removes arbitrary additional objects in the bucket."
                }
              ],
              "value": "1. Selective escaping. When delete_multiple_objects/3 in lib/ex_aws/s3.ex builds the \u003cDelete\u003e body, it escapes each object\u0027s key with escape_xml_string/1 but emits the version from the same tuple raw: \"\u003cVersionId\u003e\", version, \"\u003c/VersionId\u003e\".\n\n2. Element break-out. XML metacharacters in version are read as markup. A value beginning \u003c/VersionId\u003e\u003c/Object\u003e closes the current object early, and the rest of the string can open further \u003cObject\u003e...\u003c/Object\u003e elements while keeping the document well-formed.\n\n3. Extra deletes. The body POSTed to S3 lists more delete targets than the caller passed in, so a single crafted version id removes arbitrary additional objects in the bucket."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-131902",
        "datePublished": "2026-11-24T14:13:43.953Z",
        "dateReserved": "2026-11-24T13:01:43.723Z",
        "dateUpdated": "2026-11-24T14:13:43.953Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-63582 (GCVE-0-2026-63582)

    Vulnerability from cvelistv5 – Published: 2026-11-24 14:13 – Updated: 2026-11-24 14:13
    VLAI
    Title
    S3 bucket name controls the host of presigned URLs in ex_aws_s3
    Summary
    Externally Controlled Reference to a Resource in Another Sphere vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an S3 bucket name to make presigned URLs and presigned POST forms point at a host of their choice. With virtual_host: true, s3_accelerate: true or bucket_as_host: true, ExAws.S3.presigned_url/5 and ExAws.S3.presigned_post/4 build the URL from the bucket name without checking it. A bucket such as attacker.example/x? turns the URL into https://attacker.example/x?.s3.amazonaws.com..., and the signature is computed for that host. Clients given the URL upload their files to, or download content from, the attacker's host, and every such URL discloses the access key id. With bucket_as_host: true any valid hostname works as the bucket name. This issue affects ex_aws_s3: from 2.0.0 before 2.6.0.
    CWE
    • CWE-610 - Externally Controlled Reference to a Resource in Another Sphere
    Impacted products
    Vendor Product Version
    ex-aws ex_aws_s3 Affected: 2.0.0 , < 2.6.0 (semver)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ex-aws ex_aws_s3 Affected: 4ce4d72219c0cb8de9356278203d8ea780311b75 , < ea26e8b43785f3ff1f14d6b22d8069fc06a58e55 (git)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 14:13
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex_aws_s3",
              "packageURL": "pkg:hex/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:presigned_url/5"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:presigned_post/4"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:url_to_sign/5"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "2.6.0",
                  "status": "affected",
                  "version": "2.0.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex-aws/ex_aws_s3",
              "packageURL": "pkg:github/ex-aws/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:presigned_url/5"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:presigned_post/4"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:url_to_sign/5"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "ea26e8b43785f3ff1f14d6b22d8069fc06a58e55",
                  "status": "affected",
                  "version": "4ce4d72219c0cb8de9356278203d8ea780311b75",
                  "versionType": "git"
                }
              ]
            }
          ],
          "configurations": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eReachable only when presigned URLs or POST forms are generated with \u003ccode\u003evirtual_host: true\u003c/code\u003e, \u003ccode\u003es3_accelerate: true\u003c/code\u003e or \u003ccode\u003ebucket_as_host: true\u003c/code\u003e and the application passes a bucket name an attacker can influence, for example per-tenant or user-supplied buckets. Path-style presigning, the default, places the bucket in the path and is not affected.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Reachable only when presigned URLs or POST forms are generated with `virtual_host: true`, `s3_accelerate: true` or `bucket_as_host: true` and the application passes a bucket name an attacker can influence, for example per-tenant or user-supplied buckets. Path-style presigning, the default, places the bucket in the path and is not affected."
                }
              ],
              "value": "Reachable only when presigned URLs or POST forms are generated with virtual_host: true, s3_accelerate: true or bucket_as_host: true and the application passes a bucket name an attacker can influence, for example per-tenant or user-supplied buckets. Path-style presigning, the default, places the bucket in the path and is not affected."
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.6.0",
                      "versionStartIncluding": "2.0.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "analyst",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Bernard Duggan"
            }
          ],
          "dateAssigned": "2026-11-24T14:02:01.000Z",
          "datePublic": "2026-11-24T14:13:15.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eExternally Controlled Reference to a Resource in Another Sphere vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an S3 bucket name to make presigned URLs and presigned POST forms point at a host of their choice.\u003c/p\u003e\n\u003cp\u003eWith \u003ccode\u003evirtual_host: true\u003c/code\u003e, \u003ccode\u003es3_accelerate: true\u003c/code\u003e or \u003ccode\u003ebucket_as_host: true\u003c/code\u003e, \u003ccode\u003eExAws.S3.presigned_url/5\u003c/code\u003e and \u003ccode\u003eExAws.S3.presigned_post/4\u003c/code\u003e build the URL from the bucket name without checking it. A bucket such as \u003ccode\u003eattacker.example/x?\u003c/code\u003e turns the URL into \u003ccode\u003ehttps://attacker.example/x?.s3.amazonaws.com...\u003c/code\u003e, and the signature is computed for that host. Clients given the URL upload their files to, or download content from, the attacker\u0027s host, and every such URL discloses the access key id. With \u003ccode\u003ebucket_as_host: true\u003c/code\u003e any valid hostname works as the bucket name.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Externally Controlled Reference to a Resource in Another Sphere vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an S3 bucket name to make presigned URLs and presigned POST forms point at a host of their choice.\n\nWith `virtual_host: true`, `s3_accelerate: true` or `bucket_as_host: true`, `ExAws.S3.presigned_url/5` and `ExAws.S3.presigned_post/4` build the URL from the bucket name without checking it. A bucket such as `attacker.example/x?` turns the URL into `https://attacker.example/x?.s3.amazonaws.com...`, and the signature is computed for that host. Clients given the URL upload their files to, or download content from, the attacker\u0027s host, and every such URL discloses the access key id. With `bucket_as_host: true` any valid hostname works as the bucket name.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
                }
              ],
              "value": "Externally Controlled Reference to a Resource in Another Sphere vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an S3 bucket name to make presigned URLs and presigned POST forms point at a host of their choice.\n\nWith virtual_host: true, s3_accelerate: true or bucket_as_host: true, ExAws.S3.presigned_url/5 and ExAws.S3.presigned_post/4 build the URL from the bucket name without checking it. A bucket such as attacker.example/x? turns the URL into https://attacker.example/x?.s3.amazonaws.com..., and the signature is computed for that host. Clients given the URL upload their files to, or download content from, the attacker\u0027s host, and every such URL discloses the access key id. With bucket_as_host: true any valid hostname works as the bucket name.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-154",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eAn attacker who can choose the bucket name makes the application hand out presigned URLs and POST forms that point at the attacker\u0027s host. Files other users upload through those forms go to the attacker, presigned downloads serve attacker-controlled content under the application\u0027s name, and every such URL discloses the access key id. Applications that presign for per-tenant or user-supplied buckets with virtual-host addressing are affected.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "An attacker who can choose the bucket name makes the application hand out presigned URLs and POST forms that point at the attacker\u0027s host. Files other users upload through those forms go to the attacker, presigned downloads serve attacker-controlled content under the application\u0027s name, and every such URL discloses the access key id. Applications that presign for per-tenant or user-supplied buckets with virtual-host addressing are affected."
                    }
                  ],
                  "value": "An attacker who can choose the bucket name makes the application hand out presigned URLs and POST forms that point at the attacker\u0027s host. Files other users upload through those forms go to the attacker, presigned downloads serve attacker-controlled content under the application\u0027s name, and every such URL discloses the access key id. Applications that presign for per-tenant or user-supplied buckets with virtual-host addressing are affected."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "LOCAL",
                "baseScore": 5.8,
                "baseSeverity": "MEDIUM",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "PASSIVE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "HIGH",
                "vulnIntegrityImpact": "LOW",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-610",
                  "description": "CWE-610 Externally Controlled Reference to a Resource in Another Sphere",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T14:13:16.822Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "Virtual-host bucket name controls the host of presigned URLs in ExAws.S3.presigned_url/5 and presigned_post/4",
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-p62r-cgcg-9fm7"
            },
            {
              "name": "EEF CNA record for CVE-2026-63582",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-63582.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-63582",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-63582"
            },
            {
              "name": "Introducing commit 4ce4d72 in ex-aws/ex_aws_s3",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/4ce4d72219c0cb8de9356278203d8ea780311b75"
            },
            {
              "name": "Fix commit ea26e8b in ex-aws/ex_aws_s3",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/ea26e8b43785f3ff1f14d6b22d8069fc06a58e55"
            }
          ],
          "solutions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eUpgrading rejects bucket names containing characters that can change the host of a presigned URL. With \u003ccode\u003ebucket_as_host: true\u003c/code\u003e, a syntactically valid hostname is still used as the host after upgrading: applications that presign with \u003ccode\u003ebucket_as_host: true\u003c/code\u003e and bucket names they do not fully control must also pass the \u003ccode\u003ebucket_as_host_allowlist\u003c/code\u003e option, or set it in the S3 config, with the list of trusted hostnames.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Upgrading rejects bucket names containing characters that can change the host of a presigned URL. With `bucket_as_host: true`, a syntactically valid hostname is still used as the host after upgrading: applications that presign with `bucket_as_host: true` and bucket names they do not fully control must also pass the `bucket_as_host_allowlist` option, or set it in the S3 config, with the list of trusted hostnames."
                }
              ],
              "value": "Upgrading rejects bucket names containing characters that can change the host of a presigned URL. With bucket_as_host: true, a syntactically valid hostname is still used as the host after upgrading: applications that presign with bucket_as_host: true and bucket names they do not fully control must also pass the bucket_as_host_allowlist option, or set it in the S3 config, with the list of trusted hostnames."
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "S3 bucket name controls the host of presigned URLs in ex_aws_s3",
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eAn application presigns uploads for per-tenant buckets with \u003ccode\u003evirtual_host: true\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eA tenant sets its bucket name to \u003ccode\u003eattacker.example/x?\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eExAws.S3.presigned_url(config, :put, bucket, \"key\", virtual_host: true)\u003c/code\u003e returns \u003ccode\u003ehttps://attacker.example/x?.s3.amazonaws.com%2Fkey=\u0026amp;X-Amz-Credential=...\u003c/code\u003e, and \u003ccode\u003epresigned_post/4\u003c/code\u003e returns the form action \u003ccode\u003ehttps://attacker.example/x?.s3.amazonaws.com\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eURI.parse/1\u003c/code\u003e on either yields the host \u003ccode\u003eattacker.example\u003c/code\u003e, so any client given the URL or form connects there.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. An application presigns uploads for per-tenant buckets with `virtual_host: true`.\n2. A tenant sets its bucket name to `attacker.example/x?`.\n3. `ExAws.S3.presigned_url(config, :put, bucket, \"key\", virtual_host: true)` returns `https://attacker.example/x?.s3.amazonaws.com%2Fkey=\u0026X-Amz-Credential=...`, and `presigned_post/4` returns the form action `https://attacker.example/x?.s3.amazonaws.com`.\n4. `URI.parse/1` on either yields the host `attacker.example`, so any client given the URL or form connects there."
                }
              ],
              "value": "* An application presigns uploads for per-tenant buckets with virtual_host: true.\n* A tenant sets its bucket name to attacker.example/x?.\n* ExAws.S3.presigned_url(config, :put, bucket, \"key\", virtual_host: true) returns https://attacker.example/x?.s3.amazonaws.com%2Fkey=\u0026X-Amz-Credential=..., and presigned_post/4 returns the form action https://attacker.example/x?.s3.amazonaws.com.\n* URI.parse/1 on either yields the host attacker.example, so any client given the URL or form connects there."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. URL construction.\u003c/strong\u003e The private \u003ccode\u003eurl_to_sign/5\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e builds the URL for \u003ccode\u003epresigned_url/5\u003c/code\u003e and \u003ccode\u003epresigned_post/4\u003c/code\u003e as \u003ccode\u003e\"#{scheme}#{bucket}.#{host}#{port}#{object}\"\u003c/code\u003e when \u003ccode\u003evirtual_host\u003c/code\u003e is set, or \u003ccode\u003e\"#{scheme}#{bucket}#{port}#{object}\"\u003c/code\u003e with \u003ccode\u003ebucket_as_host\u003c/code\u003e. \u003ccode\u003es3_accelerate: true\u003c/code\u003e sets \u003ccode\u003evirtual_host\u003c/code\u003e and takes the same branch. The bucket name is not checked.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Signing for the attacker\u0027s host.\u003c/strong\u003e The string goes to \u003ccode\u003eExAws.Auth.presigned_url/9\u003c/code\u003e, which signs \u003ccode\u003eURI.parse(url).authority\u003c/code\u003e. For the bucket \u003ccode\u003eattacker.example/x?\u003c/code\u003e the signed host is \u003ccode\u003eattacker.example\u003c/code\u003e, and the \u003ccode\u003e?\u003c/code\u003e pushes the object key into the query string.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Effect.\u003c/strong\u003e Presigned URLs are built locally and never pass through \u003ccode\u003eExAws.Operation.S3.add_bucket_to_path/2\u003c/code\u003e, so the fix in ex_aws for the request path does not cover them. A browser submitting the presigned POST sends its upload to the attacker, a client following a presigned GET receives attacker content, and \u003ccode\u003eX-Amz-Credential\u003c/code\u003e discloses the access key id. The secret key is not disclosed and the signature cannot be replayed against AWS.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. URL construction.** The private `url_to_sign/5` in `lib/ex_aws/s3.ex` builds the URL for `presigned_url/5` and `presigned_post/4` as `\"#{scheme}#{bucket}.#{host}#{port}#{object}\"` when `virtual_host` is set, or `\"#{scheme}#{bucket}#{port}#{object}\"` with `bucket_as_host`. `s3_accelerate: true` sets `virtual_host` and takes the same branch. The bucket name is not checked.\n\n**2. Signing for the attacker\u0027s host.** The string goes to `ExAws.Auth.presigned_url/9`, which signs `URI.parse(url).authority`. For the bucket `attacker.example/x?` the signed host is `attacker.example`, and the `?` pushes the object key into the query string.\n\n**3. Effect.** Presigned URLs are built locally and never pass through `ExAws.Operation.S3.add_bucket_to_path/2`, so the fix in ex_aws for the request path does not cover them. A browser submitting the presigned POST sends its upload to the attacker, a client following a presigned GET receives attacker content, and `X-Amz-Credential` discloses the access key id. The secret key is not disclosed and the signature cannot be replayed against AWS."
                }
              ],
              "value": "1. URL construction. The private url_to_sign/5 in lib/ex_aws/s3.ex builds the URL for presigned_url/5 and presigned_post/4 as \"#{scheme}#{bucket}.#{host}#{port}#{object}\" when virtual_host is set, or \"#{scheme}#{bucket}#{port}#{object}\" with bucket_as_host. s3_accelerate: true sets virtual_host and takes the same branch. The bucket name is not checked.\n\n2. Signing for the attacker\u0027s host. The string goes to ExAws.Auth.presigned_url/9, which signs URI.parse(url).authority. For the bucket attacker.example/x? the signed host is attacker.example, and the ? pushes the object key into the query string.\n\n3. Effect. Presigned URLs are built locally and never pass through ExAws.Operation.S3.add_bucket_to_path/2, so the fix in ex_aws for the request path does not cover them. A browser submitting the presigned POST sends its upload to the attacker, a client following a presigned GET receives attacker content, and X-Amz-Credential discloses the access key id. The secret key is not disclosed and the signature cannot be replayed against AWS."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-63582",
        "datePublished": "2026-11-24T14:13:16.822Z",
        "dateReserved": "2026-07-17T04:14:44.351Z",
        "dateUpdated": "2026-11-24T14:13:16.822Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-63585 (GCVE-0-2026-63585)

    Vulnerability from cvelistv5 – Published: 2026-11-24 14:13 – Updated: 2026-11-24 14:13
    VLAI
    Title
    ExAws.S3 ACL grantee injection via unescaped grant headers in format_grant_header/1
    Summary
    ExAws.S3 constructs S3 ACL grant headers (such as x-amz-grant-read and x-amz-grant-full-control) in format_grant_header/1 by interpolating grantee identifiers into a quoted, comma-separated list without escaping. Grantee email and id values are wrapped in double quotes and joined with a comma, but double-quote, comma, and CR/LF characters in the value are not neutralized. An application that passes an attacker-influenced grantee value (for example an email address taken from a "share this object" feature) into an ACL grant option (grant_read, grant_write, grant_read_acp, grant_write_acp, or grant_full_control) lets the attacker close the quoted token and inject an additional grantee, such as the attacker's own canonical id or the predefined AllUsers group URI, into the header. S3 then applies the injected grantee, granting an arbitrary principal the same permission (up to full control or public access) in an unintended ACL grantee-injection and privilege-escalation issue. This issue affects ex_aws_s3: from 2.0.0 before 2.6.0.
    CWE
    • CWE-116 - Improper Encoding or Escaping of Output
    Impacted products
    Vendor Product Version
    ex-aws ex_aws_s3 Affected: 2.0.0 , < 2.6.0 (semver)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ex-aws ex_aws_s3 Affected: 4ce4d72219c0cb8de9356278203d8ea780311b75 , < dd422637a46203d01cc47fd832836758f8090556 (git)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 14:13
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3.Utils\u0027",
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex_aws_s3",
              "packageURL": "pkg:hex/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3/utils.ex",
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3.Utils\u0027:format_grant_header/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_object_acl/3"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_acl/3"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "2.6.0",
                  "status": "affected",
                  "version": "2.0.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3.Utils\u0027",
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex-aws/ex_aws_s3",
              "packageURL": "pkg:github/ex-aws/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3/utils.ex",
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3.Utils\u0027:format_grant_header/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_object_acl/3"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_acl/3"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "dd422637a46203d01cc47fd832836758f8090556",
                  "status": "affected",
                  "version": "4ce4d72219c0cb8de9356278203d8ea780311b75",
                  "versionType": "git"
                }
              ]
            }
          ],
          "configurations": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eThe vulnerability requires the host application to pass untrusted input into an \u003ccode\u003eExAws.S3\u003c/code\u003e ACL grant option (\u003ccode\u003egrant_read\u003c/code\u003e, \u003ccode\u003egrant_write\u003c/code\u003e, \u003ccode\u003egrant_read_acp\u003c/code\u003e, \u003ccode\u003egrant_write_acp\u003c/code\u003e, or \u003ccode\u003egrant_full_control\u003c/code\u003e). Applications that only pass trusted, validated grantee identifiers into these options are not affected.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "The vulnerability requires the host application to pass untrusted input into an `ExAws.S3` ACL grant option (`grant_read`, `grant_write`, `grant_read_acp`, `grant_write_acp`, or `grant_full_control`). Applications that only pass trusted, validated grantee identifiers into these options are not affected."
                }
              ],
              "value": "The vulnerability requires the host application to pass untrusted input into an ExAws.S3 ACL grant option (grant_read, grant_write, grant_read_acp, grant_write_acp, or grant_full_control). Applications that only pass trusted, validated grantee identifiers into these options are not affected."
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.6.0",
                      "versionStartIncluding": "2.0.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "analyst",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Bernard Duggan"
            }
          ],
          "datePublic": "2026-11-24T14:13:11.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003ccode\u003eExAws.S3\u003c/code\u003e constructs S3 ACL grant headers (such as \u003ccode\u003ex-amz-grant-read\u003c/code\u003e and \u003ccode\u003ex-amz-grant-full-control\u003c/code\u003e) in \u003ccode\u003eformat_grant_header/1\u003c/code\u003e by interpolating grantee identifiers into a quoted, comma-separated list without escaping. Grantee email and id values are wrapped in double quotes and joined with a comma, but double-quote, comma, and CR/LF characters in the value are not neutralized. An application that passes an attacker-influenced grantee value (for example an email address taken from a \"share this object\" feature) into an ACL grant option (\u003ccode\u003egrant_read\u003c/code\u003e, \u003ccode\u003egrant_write\u003c/code\u003e, \u003ccode\u003egrant_read_acp\u003c/code\u003e, \u003ccode\u003egrant_write_acp\u003c/code\u003e, or \u003ccode\u003egrant_full_control\u003c/code\u003e) lets the attacker close the quoted token and inject an additional grantee, such as the attacker\u0027s own canonical id or the predefined AllUsers group URI, into the header. S3 then applies the injected grantee, granting an arbitrary principal the same permission (up to full control or public access) in an unintended ACL grantee-injection and privilege-escalation issue.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "`ExAws.S3` constructs S3 ACL grant headers (such as `x-amz-grant-read` and `x-amz-grant-full-control`) in `format_grant_header/1` by interpolating grantee identifiers into a quoted, comma-separated list without escaping. Grantee email and id values are wrapped in double quotes and joined with a comma, but double-quote, comma, and CR/LF characters in the value are not neutralized. An application that passes an attacker-influenced grantee value (for example an email address taken from a \"share this object\" feature) into an ACL grant option (`grant_read`, `grant_write`, `grant_read_acp`, `grant_write_acp`, or `grant_full_control`) lets the attacker close the quoted token and inject an additional grantee, such as the attacker\u0027s own canonical id or the predefined AllUsers group URI, into the header. S3 then applies the injected grantee, granting an arbitrary principal the same permission (up to full control or public access) in an unintended ACL grantee-injection and privilege-escalation issue.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
                }
              ],
              "value": "ExAws.S3 constructs S3 ACL grant headers (such as x-amz-grant-read and x-amz-grant-full-control) in format_grant_header/1 by interpolating grantee identifiers into a quoted, comma-separated list without escaping. Grantee email and id values are wrapped in double quotes and joined with a comma, but double-quote, comma, and CR/LF characters in the value are not neutralized. An application that passes an attacker-influenced grantee value (for example an email address taken from a \"share this object\" feature) into an ACL grant option (grant_read, grant_write, grant_read_acp, grant_write_acp, or grant_full_control) lets the attacker close the quoted token and inject an additional grantee, such as the attacker\u0027s own canonical id or the predefined AllUsers group URI, into the header. S3 then applies the injected grantee, granting an arbitrary principal the same permission (up to full control or public access) in an unintended ACL grantee-injection and privilege-escalation issue.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-137",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eThis is an ACL grantee-injection vulnerability leading to unintended permission grants and potential privilege escalation. It affects any application using \u003ccode\u003eExAws.S3\u003c/code\u003e ACL grant options (\u003ccode\u003egrant_read\u003c/code\u003e, \u003ccode\u003egrant_write\u003c/code\u003e, \u003ccode\u003egrant_read_acp\u003c/code\u003e, \u003ccode\u003egrant_write_acp\u003c/code\u003e, \u003ccode\u003egrant_full_control\u003c/code\u003e) where the grantee email or id is derived from untrusted input. An attacker who can influence a grantee value can grant their own AWS principal access to objects or buckets, up to full control, by injecting an extra grantee into the comma-separated grant header.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "This is an ACL grantee-injection vulnerability leading to unintended permission grants and potential privilege escalation. It affects any application using `ExAws.S3` ACL grant options (`grant_read`, `grant_write`, `grant_read_acp`, `grant_write_acp`, `grant_full_control`) where the grantee email or id is derived from untrusted input. An attacker who can influence a grantee value can grant their own AWS principal access to objects or buckets, up to full control, by injecting an extra grantee into the comma-separated grant header."
                    }
                  ],
                  "value": "This is an ACL grantee-injection vulnerability leading to unintended permission grants and potential privilege escalation. It affects any application using ExAws.S3 ACL grant options (grant_read, grant_write, grant_read_acp, grant_write_acp, grant_full_control) where the grantee email or id is derived from untrusted input. An attacker who can influence a grantee value can grant their own AWS principal access to objects or buckets, up to full control, by injecting an extra grantee into the comma-separated grant header."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "LOCAL",
                "baseScore": 4.8,
                "baseSeverity": "MEDIUM",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "HIGH",
                "subIntegrityImpact": "LOW",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:H/SI:L/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "LOW",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-116",
                  "description": "CWE-116 Improper Encoding or Escaping of Output",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T14:13:11.918Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-6fg2-v8g4-vfg2"
            },
            {
              "name": "EEF CNA record for CVE-2026-63585",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-63585.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-63585",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-63585"
            },
            {
              "name": "Introducing commit 4ce4d72 in ex-aws/ex_aws_s3",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/4ce4d72219c0cb8de9356278203d8ea780311b75"
            },
            {
              "name": "Fix commit dd42263 in ex-aws/ex_aws_s3",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/dd422637a46203d01cc47fd832836758f8090556"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "ExAws.S3 ACL grantee injection via unescaped grant headers in format_grant_header/1",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eValidate grantee identifiers before passing them to \u003ccode\u003eExAws.S3\u003c/code\u003e ACL grant options and reject any value containing a double quote, comma, or CR/LF character, or restrict grantee input to trusted canonical ids and email addresses that match the expected S3 grantee grammar.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Validate grantee identifiers before passing them to `ExAws.S3` ACL grant options and reject any value containing a double quote, comma, or CR/LF character, or restrict grantee input to trusted canonical ids and email addresses that match the expected S3 grantee grammar."
                }
              ],
              "value": "Validate grantee identifiers before passing them to ExAws.S3 ACL grant options and reject any value containing a double quote, comma, or CR/LF character, or restrict grantee input to trusted canonical ids and email addresses that match the expected S3 grantee grammar."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eAn application offers \"share this object\" and calls \u003ccode\u003eExAws.S3.put_object_acl(\"victim-bucket\", \"secret.txt\", grant_read: [email: email])\u003c/code\u003e with a user-supplied email.\u003c/li\u003e\n\u003cli\u003eThe attacker submits the email \u003ccode\u003evictim@example.com\", id=\"ATTACKER_CANONICAL_ID_deadbeef\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eformat_grant_header/1\u003c/code\u003e interpolates it into \u003ccode\u003eemailAddress=\"...\"\u003c/code\u003e, closing the quote after \u003ccode\u003evictim@example.com\u003c/code\u003e and opening a second tuple.\u003c/li\u003e\n\u003cli\u003eThe \u003ccode\u003ex-amz-grant-read\u003c/code\u003e header carries \u003ccode\u003eemailAddress=\"victim@example.com\", id=\"ATTACKER_CANONICAL_ID_deadbeef\"\u003c/code\u003e, granting the attacker\u0027s principal read access.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. An application offers \"share this object\" and calls `ExAws.S3.put_object_acl(\"victim-bucket\", \"secret.txt\", grant_read: [email: email])` with a user-supplied email.\n2. The attacker submits the email `victim@example.com\", id=\"ATTACKER_CANONICAL_ID_deadbeef`.\n3. `format_grant_header/1` interpolates it into `emailAddress=\"...\"`, closing the quote after `victim@example.com` and opening a second tuple.\n4. The `x-amz-grant-read` header carries `emailAddress=\"victim@example.com\", id=\"ATTACKER_CANONICAL_ID_deadbeef\"`, granting the attacker\u0027s principal read access."
                }
              ],
              "value": "* An application offers \"share this object\" and calls ExAws.S3.put_object_acl(\"victim-bucket\", \"secret.txt\", grant_read: [email: email]) with a user-supplied email.\n* The attacker submits the email victim@example.com\", id=\"ATTACKER_CANONICAL_ID_deadbeef.\n* format_grant_header/1 interpolates it into emailAddress=\"...\", closing the quote after victim@example.com and opening a second tuple.\n* The x-amz-grant-read header carries emailAddress=\"victim@example.com\", id=\"ATTACKER_CANONICAL_ID_deadbeef\", granting the attacker\u0027s principal read access."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Header grammar.\u003c/strong\u003e S3 grant headers such as \u003ccode\u003ex-amz-grant-read\u003c/code\u003e and \u003ccode\u003ex-amz-grant-full-control\u003c/code\u003e are a comma-separated list of quoted grantee tuples, \u003ccode\u003etype=\"id\"[, type=\"id\"]...\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Unescaped interpolation.\u003c/strong\u003e \u003ccode\u003eformat_grant_header/1\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3/utils.ex\u003c/code\u003e builds each tuple as \u003ccode\u003eemailAddress=\"#{email}\"\u003c/code\u003e or \u003ccode\u003e#{key}=\"#{value}\"\u003c/code\u003e and joins them with \u003ccode\u003e, \u003c/code\u003e. It does not check identifiers against the id or email grammar and does not reject or escape \u003ccode\u003e\"\u003c/code\u003e, \u003ccode\u003e,\u003c/code\u003e or CR/LF.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Grantee injection.\u003c/strong\u003e A grantee value such as \u003ccode\u003ex\", id=\"ATTACKER_CANONICAL_ID\u003c/code\u003e closes the quoted token and opens a second tuple, producing \u003ccode\u003eid=\"x\", id=\"ATTACKER_CANONICAL_ID\"\u003c/code\u003e. S3 parses two grantees and gives the injected principal the permission the header conveys, up to full control for \u003ccode\u003ex-amz-grant-full-control\u003c/code\u003e.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Header grammar.** S3 grant headers such as `x-amz-grant-read` and `x-amz-grant-full-control` are a comma-separated list of quoted grantee tuples, `type=\"id\"[, type=\"id\"]...`.\n\n**2. Unescaped interpolation.** `format_grant_header/1` in `lib/ex_aws/s3/utils.ex` builds each tuple as `emailAddress=\"#{email}\"` or `#{key}=\"#{value}\"` and joins them with `, `. It does not check identifiers against the id or email grammar and does not reject or escape `\"`, `,` or CR/LF.\n\n**3. Grantee injection.** A grantee value such as `x\", id=\"ATTACKER_CANONICAL_ID` closes the quoted token and opens a second tuple, producing `id=\"x\", id=\"ATTACKER_CANONICAL_ID\"`. S3 parses two grantees and gives the injected principal the permission the header conveys, up to full control for `x-amz-grant-full-control`."
                }
              ],
              "value": "1. Header grammar. S3 grant headers such as x-amz-grant-read and x-amz-grant-full-control are a comma-separated list of quoted grantee tuples, type=\"id\"[, type=\"id\"]....\n\n2. Unescaped interpolation. format_grant_header/1 in lib/ex_aws/s3/utils.ex builds each tuple as emailAddress=\"#{email}\" or #{key}=\"#{value}\" and joins them with , . It does not check identifiers against the id or email grammar and does not reject or escape \", , or CR/LF.\n\n3. Grantee injection. A grantee value such as x\", id=\"ATTACKER_CANONICAL_ID closes the quoted token and opens a second tuple, producing id=\"x\", id=\"ATTACKER_CANONICAL_ID\". S3 parses two grantees and gives the injected principal the permission the header conveys, up to full control for x-amz-grant-full-control."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-63585",
        "datePublished": "2026-11-24T14:13:11.918Z",
        "dateReserved": "2026-07-17T04:14:44.351Z",
        "dateUpdated": "2026-11-24T14:13:11.918Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-65621 (GCVE-0-2026-65621)

    Vulnerability from cvelistv5 – Published: 2026-11-24 14:13 – Updated: 2026-11-24 14:13
    VLAI
    Title
    Unvalidated object metadata in ex_aws_s3 enables HTTP header (CRLF) injection into S3 requests
    Summary
    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.
    CWE
    • CWE-113 - Improper Neutralization of CRLF Sequences in HTTP Headers
    Impacted products
    Vendor Product Version
    ex-aws ex_aws_s3 Affected: 2.0.0 , < 2.6.0 (semver)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ex-aws ex_aws_s3 Affected: 4ce4d72219c0cb8de9356278203d8ea780311b75 , < fa941106c2e3b10de8e710d1a03eeb673b88096c (git)
        cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 14:13
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3.Utils\u0027",
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex_aws_s3",
              "packageURL": "pkg:hex/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3/utils.ex",
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3.Utils\u0027:build_meta_headers/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_object/4"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "2.6.0",
                  "status": "affected",
                  "version": "2.0.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.S3.Utils\u0027",
                "\u0027Elixir.ExAws.S3\u0027"
              ],
              "packageName": "ex-aws/ex_aws_s3",
              "packageURL": "pkg:github/ex-aws/ex_aws_s3",
              "product": "ex_aws_s3",
              "programFiles": [
                "lib/ex_aws/s3/utils.ex",
                "lib/ex_aws/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.S3.Utils\u0027:build_meta_headers/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.S3\u0027:put_object/4"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_s3",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "fa941106c2e3b10de8e710d1a03eeb673b88096c",
                  "status": "affected",
                  "version": "4ce4d72219c0cb8de9356278203d8ea780311b75",
                  "versionType": "git"
                }
              ]
            }
          ],
          "configurations": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eThe vulnerability is only exploitable when an application both populates object \u003ccode\u003e:meta\u003c/code\u003e entries from untrusted input and uses an HTTP adapter that does not neutralize CR/LF in header values before writing them to the socket. The default adapter (hackney 4.x) strips CR/LF from header values, which masks the issue; the library performs no validation of its own and silently delegates safety to the configured HTTP client.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "The vulnerability is only exploitable when an application both populates object `:meta` entries from untrusted input and uses an HTTP adapter that does not neutralize CR/LF in header values before writing them to the socket. The default adapter (hackney 4.x) strips CR/LF from header values, which masks the issue; the library performs no validation of its own and silently delegates safety to the configured HTTP client."
                }
              ],
              "value": "The vulnerability is only exploitable when an application both populates object :meta entries from untrusted input and uses an HTTP adapter that does not neutralize CR/LF in header values before writing them to the socket. The default adapter (hackney 4.x) strips CR/LF from header values, which masks the issue; the library performs no validation of its own and silently delegates safety to the configured HTTP client."
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.6.0",
                      "versionStartIncluding": "2.0.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "analyst",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Bernard Duggan"
            }
          ],
          "datePublic": "2026-11-24T14:13:06.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eex_aws_s3 builds \u003ccode\u003ex-amz-meta-*\u003c/code\u003e request headers by interpolating user-supplied object metadata directly into header names and values without any validation. In \u003ccode\u003eExAws.S3.Utils.build_meta_headers/1\u003c/code\u003e (\u003ccode\u003elib/ex_aws/s3/utils.ex\u003c/code\u003e), each \u003ccode\u003e:meta\u003c/code\u003e entry is turned into a header as \u003ccode\u003e{\"x-amz-meta-#{k}\", v}\u003c/code\u003e with no check for carriage return (CR), line feed (LF), or other illegal header bytes.\u003c/p\u003e\n\u003cp\u003eObject 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 \u003ccode\u003eExAws.S3.put_object/4\u003c/code\u003e or any other operation accepting the \u003ccode\u003e:meta\u003c/code\u003e 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.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "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.\n\nObject 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.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
                }
              ],
              "value": "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.\n\nObject 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.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-105",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eThis is an HTTP header (CRLF) injection / request-splitting issue. Anyone using \u003ccode\u003eex_aws_s3\u003c/code\u003e to store objects whose metadata is derived from untrusted input (upload services, multi-tenant file stores, anything exposing object metadata over an HTTP boundary) is affected. The practical impact depends on the configured HTTP adapter: adapters that validate header values will reject or strip the injection, but the library offers no guarantee and performs no validation of its own, so the safety of the request is silently delegated to the HTTP client.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "This is an HTTP header (CRLF) injection / request-splitting issue. Anyone using `ex_aws_s3` to store objects whose metadata is derived from untrusted input (upload services, multi-tenant file stores, anything exposing object metadata over an HTTP boundary) is affected. The practical impact depends on the configured HTTP adapter: adapters that validate header values will reject or strip the injection, but the library offers no guarantee and performs no validation of its own, so the safety of the request is silently delegated to the HTTP client."
                    }
                  ],
                  "value": "This is an HTTP header (CRLF) injection / request-splitting issue. Anyone using ex_aws_s3 to store objects whose metadata is derived from untrusted input (upload services, multi-tenant file stores, anything exposing object metadata over an HTTP boundary) is affected. The practical impact depends on the configured HTTP adapter: adapters that validate header values will reject or strip the injection, but the library offers no guarantee and performs no validation of its own, so the safety of the request is silently delegated to the HTTP client."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "LOCAL",
                "baseScore": 2.1,
                "baseSeverity": "LOW",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "LOW",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "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",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "LOW",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-113",
                  "description": "CWE-113 Improper Neutralization of CRLF Sequences in HTTP Headers",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T14:13:06.909Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-5887-vcfr-5ff8"
            },
            {
              "name": "EEF CNA record for CVE-2026-65621",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-65621.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-65621",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-65621"
            },
            {
              "name": "Introducing commit 4ce4d72 in ex-aws/ex_aws_s3",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/4ce4d72219c0cb8de9356278203d8ea780311b75"
            },
            {
              "name": "Fix commit fa94110 in ex-aws/ex_aws_s3",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ex-aws/ex_aws_s3/commit/fa941106c2e3b10de8e710d1a03eeb673b88096c"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "Unvalidated object metadata in ex_aws_s3 enables HTTP header (CRLF) injection into S3 requests",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eReject 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).\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "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)."
                }
              ],
              "value": "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)."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eAn upload service forwards user-supplied metadata: \u003ccode\u003eExAws.S3.put_object(\"victim-bucket\", \"uploads/file.txt\", \"hello\", meta: [{\"comment\", value}])\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker sets the value to \u003ccode\u003elegit\\r\\nX-Injected-By-Attacker: pwned\\r\\nX-Smuggled: yes\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ebuild_meta_headers/1\u003c/code\u003e copies it verbatim into the \u003ccode\u003ex-amz-meta-comment\u003c/code\u003e header.\u003c/li\u003e\n\u003cli\u003eWith an adapter that does not reject CR/LF, the bytes on the wire contain \u003ccode\u003eX-Injected-By-Attacker: pwned\u003c/code\u003e and \u003ccode\u003eX-Smuggled: yes\u003c/code\u003e as separate header lines.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. An upload service forwards user-supplied metadata: `ExAws.S3.put_object(\"victim-bucket\", \"uploads/file.txt\", \"hello\", meta: [{\"comment\", value}])`.\n2. The attacker sets the value to `legit\\r\\nX-Injected-By-Attacker: pwned\\r\\nX-Smuggled: yes`.\n3. `build_meta_headers/1` copies it verbatim into the `x-amz-meta-comment` header.\n4. With an adapter that does not reject CR/LF, the bytes on the wire contain `X-Injected-By-Attacker: pwned` and `X-Smuggled: yes` as separate header lines."
                }
              ],
              "value": "* An upload service forwards user-supplied metadata: ExAws.S3.put_object(\"victim-bucket\", \"uploads/file.txt\", \"hello\", meta: [{\"comment\", value}]).\n* The attacker sets the value to legit\\r\\nX-Injected-By-Attacker: pwned\\r\\nX-Smuggled: yes.\n* build_meta_headers/1 copies it verbatim into the x-amz-meta-comment header.\n* With an adapter that does not reject CR/LF, the bytes on the wire contain X-Injected-By-Attacker: pwned and X-Smuggled: yes as separate header lines."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Unvalidated header construction.\u003c/strong\u003e \u003ccode\u003eExAws.S3.Utils.build_meta_headers/1\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3/utils.ex\u003c/code\u003e turns each \u003ccode\u003e:meta\u003c/code\u003e entry into \u003ccode\u003e{\"x-amz-meta-#{k}\", v}\u003c/code\u003e. Neither the key nor the value is checked for CR, LF or other illegal header bytes.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Untrusted metadata.\u003c/strong\u003e Object metadata is routinely populated from end-user input, such as a comment or label attached to an upload. A value like \u003ccode\u003e\"legit\\r\\nX-Injected-By-Attacker: pwned\"\u003c/code\u003e reaches the header list unchanged through \u003ccode\u003eExAws.S3.put_object/4\u003c/code\u003e or any operation taking \u003ccode\u003e:meta\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Header injection.\u003c/strong\u003e If the HTTP adapter does not validate header values before writing them to the socket, the embedded CRLF ends the \u003ccode\u003ex-amz-meta-*\u003c/code\u003e line and starts a new one, injecting arbitrary headers into, or splitting, the request sent to S3. The library delegates this safety to the adapter entirely.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Unvalidated header construction.** `ExAws.S3.Utils.build_meta_headers/1` in `lib/ex_aws/s3/utils.ex` turns each `:meta` entry into `{\"x-amz-meta-#{k}\", v}`. Neither the key nor the value is checked for CR, LF or other illegal header bytes.\n\n**2. Untrusted metadata.** Object metadata is routinely populated from end-user input, such as a comment or label attached to an upload. A value like `\"legit\\r\\nX-Injected-By-Attacker: pwned\"` reaches the header list unchanged through `ExAws.S3.put_object/4` or any operation taking `:meta`.\n\n**3. Header injection.** If the HTTP adapter does not validate header values before writing them to the socket, the embedded CRLF ends the `x-amz-meta-*` line and starts a new one, injecting arbitrary headers into, or splitting, the request sent to S3. The library delegates this safety to the adapter entirely."
                }
              ],
              "value": "1. Unvalidated header construction. ExAws.S3.Utils.build_meta_headers/1 in lib/ex_aws/s3/utils.ex turns each :meta entry into {\"x-amz-meta-#{k}\", v}. Neither the key nor the value is checked for CR, LF or other illegal header bytes.\n\n2. Untrusted metadata. Object metadata is routinely populated from end-user input, such as a comment or label attached to an upload. A value like \"legit\\r\\nX-Injected-By-Attacker: pwned\" reaches the header list unchanged through ExAws.S3.put_object/4 or any operation taking :meta.\n\n3. Header injection. If the HTTP adapter does not validate header values before writing them to the socket, the embedded CRLF ends the x-amz-meta-* line and starts a new one, injecting arbitrary headers into, or splitting, the request sent to S3. The library delegates this safety to the adapter entirely."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-65621",
        "datePublished": "2026-11-24T14:13:06.909Z",
        "dateReserved": "2026-07-22T13:55:59.401Z",
        "dateUpdated": "2026-11-24T14:13:06.909Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }