Skip to content
Connect AISign inSign up free
CVE-2026-133555Not scored

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

elixir-ecto · db_connection

Fixed in 2.10.3 · Affected: elixir-ecto db_connection before 2.10.3 · Exploitation: not established

Verdict

RoutineA fix exists and nothing on record suggests attackers are using it.

  • NoAttacks seen
  • NoPublic exploit code
  • n/aExploit odds: not scored yet
  • YesFix available: Fixed in 2.10.3
How we decide

Patch now: attacks are on record (CISA KEV, the EU exploited list, CISA marking exploitation active, or a report of exploitation), or exploit code is public for a flaw reachable over the network with no login that has exploit odds of 10% or more, or is rated critical with odds of at least 1%. Patch this cycle: any other public exploit code, scanning observed, or exploit odds of 10% or more. Routine: a fix exists and none of those. No verdict yet: no fix on record and nothing else known. The verdict says how soon to act, not how severe the flaw is, and it changes when these facts change.

What it isNVD

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.

Are you affected?

The answer appears here.

Or hand it to your AI agent. The prompt carries the facts on this page and only commands that read package and kernel state; it tells the agent to change nothing.

No EPSS score yet. The score appears once FIRST publishes it.

Not scored yet. NVD has not published a CVSS score.

Check your systemsRead-only commands per release

Assess your exposure

Commands that only read package and kernel state, for each release we checked. They change nothing on the host.

The same commands and fixed versions, with instructions to report back without changing anything.

Affected versions, per the CVE record

  • The CNA record lists db_connection versions from 1.1.0 up to, but not including, 2.10.3 as affectedchecked 24 Nov 16:02 UTC

Not checked: Red Hat, Ubuntu, Debian, SUSE, Alpine. Treat distributions and products not listed as unknown, not unaffected.

ExploitationNot established

ExploitationNot established

Not in CISA KEV as of catalogue 2026.11.23 (23 Nov)

  1. Not establishedNothing in the sources we check

Not seen so far: in CISA KEV · exploited (reported) · scanning observed · proof of concept public.

Weakness and public checksUse of Externally-Controlled Input to Select Classes or Code

Weakness and public checks

Public check
No public nuclei template
Weakness
Use of Externally-Controlled Input to Select Classes or Code · Command and Code Injection
Related CVEsdb_connection

Other CVEs in db_connection

Every published CVE for elixir-ecto db_connection, by how far exploitation has gone. This one is among them.

As a list
Other CVEs in db_connection: each mark is one CVE.Drag to move · Ctrl + scroll to zoom · a mark opens that CVE
What changed1 change, latest 24 Nov

What changed

  1. CyberSIXT published “Hex.pm hacked through CVE-2026-129514 deserialization flaw” CyberSIXT
Coverage1 article · 1 outlet

Coverage1 article · 1 outlet

First in our coverage: cybersixt, 24 Nov.

  1. Hex.pm hacked through CVE-2026-129514 deserialization flaw
    cybersixt · first in our coverage · mentions it in passing

New articles also arrive in the RSS feed.

References3 links

References