
CVE catalog
CVE-2026-41889
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, th
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.36% · Oct 25, 2026
A flaw was found in pgx, a PostgreSQL driver and toolkit for Go. This SQL injection vulnerability can occur when using the non-default simple protocol, a dollar-quoted string literal in the SQL query, and when that string literal contains text interpreted as a placeholder with an attacker-controlled value. An attacker could potentially manipulate SQL queries, leading to a low impact on data integrity. github.com/jackc/pgx: golang: pgx: SQL injection via specific SQL query conditions Red Hat has rated this flaw as Moderate because the SQL injection vulnerability in pgx can only be triggered when the non-default simple protocol is used in conjunction with specific query constructions involving PostgreSQL dollar-quoted string literals. Successful exploitation requires multiple uncommon preconditions, including attacker control of placeholder values within affected queries. As the issue is limited to particular application usage patterns and does not affect default pgx configurations, the overall risk is reduced despite the potential for query manipulation in vulnerable applications.The strongest argument for a Moderate rating is that this is not a generic SQL injection affecting all pgx users; it is a narrowly scoped flaw requiring a non-default mode and specific application behavior The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Cpe | pgx | Not reported | 5.9.2 | fixed |
| Debian | golang-github-jackc-pgx-v5 | 14 | 5.8.0-1 | vulnerable |
| Debian | golang-github-jackc-pgx-v5 | 14 | 5.9.2-1 | vulnerable |
| Opensuse | alloy | tumbleweed | 1.16.1-2.1 | fixed |
| Opensuse | steampipe | tumbleweed | 2.4.4-1.1 | fixed |
| Cpe | pgx | Not reported | 5.9.2 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Cpe | pgx | cpe | Not reported | 5.9.2 | Not reported | Not reported | Not reported |
| Opensuse | alloy | rpm | tumbleweed | 1.16.1-2.1 | Not reported | OPENSUSE-SU-2026:10992-1 | Not reported |
| Opensuse | steampipe | rpm | tumbleweed | 2.4.4-1.1 | Not reported | OPENSUSE-SU-2026:10976-1 | Not reported |
| Cpe | pgx | cpe | Not reported | 5.9.2 | Not reported | NVD-CVE-2026-41889 | Not reported |
OpenFactory catalog packages
[openSUSE Tumbleweed]
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_10976-1.json]
- [https://github.com/jackc/pgx/commit/60644f84918a8af66d14a4b0d865d4edafd955da]
- [https://github.com/jackc/pgx/releases/tag/v5.9.2]
- [https://github.com/jackc/pgx/security/advisories/GHSA-j88v-2chj-qfwx]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-41889]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-41889]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:10976-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:10992-1]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41889.json]
[FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]