AUGUST 16, 2026
Live Feed
Back to database
Case File

CVE-2026-66838

MEDIUM · CVSS 5.9 EPSS 0.16% Public Exploit

Source: NVD + CISA KEV + EPSS · Published 2026-08-07 · Last synced 2026-08-16

CyberRota Analysis

AI-Generated

The vulnerability allows SQL Injection through the `:comment` option in the Postgrex.stream/4 function, enabling attackers to manipulate SQL commands executed under the connection's role. This flaw arises from improper handling of comment delimiters, which can lead to unauthorized command execution. Organizations using affected versions of Postgrex (0.19.3 to 0.22.4) should prioritize patching to mitigate potential exploitation risks.

Public Exploit Signal

A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.

Note: these links are listed for security research and verification purposes only.

CVE
CVE-2026-66838
Severity
MEDIUM
CVSS
5.9
EPSS
0.16%

Original NVD 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.