CVE-2026-41889pgx: SQL Injection via placeholder confusion with dollar quoted string literals
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | golang-github-jackc-pgx-v5 | Fix pending | UBUNTU-CVE-2026-41889 | |
| Ubuntu 26.04 | golang-github-jackc-pgx-v5 | Under investigation | UBUNTU-CVE-2026-41889 | |
| Debian 14 | golang-github-jackc-pgx-v5 | Fix pending | DEBIAN-CVE-2026-41889 | |
| Red Hat Enterprise Linux 10 | go-fdo-server | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | go-fdo-server-manufacturer | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | go-fdo-server-owner | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | go-fdo-server-rendezvous | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | osbuild-composer | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | osbuild-composer-core | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | osbuild-composer-worker | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | osbuild-composer | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | osbuild-composer-core | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | osbuild-composer-dnf-json | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | osbuild-composer-worker | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | osbuild-composer | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | osbuild-composer-core | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | osbuild-composer-dnf-json | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | osbuild-composer-worker | Fix pending Fix deferred | ||
| Go library | github.com/jackc/pgx | Fix pending | GHSA-j88v-2chj-qfwx | |
| Go library | github.com/jackc/pgx/v4 | Fix pending | GHSA-j88v-2chj-qfwx | |
| Go library | github.com/jackc/pgx/v5 | Fixed | 5.9.2 | GO-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.
- jackc pgx: affected: < 5.9.2
References
- https://github.com/jackc/pgx/security/advisories/GHSA-j88v-2chj-qfwx
- https://github.com/jackc/pgx/commit/60644f84918a8af66d14a4b0d865d4edafd955da
- https://github.com/jackc/pgx/releases/tag/v5.9.2
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.