CVE-2026-133555: Code execution via the :log option of forged DBConnection.Stream structs in db_connection
Published 2026-11-24 · Updated 2026-11-25 · Also known as EEF-CVE-2026-133555, GHSA-gmmq-fw75-wq46
Summary
The db_connection library contains an unsafe reflection vulnerability where forged structs can trigger arbitrary code execution during enumeration. Developers using Elixir applications that deserialize untrusted data into structs should upgrade their dependencies immediately.
Who is affected
This vulnerability affects Elixir applications that utilize db_connection versions 1.1.0 through 2.10.2. Exploitation requires an application to deserialize untrusted binary data into structs-typically using unsafe methods like :erlang.binary_to_term/2-and subsequently enumerate those structures.
Exploitability
The vulnerability requires local access and specific preconditions, as reflected by the CVSS 4.0 vector indicating Low attack complexity and Privileged access requirements. The low EPSS score of 0.005 suggests a limited probability of exploitation in the wild, and it is not currently listed as a CISA Known Exploited Vulnerability.
Remediation
- Upgrade the db_connection dependency to version 2.10.3 or later.
- Audit application code for the use of :erlang.binary_to_term/2 or similar functions that deserialize untrusted input into data structures.
How to check your project
- Check the project's mix.lock file for the version of db_connection.
- Search the codebase for usages of :erlang.binary_to_term/2 that process external user input without proper validation.
Automated analysis of the published advisory data, generated 2026-11-26. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Hex | db_connection |
>= 1.1.0, < 2.10.3 | 2.10.3 | mix deps.update db_connection |
CVSS 4.0 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
| Attack vector | Local |
|---|---|
| Attack complexity | Low |
| Attack requirements | Present |
| Privileges required | None |
| User interaction | None |
| Confidentiality (vulnerable system) | High |
| Integrity (vulnerable system) | High |
| Availability (vulnerable system) | High |
| Confidentiality (subsequent systems) | High |
| Integrity (subsequent systems) | High |
| Availability (subsequent systems) | High |
Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.
FAQ
Is db_connection itself the direct cause of this vulnerability?
No, the vulnerability is triggered by downstream components that unsafely deserialize untrusted input into db_connection structs, which then execute logic during enumeration.
Does using the :safe option in binary_to_term prevent this attack?
No, the :safe option in :erlang.binary_to_term does not reject structs, meaning it does not mitigate this specific vulnerability.
What is the primary risk associated with this flaw?
An attacker capable of crafting a malicious struct can achieve remote code execution by triggering the evaluation of an exported function within the application's VM.
Original advisory description
References
- ADVISORY https://github.com/elixir-ecto/db_connection/security/advisories/GHSA-gmmq-fw75-wq46
- WEB https://cna.erlef.org/cves/CVE-2026-133555.html
- WEB https://cna.erlef.org/cves/CVE-2026-124283.html
- WEB https://cna.erlef.org/cves/CVE-2026-129514.html
- WEB https://cna.erlef.org/cves/CVE-2026-130411.html
- WEB https://github.com/elixir-ecto/db_connection/commit/7b21e044e4a2f9fa0cc4b001bc6cda0ecc2ae4d2
- FIX https://github.com/elixir-ecto/db_connection/commit/9a4230a60a33ca9eed76c18c494c3a59acddb04b
- PACKAGE https://hex.pm/packages/db_connection
Source records: EEF-CVE-2026-133555 (OSV.dev) · EPSS by FIRST, 2026-11-26.