Code execution via the :log option of forged DBConnection.Stream structs in db_connection
CVE-2026-133555Published 24 Nov 2026, 14:12 UTC
Real-world risk
1.9/ 10Low
Routine
If the vulnerable configuration applies to you: 4.3
PreliminaryFrom the CVSS vector only · confidence low
CVSS
8.9
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from EEF)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| db_connectionNiche | >= 1.1.0, < 2.10.3 | 2.10.3 |
What to do
Update to a fixed version: 2.10.3.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.5% chance of exploitation in 30 days (percentile 43), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.225
- Threat T1: Nothing known0.850
- 10 × impact 1 × prerequisites 0.225 × threat 0.851.912
- Rounded to one decimal between 0.1 and 101.9
Exploitation and evidence timeline
- 24 Nov 2026 Published
- 2 Dec 2026 Risk 1.9 (cvss fallback)
Weakness
CWE-470
References
- https://github.com/elixir-ecto/db_connection/security/advisories/GHSA-gmmq-fw75-wq46related, vendor-advisory
- https://cna.erlef.org/cves/CVE-2026-133555.htmlrelated
- https://osv.dev/vulnerability/EEF-CVE-2026-133555related
- https://cna.erlef.org/cves/CVE-2026-124283.htmlrelated
- https://cna.erlef.org/cves/CVE-2026-129514.htmlrelated
- https://cna.erlef.org/cves/CVE-2026-130411.htmlrelated
- https://github.com/elixir-ecto/db_connection/commit/7b21e044e4a2f9fa0cc4b001bc6cda0ecc2ae4d2related
- https://github.com/elixir-ecto/db_connection/commit/9a4230a60a33ca9eed76c18c494c3a59acddb04bpatch
- CVE-2026-133555 on CVE.org