CVEfocus › CVE database › CVE-2026-41889

CVE-2026-41889pgx: SQL Injection via placeholder confusion with dollar quoted string literals

CVSS 2.3 LowEPSS 0.5% (higher than 35% of CVEs)Published 2026-05-08Updated 2026-05-08Assigner: GitHub_M

pgx is a PostgreSQL driver and toolkit for Go. Prior to version 5.9.2, SQL injection can occur when the non-default simple protocol is used, a dollar quoted string literal is used in the SQL query, that string literal contains text that would be would be interpreted as a placeholder outside of a string literal, and the value of that placeholder is controllable by the attacker. This issue has been patched in version 5.9.2.

CWE-89

What to do

Fixed builds are available from Go: see the table below for the fixed version per release.

Debian, Go, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
19Fix pending
1Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10golang-github-jackc-pgx-v5Fix pendingUBUNTU-CVE-2026-41889
Ubuntu 26.04golang-github-jackc-pgx-v5Under investigationUBUNTU-CVE-2026-41889
Debian 14golang-github-jackc-pgx-v5Fix pendingDEBIAN-CVE-2026-41889
Red Hat Enterprise Linux 10go-fdo-serverFix pending
Fix deferred
Red Hat Enterprise Linux 10go-fdo-server-manufacturerFix pending
Fix deferred
Red Hat Enterprise Linux 10go-fdo-server-ownerFix pending
Fix deferred
Red Hat Enterprise Linux 10go-fdo-server-rendezvousFix pending
Fix deferred
Red Hat Enterprise Linux 10osbuild-composerFix pending
Fix deferred
Red Hat Enterprise Linux 10osbuild-composer-coreFix pending
Fix deferred
Red Hat Enterprise Linux 10osbuild-composer-workerFix pending
Fix deferred
Red Hat Enterprise Linux 9osbuild-composerFix pending
Fix deferred
Red Hat Enterprise Linux 9osbuild-composer-coreFix pending
Fix deferred
Red Hat Enterprise Linux 9osbuild-composer-dnf-jsonFix pending
Fix deferred
Red Hat Enterprise Linux 9osbuild-composer-workerFix pending
Fix deferred
Red Hat Enterprise Linux 8osbuild-composerFix pending
Fix deferred
Red Hat Enterprise Linux 8osbuild-composer-coreFix pending
Fix deferred
Red Hat Enterprise Linux 8osbuild-composer-dnf-jsonFix pending
Fix deferred
Red Hat Enterprise Linux 8osbuild-composer-workerFix pending
Fix deferred
Go librarygithub.com/jackc/pgxFix pendingGHSA-j88v-2chj-qfwx
Go librarygithub.com/jackc/pgx/v4Fix pendingGHSA-j88v-2chj-qfwx
Go librarygithub.com/jackc/pgx/v5Fixed5.9.2GO-2026-5004

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.