cve.bz

CVE-2026-133555 Code execution via the :log option of forged DBConnection.Stream structs in db_connection

8.9 highFix available

High (8.9) in elixir-ecto db connection. Fixed in db_connection 2.10.3.

On this page
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

CVSS 4.0

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
CWE
CWE-470 Use of Externally-Controlled Input to Select Classes or Code (Reflection Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
Assigned by
EEF (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • db_connection (Hex): fixed in 2.10.3

Ask an AI about this CVE

Show the promptExplain CVE-2026-133555 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-133555?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-133555?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-133555 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
elixir-ecto db_connectionfrom 1.1.0 before 2.10.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
EEF-CVE-2026-133555Hexdb_connection>=1.1.0 <2.10.32.10.3
EEF-CVE-2026-133555v2.10.2, v2.10.1, v2.10.0, v2.9.0, v2.8.1 and 24 moreno fix published

Attack patterns (CAPEC)

  • CAPEC-138 Reflection Injection Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON