CVEBrief

Home / elixir-ecto / postgrex / CVE-2026-58225

CVE-2026-58225: is it exploited, and which versions of elixir-ecto postgrex are affected and fixed?

CVE-2026-58225 is a SQL injection vulnerability in elixir-ecto postgrex. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:09 UTC). Affected: postgrex from 0.16.0 before 0.22.3 (CVE record by EEF). Fixed in 0.22.3 (CVE record by EEF). Severity: Low (2.1, CVSS 4.0, from EEF).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:09 UTC, CVE record November 24, 2026, 05:11 UTC and NVD November 24, 2026, 06:08 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 16:09 UTC
Affected
postgrex from 0.16.0 before 0.22.3
CVE record by EEF
Fixed in
0.22.3
CVE record by EEF
Severity
Low 2.1
CVSS 4.0 from EEF
Exploit odds (EPSS)
0.24% in 30 days
higher than 16% of CVEs; FIRST, December 3, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

What is CVE-2026-58225?

SQL injection via unescaped dollar-quote in Postgrex.Notifications reconnect replay causes notification denial of service

SQL Injection vulnerability in elixir-ecto postgrex allows an attacker who can influence a LISTEN channel name to inject SQL into the reconnect replay query, causing a denial of service of the notification connection. Postgrex.Notifications sanitizes channel names with quote_channel/1, which doubles double quotes so the name is safe inside a double-quoted identifier. This protects the single-statement LISTEN and UNLISTEN paths. On every (re)connect, however, handle_connect/1 replays all registered channels at once by concatenating their LISTEN statements and wrapping them in a dollar-quoted anonymous code block (DO $$BEGIN ... END$$). quote_channel/1 does not escape the $$ dollar-quote delimiter that opens and closes this block. The listen/3 guards only reject null bytes and names longer than 63 bytes, so a channel name containing $$ passes validation unchanged. Once such a name is embedded, its $$ prematurely terminates the outer dollar-quoted string and PostgreSQL parses the remainder as additional top-level statements. Because handle_connect/1 runs on every (re)connect, the malformed replay query is rejected each time and the notification connection never re-establishes its subscriptions, silently dropping notifications for every channel sharing that connection. An application is affected when it passes untrusted input (for example a tenant or user identifier) as a channel name to Postgrex.Notifications.listen/3. The double-quote doubling prevents forming a fully valid injected statement, so arbitrary SQL execution is not possible, but the corrupted query reliably breaks the shared notification connection for all tenants, resulting in denial of service. This issue affects postgrex: from 0.16.0 before 0.22.3.

From the CVE record by EEF, last updated November 24, 2026, 05:04 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
elixir-ectopostgrexfrom 0.16.0 before 0.22.30.22.3
elixir-ectopostgrex elixir-ecto/postgrexnot stated

As the CVE record by EEF states it, last updated November 24, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

How severe is CVE-2026-58225?

ScoreVersionVectorSource
Low 2.1CVSS 4.0CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NEEF

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2026-58225 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, July 10, 2026)
EPSS
0.24% probability of exploitation activity in the next 30 days, percentile 16.4 (FIRST EPSS, scores of December 3, 2026)

What kind of flaw is it?

Is there a workaround? (from the CVE record)

Validate channel names before passing untrusted input to Postgrex.Notifications.listen/3. Reject any name that contains the dollar-quote delimiter ($$), or restrict channel names to a safe character set such as alphanumeric characters and underscores.

Where are the vendor advisories and references?

Who found and reported it?

As published in the CVE record; contact details are removed.

When was it published, and where is the official record?

Reserved
June 29, 2026
Published
July 10, 2026, 10:51 UTC
CVE record updated
November 24, 2026, 05:04 UTC by EEF
NVD
Deferred, last modified November 24, 2026, 05:18 UTC
Last checked
CVE list November 24, 2026, 05:11 UTC; NVD November 24, 2026, 06:08 UTC; KEV December 3, 2026, 16:09 UTC; EPSS December 3, 2026
Official record
cve.org · NVD

What other CVEs affect postgrex?

Every CVE in postgrex

Questions about CVE-2026-58225

Is CVE-2026-58225 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:09 UTC. FIRST's EPSS gives it a 0.24% chance of exploitation activity in the next 30 days (scores of December 3, 2026).

Which versions of elixir-ecto postgrex are affected by CVE-2026-58225?

postgrex from 0.16.0 before 0.22.3, per the CVE record by EEF. The tables above give every range the sources list.

Which version fixes CVE-2026-58225?

0.22.3, per the CVE record by EEF. Check the vendor's advisory before you rely on it.

How severe is CVE-2026-58225?

Low (2.1, CVSS 4.0, from EEF). The severity table above shows each score with its source.

Where is the official record of CVE-2026-58225?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.