Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-66838: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in elixir-e

47
This week
HIGH 8.2REMOTEUPGRADE

CVE-2026-66838 is a high-severity flaw (CVSS 8.2) affecting postgrex. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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

Why this priority

  • High severity
  • Public exploit reference
  • Remotely exploitable, no login, no user action

A fixed release or distro patch exists.

Risk facts

CVSS score8.2 (High)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance0.4% (top 67%)
CISA exploited listNo
WeaknessCWE-89
Published2026-08-07
Last modified2026-10-23
Publisher (CNA): EEF · Vendor: elixir-ecto

Am I affected?

Timeline

elixir-ecto postgrex UPGRADE
Affected: >= 0.19.3 and < 0.22.4
Fixed in: 0.22.4
Safe to downgrade to: a release before 0.19.3
1. Check installed version
apt-cache policy postgrex || rpm -q postgrex || postgrex --version
2. UPGRADE to 0.22.4 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade postgrex
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade postgrex
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 0.19.3 (Debian / Ubuntu)
apt-cache madison postgrex sudo apt install postgrex=<VERSION_BEFORE_0.19.3> sudo apt-mark hold postgrex
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list postgrex sudo dnf downgrade postgrex-<VERSION_BEFORE_0.19.3> sudo dnf versionlock add postgrex
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.

Exact fixes by distribution

Fedora 46 · rubygem-eventmachine · FIXED · 1.2.7-37.fc46 · FEDORA-2026-7194c202a2 · source
sudo dnf upgrade --advisory=FEDORA-2026-7194c202a2

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

References

← Back to latest CVEs