CVE-2026-66838
Last modified
CVE-2026-66838 is a medium-severity vulnerability rated 5.9/10 on the CVSS scale. Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in elixir-ecto postgrex allows SQL Injection via the :comment option of Postgrex.stream/4. An attacker who can influence that value can close the comment delimiter with */ and extend the streamed statement with their own clauses, which execute under the connection's role.
Description
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in elixir-ecto postgrex allows SQL Injection via the :comment option of Postgrex.stream/4. An attacker who can influence that value can close the comment delimiter with */ and extend the streamed statement with their own clauses, which execute under the connection's role. Ecto exposes the same option through Ecto.Repo.stream/2. Postgrex appends the comment by concatenating it into the statement text sent in the Parse message, without escaping or rejecting */. The option is validated by comment_not_present!/1 at every other execution point; stream/4 never calls it. Because Parse accepts a single command, the injection is confined to the streamed statement and further statements cannot be chained. This issue affects postgrex: from 0.19.3 before 0.22.4.
Metrics
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/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.19.3, < 0.22.4 |
| elixir-ecto | postgrex | >= 4971a2722fa72f8e1b54a2c403cad4c43916e36d, < * |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-66838?
How severe is CVE-2026-66838?
How do I fix CVE-2026-66838?
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-6682In FatFS R0.16 and earlier contains a FAT32 integer overflow…7.6
- CVE-2026-66824A stored cross-site scripting vulnerability existed in the c…9.2
- CVE-2026-66825Pivotick contains a cross-site scripting vulnerability in th…6.9
- CVE-2026-66829URL Redirection to Untrusted Site ('Open Redirect') vulnerab…6.1
- CVE-2026-6683FatFs R0.16 and earlier contains a divide-by-zero in exFAT s…4.6
- CVE-2026-66832When the Mira Android app opens in-app WebView content (e.g.…6.9
- CVE-2026-66839NetKids iMark, provided by Integrated Systems Technologies, …8.4
- CVE-2026-6684FatFs prior to R0.16 that use GPT scanning with 'FF_LBA64 = …4.6
- CVE-2026-66843Inclusion of Functionality from Untrusted Control Sphere vul…6.1
- CVE-2026-6685Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2026-6686FatFs R0.16 and earlier contains an uninitialized cluster ex…4.6
- CVE-2026-6687FatFs R0.16 and earlier contains a stack overflow bug in f_g…7.6
Are you affected by CVE-2026-66838?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
