CVE-2026-133555
elixir-ecto db connection
Raw vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.
Summary
CVE-2026-133555 is a high-severity Use of Externally-Controlled Input to Select Classes or Code (CWE-470) vulnerability in elixir-ecto db connection (named in the CVE record; NVD lists no product yet). Its CVSS base score is 8.9 (High).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 33th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.
The strongest mitigations our analysis identified map to SI-10 (Information Input Validation) and AC-3 (Access Enforcement) — see the control section below for these in your framework.
OWASP Top 10 for Web (2025)
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2026-133978
Vulnerability Data
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…
more
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(s)
Related Threats
MITRE ATT&CK Enterprise Techniques
MITRE ATT&CK v20.0
CVEs Like This One
Affected Assets
Mitigating Controls
Mitigating Controls (NIST 800-53 r5)
Our mappings, made for this CVE.
Input validation directly stops externally supplied class or method names from selecting improper code via reflection.
Enforces authorization checks on the code or classes ultimately invoked, blocking unauthorized selections even if reflection is used.
Mitigating Controls (NIST CSF 2.0)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.
Secure SDLC practices directly avoid introducing externally controlled class selection via reflection.
Vulnerability identification processes can discover unsafe reflection during code review or scanning.
Preventing execution of unauthorized code can block exploitation of unsafe reflection at runtime.
Mitigating Controls (ISO/IEC 27001:2022 Annex A)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.
Security testing can detect and block unsafe reflection patterns before release.
A.5.21 governs supplier relationships and supply chain security requirements, not the technical discovery of unsafe reflection flaws in deployed code; it mandates no scanning, testing, or analysis process that would surface CWE-470 instances.
Training developers on secure coding practices (including reflection safety) reduces but does not eliminate unsafe reflection defects; the practice is fallible and the specific knowledge required is narrow, matching the A.6.3 -> CWE-598 and A.8.28 -> CWE-79 anchors.
Secure coding standards directly forbid unsafe reflection and require whitelisting or static alternatives.
A.8.30 carries its effect through the secure-development practices (8.25–8.29) its contract requires of the supplier, and unsafe reflection is a regular software CWE introduced at design/implementation that those practices would address; the clause has a declared ceiling of `partial` on this verb, and the effect is real but a minority one because it depends on the supplier faithfully implementing secure coding.
A.8.8's reach is DISCLOSURE — it surfaces only vulnerabilities published as advisories in third-party components. Unsafe reflection is a first-party code defect that requires source or runtime analysis to find, and A.8.8 sees only the minority of instances that surface as CVEs in third-party libraries (e.g., CVE-2018-1000613, CVE-2004-2331), not the bulk in first-party code.