{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-133555",
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "state": "PUBLISHED",
        "assignerShortName": "EEF",
        "dateReserved": "2026-11-24T07:04:32.214Z",
        "datePublished": "2026-11-24T14:12:48.271Z",
        "dateUpdated": "2026-12-02T15:08:13.615Z"
    },
    "containers": {
        "cna": {
            "affected": [
                {
                    "collectionURL": "https://repo.hex.pm",
                    "cpes": [
                        "cpe:2.3:a:elixir-ecto:db_connection:*:*:*:*:*:*:*:*"
                    ],
                    "defaultStatus": "unaffected",
                    "modules": [
                        "'Elixir.DBConnection'",
                        "'Elixir.DBConnection.Stream'",
                        "'Elixir.DBConnection.PrepareStream'",
                        "'Elixir.Enumerable.DBConnection.Stream'",
                        "'Elixir.Enumerable.DBConnection.PrepareStream'"
                    ],
                    "packageName": "db_connection",
                    "packageURL": "pkg:hex/db_connection",
                    "product": "db_connection",
                    "programFiles": [
                        "lib/db_connection.ex"
                    ],
                    "programRoutines": [
                        {
                            "name": "'Elixir.Enumerable.DBConnection.Stream':reduce/3"
                        },
                        {
                            "name": "'Elixir.Enumerable.DBConnection.PrepareStream':reduce/3"
                        },
                        {
                            "name": "'Elixir.DBConnection':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": [
                        "'Elixir.DBConnection'",
                        "'Elixir.DBConnection.Stream'",
                        "'Elixir.DBConnection.PrepareStream'",
                        "'Elixir.Enumerable.DBConnection.Stream'",
                        "'Elixir.Enumerable.DBConnection.PrepareStream'"
                    ],
                    "packageName": "elixir-ecto/db_connection",
                    "packageURL": "pkg:github/elixir-ecto/db_connection",
                    "product": "db_connection",
                    "programFiles": [
                        "lib/db_connection.ex"
                    ],
                    "programRoutines": [
                        {
                            "name": "'Elixir.Enumerable.DBConnection.Stream':reduce/3"
                        },
                        {
                            "name": "'Elixir.Enumerable.DBConnection.PrepareStream':reduce/3"
                        },
                        {
                            "name": "'Elixir.DBConnection':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": "<p>The application, or one of its dependencies, builds Elixir structs from untrusted input (for example with <code>:erlang.binary_to_term/2</code> or <code>Plug.Crypto.non_executable_binary_to_term/2</code>) and then enumerates or inspects the result.</p>"
                        },
                        {
                            "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ännchen / EEF"
                },
                {
                    "lang": "en",
                    "type": "remediation developer",
                    "value": "José 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": "<p>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 <code>DBConnection.Stream</code> or <code>DBConnection.PrepareStream</code> struct. The <code>Enumerable</code> implementations of both structs in <code>lib/db_connection.ex</code> run with the options stored in the struct. The <code>:log</code> option accepts a <code>{module, function, arguments}</code> tuple, which <code>DBConnection</code> applies. When code enumerates a forged struct, <code>DBConnection</code> calls the chosen function.</p>\n<p>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 <code>:erlang.binary_to_term/2</code> and does not restrict which terms the result contains. The <code>:safe</code> 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.</p>\n<p>This issue affects db_connection: from 1.1.0 before 2.10.3.</p>"
                        },
                        {
                            "base64": false,
                            "type": "text/markdown",
                            "value": "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.\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 ('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.\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": "<p>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's VM.</p>"
                                },
                                {
                                    "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's 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's 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": {
                "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
                "shortName": "EEF",
                "dateUpdated": "2026-11-24T14:59:40.084Z"
            },
            "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"
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2026-12-02T14:55:46.542489Z",
                                "id": "CVE-2026-133555",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-12-02T15:08:13.615Z"
                }
            }
        ]
    }
}