CVE-2026-133555
Code execution via the :log option of forged DBConnection.Stream structs in db_connection
Mitigation
- Upgrade db_connection to 2.10.3 or later.
- Upgrade db_connection to 9a4230a60a33ca9eed76c18c494c3a59acddb04b or later.
Who should check
- Anyone running elixir-ecto db_connection >= 1.1.0, < 2.10.3
- Anyone running elixir-ecto db_connection >= 7b21e044e4a2f9fa0cc4b001bc6cda0ecc2ae4d2, < 9a4230a60a33ca9eed76c18c494c3a59acddb04b
Vulnerability facts
- Affected
- elixir-ecto db_connection >= 1.1.0, < 2.10.3; elixir-ecto db_connection >= 7b21e044e4a2f9fa0cc4b001bc6cda0ecc2ae4d2, < 9a4230a60a33ca9eed76c18c494c3a59acddb04b
- Fixed in
- elixir-ecto db_connection 2.10.3, elixir-ecto db_connection 9a4230a60a33ca9eed76c18c494c3a59acddb04b
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 8.9 (v4.0, CNA)CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:HOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- Confidentiality impact on other systems: High
- Integrity impact on other systems: High
- Availability impact on other systems: High
- EPSS
- 0.47% chance of exploitation in 30 days (percentile 33, 2026-11-28)
- CWE
- CWE-470
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| elixir-ecto db_connection | >= 1.1.0, < 2.10.3 | — | cvelist |
| elixir-ecto db_connection | >= 7b21e044e4a2f9fa0cc4b001bc6cda0ecc2ae4d2, < 9a4230a60a33ca9eed76c18c494c3a59acddb04b | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-133555. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-133555.md Affected: elixir-ecto db_connection >= 1.1.0, < 2.10.3; elixir-ecto db_connection >= 7b21e044e4a2f9fa0cc4b001bc6cda0ecc2ae4d2, < 9a4230a60a33ca9eed76c18c494c3a59acddb04b Fixed in: elixir-ecto db_connection 2.10.3, elixir-ecto db_connection 9a4230a60a33ca9eed76c18c494c3a59acddb04b Steps: 1. Search this machine and project for elixir-ecto db_connection: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2026-133555 being exploited?
There is no confirmed exploitation: CVE-2026-133555 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.47% chance of exploitation in the next 30 days (as of 2026-11-28).
How serious is CVE-2026-133555?
High: CVSS 8.9 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2026-133555?
elixir-ecto db_connection >= 1.1.0, < 2.10.3; elixir-ecto db_connection >= 7b21e044e4a2f9fa0cc4b001bc6cda0ecc2ae4d2, < 9a4230a60a33ca9eed76c18c494c3a59acddb04b.
Is there a fix for CVE-2026-133555?
Yes. Fixed in elixir-ecto db_connection 2.10.3, elixir-ecto db_connection 9a4230a60a33ca9eed76c18c494c3a59acddb04b. Upgrade db_connection to 2.10.3 or later. Upgrade db_connection to 9a4230a60a33ca9eed76c18c494c3a59acddb04b or later.
How do I check if I'm affected by CVE-2026-133555?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.