CVE-2026-66838
Last modified
CVE-2026-66838 is a high-severity vulnerability rated 8.2/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. EPSS estimates a 0.16% chance of exploitation in the next 30 days.
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
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Elixir-Ecto | Postgrex | >= 0.19.3, < 0.22.4 |
References
- https://cna.erlef.org/cves/CVE-2026-66838.htmlPatch, Third Party Advisory
- https://github.com/elixir-ecto/ecto/security/advisories/GHSA-3gww-3f36-2388Exploit, Patch, Vendor Advisory
- https://osv.dev/vulnerability/EEF-CVE-2026-66838Patch, Third Party Advisory
- https://github.com/elixir-ecto/ecto/security/advisories/GHSA-3gww-3f36-2388Exploit, Patch, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
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-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.5
- CVE-2026-66835Path Equivalence vulnerability in Erlang/OTP inets httpd all…8.2
- 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-66840XING CPTrans-ME-X contains an Exposure of Sensitive System I…8.7
- CVE-2026-66842BIG-IP has a vulnerability where an authenticated user of an…8.8
- CVE-2026-66843Inclusion of Functionality from Untrusted Control Sphere vul…6.1
- CVE-2026-6685Rejected reason: This CVE ID has been rejected or withdrawn …
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
