Search
Find a vulnerability
Search criteria
2 vulnerabilities found for db_connection by elixir-ecto
CVE-2026-133555 (GCVE-0-2026-133555)
Vulnerability from nvd – Published: 2026-11-24 14:12 – Updated: 2026-11-24 14:59
VLAI
EPSS
VEX
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.
Severity
CWE
- CWE-470 - Use of Externally-Controlled Input to Select Classes or Code
Assigner
References
8 references
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| elixir-ecto | db_connection |
Affected:
1.1.0 , < 2.10.3
(semver)
cpe:2.3:a:elixir-ecto:db_connection:*:*:*:*:*:*:*:* |
|
| elixir-ecto | db_connection |
Affected:
7b21e044e4a2f9fa0cc4b001bc6cda0ecc2ae4d2 , < 9a4230a60a33ca9eed76c18c494c3a59acddb04b
(git)
cpe:2.3:a:elixir-ecto:db_connection:*:*:*:*:*:*:*:* |
Date Public
2026-11-24 14:12
{
"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-133555 (GCVE-0-2026-133555)
Vulnerability from cvelistv5 – Published: 2026-11-24 14:12 – Updated: 2026-11-24 14:59
VLAI
EPSS
VEX
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.
Severity
CWE
- CWE-470 - Use of Externally-Controlled Input to Select Classes or Code
Assigner
References
8 references
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| elixir-ecto | db_connection |
Affected:
1.1.0 , < 2.10.3
(semver)
cpe:2.3:a:elixir-ecto:db_connection:*:*:*:*:*:*:*:* |
|
| elixir-ecto | db_connection |
Affected:
7b21e044e4a2f9fa0cc4b001bc6cda0ecc2ae4d2 , < 9a4230a60a33ca9eed76c18c494c3a59acddb04b
(git)
cpe:2.3:a:elixir-ecto:db_connection:*:*:*:*:*:*:*:* |
Date Public
2026-11-24 14:12
{
"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"
}