# CVE-2026-133555: Code execution via the :log option of forged DBConnection.Stream structs in db\_connection

- **Severity:** HIGH 8.9
- **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:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.47% (percentile 33, 2026-11-28)
- **CWE:** CWE-470
- **Published:** 2026-11-24T14:12:48.271Z
- **Modified:** 2026-11-24T19:12:16.707Z

## Who should check

- Anyone running elixir-ecto db\_connection \>= 1.1.0, \< 2.10.3
- Anyone running elixir-ecto db\_connection \>= 7b21e044e4a2f9fa0cc4b001bc6cda0ecc2ae4d2, \< 9a4230a60a33ca9eed76c18c494c3a59acddb04b

## 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

- elixir-ecto db\_connection: \>= 1.1.0, \< 2.10.3 (cvelist)
- elixir-ecto db\_connection: \>= 7b21e044e4a2f9fa0cc4b001bc6cda0ecc2ae4d2, \< 9a4230a60a33ca9eed76c18c494c3a59acddb04b (cvelist)

## Mitigation

- Upgrade db\_connection to 2.10.3 or later.
- Upgrade db\_connection to 9a4230a60a33ca9eed76c18c494c3a59acddb04b or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/elixir-ecto/db_connection/security/advisories/GHSA-gmmq-fw75-wq46>
- patch: <https://github.com/elixir-ecto/db_connection/commit/7b21e044e4a2f9fa0cc4b001bc6cda0ecc2ae4d2>
- patch: <https://github.com/elixir-ecto/db_connection/commit/9a4230a60a33ca9eed76c18c494c3a59acddb04b>
- other: <https://cna.erlef.org/cves/CVE-2026-133555.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-133555>
- other: <https://cna.erlef.org/cves/CVE-2026-124283.html>
- other: <https://cna.erlef.org/cves/CVE-2026-129514.html>
- other: <https://cna.erlef.org/cves/CVE-2026-130411.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-133555>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-133555> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-133555>
