Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-58225

published low CVSS 4.0 · 2.1

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

Published
10 Jul 2026, 10:51:46 UTC
Updated
24 Nov 2026, 05:04:20 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
elixir-ecto — postgrex0.16.0 to < 0.22.3 · Other versions: unaffected Affected Not stated EEF
elixir-ecto — elixir-ecto/postgrexpostgrex · 266b530faf9bde094e31e0e4ab851f933fadc0f5 and later (affected · git); changes: unaffected at 795c6062f62c4394272ff4b89170688857b4f841, unaffected at 797d395906c0a1d28bea55e3a2b03ce75c827f55 · Other versions: unaffected Version-specific Not stated EEF

Description

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.

en · EEF · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
4.0
Base score
2.1 / 10
Severity
low
Provider
EEF · cna
Vector string
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Scenarios
en: GENERAL

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
elixir-ecto postgrex 0.16.0 to < 0.22.3 (affected · semver)Default: unaffected EEF · cna
elixir-ecto postgrex 266b530faf9bde094e31e0e4ab851f933fadc0f5 and later (affected · git); changes: unaffected at 795c6062f62c4394272ff4b89170688857b4f841, unaffected at 797d395906c0a1d28bea55e3a2b03ce75c827f55Default: unaffected EEF · cna

Weaknesses

1
  • CWE-89 CWE-89 Improper Neutralization of Special Elements used in an SQL Command (EEF · cna)

References

6

Provider assertions

2

EEF · cna

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

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
d2656a2c6ebde8fbfc6182dd3ce9fc54b361a6f97d139f1de9956d14de50a4da
Ingested
24 Nov 2026, 05:10:38 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected