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

[CVE catalog]

Severity
High · CVSS 7.5CVSS: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.

DistributionPackageReleaseVersionStatus
CpepgxNot reported5.9.2fixed
Debiangolang-github-jackc-pgx-v5145.8.0-1vulnerable
Debiangolang-github-jackc-pgx-v5145.9.2-1vulnerable
Opensusealloytumbleweed1.16.1-2.1fixed
Opensusesteampipetumbleweed2.4.4-1.1fixed
CpepgxNot reported5.9.2fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
CpepgxcpeNot reported5.9.2Not reportedNot reportedNot reported
Opensusealloyrpmtumbleweed1.16.1-2.1Not reportedOPENSUSE-SU-2026:10992-1Not reported
Opensusesteampiperpmtumbleweed2.4.4-1.1Not reportedOPENSUSE-SU-2026:10976-1Not reported
CpepgxcpeNot reported5.9.2Not reportedNVD-CVE-2026-41889Not reported

OpenFactory catalog packages

[openSUSE Tumbleweed]

  • [alloy]Fixed

    Source package: [alloy]

    Details (1)
    • 1.18.0-1.1 · x86_64 · tumbleweed

      Fixed · Fixed: 1.16.1-2.1

      nvd · alloy · opensuse · tumbleweed

  • [steampipe]Fixed

    Source package: [steampipe]

    Details (1)
    • 2.4.5-1.1 · x86_64 · tumbleweed

      Fixed · Fixed: 2.4.4-1.1

      nvd · steampipe · opensuse · tumbleweed

Observed:

References