Description
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.
CVSS scores
| Version | Scored by | Score | Vector |
|---|---|---|---|
| CVSS 4.0 | EEF (CNA) | 8.9 High | 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 |
| CVSS 4.0 | CNA | 8.9 High | 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:X |
Timeline
- CVE published
- Last updated by the CVE authority
- First tracked by SecureCyberVM
Exploit likelihood (EPSS)
Am I affected?
- Do you run elixir-ecto db_connection? Check the exact versions in the affected products list.
- Is the affected service reachable from the internet or by untrusted users? Exposed systems come first.
- Watch this page: if exploitation is reported it moves to the top of your list.
- Apply the vendor's update as soon as it is available; restrict access to the service until then.
Affected products
- elixir-ecto db_connection: from 1.1.0 before 2.10.3 · All elixir-ecto vulnerabilities
- elixir-ecto db_connection: from 7b21e044e4a2f9fa0cc4b001bc6cda0ecc2ae4d2 before 9a4230a60a33ca9eed76c18c494c3a59acddb04b · All elixir-ecto vulnerabilities
Fix
- Code execution via the :log option of forged DBConnection.Stream structs in db_connection (vendor-advisory, related)
- Fix commit 9a4230a in elixir-ecto/db_connection (patch)
Weakness
CWE-470 Use of Externally-Controlled Input to Select Classes or Code
Coverage of CVE-2026-133555
Frequently asked questions
Is CVE-2026-133555 being actively exploited?
There are no confirmed reports of exploitation in the wild: CVE-2026-133555 is not in CISA's Known Exploited Vulnerabilities catalog. EPSS estimates a 0.47% probability of exploitation in the next 30 days. This page is re-checked daily.
How severe is CVE-2026-133555?
CVE-2026-133555 has a highest CVSS score of 8.9 (High) under CVSS 4.0. Severity alone is not priority: check exploitation status and whether you run an affected version.
How do I fix CVE-2026-133555?
Apply the vendor's security update as soon as it is available and follow the official advisory linked in the references on this page. Restrict exposure of the affected service until it is patched.
Which products are affected by CVE-2026-133555?
elixir-ecto db_connection. See the affected products list on this page for exact versions.
References
- Code execution via the :log option of forged DBConnection.Stream structs in db_connection
- EEF CNA record for CVE-2026-133555
- OSV record EEF-CVE-2026-133555
- CVE-2026-124283: Code execution and SQL injection via struct-wrapped values in a forged keyset pagination cursor in Ash
- CVE-2026-129514: Unauthenticated remote code execution through struct values in Erlang term request bodies
- CVE-2026-130411: Code execution through deserialization of pagination cursors in flop
- Introducing commit 7b21e04 in elixir-ecto/db_connection
- Fix commit 9a4230a in elixir-ecto/db_connection
Change log
- First recorded on SecureCyberVM from CVE.org, NVD, CISA KEV and FIRST EPSS.
Sources: CVE.org, NIST NVD, CISA KEV and ADP, FIRST EPSS. This record is refreshed automatically every day; changes are listed in the change log above.
