CVE-2026-58225
Last modified
CVE-2026-58225 is a low-severity vulnerability rated 2.1/10 on the CVSS scale. 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.
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.
Metrics
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| elixir-ecto | postgrex | >= 0.16.0, < 0.22.3 |
| elixir-ecto | postgrex | >= 266b530faf9bde094e31e0e4ab851f933fadc0f5, < 795c6062f62c4394272ff4b89170688857b4f841 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-58225?
How severe is CVE-2026-58225?
How do I fix CVE-2026-58225?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-58213NATS Server is a high-performance server for NATS.io, the cl…7.1
- CVE-2026-58214NATS Server is a high-performance server for NATS.io, the cl…4.3
- CVE-2026-58216An out-of-bounds read flaw was found in Samba's Kerberos Key…5.3
- CVE-2026-58218A flaw was found in Samba's internal DNS server where unauth…5.3
- CVE-2026-5822Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2026-58222A security flaw combining LDAP filter injection and improper…8.8
- CVE-2026-58226Inefficient Algorithmic Complexity vulnerability in elixir-m…8.7
- CVE-2026-58227The Erlang/OTP ssl application does not detect cycles when r…8.7
- CVE-2026-58228Cross-site scripting vulnerability in phoenixframework phoen…5.1
- CVE-2026-58229Allocation of resources without limits vulnerability in elix…8.2
- CVE-2026-5823A weakness has been identified in itsourcecode Construction …6.3
- CVE-2026-58233SAP Change and Transport System Attach Tool (ctsattach) allo…7.6
Are you affected by CVE-2026-58225?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
