Skip to main content
No exploitation reportedFix available

CVE-2026-41889

No exploitation reported by the sources we read.

  • Published2026-05-08
  • Fixed in5.9.2
  • WeaknessCWE-89

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2026-05-0817:16CVE publishedNVD

Observed activity

isMalicious corpus · updated 2026-10-23 21:37 UTC
Indicators tagged with this CVE, per day0 indicators over 7 days
Block these indicators
  • Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2026-41889?format=txt
  • CSV export: https://api.ismalicious.com/edl/cve/CVE-2026-41889?format=csv
  • TAXII collection of exploited CVEs
  • The EDL and CSV take an API key on the Pro plan.

Versions per branch

NVD · OSV
Jackc pgx
BranchAffectedFixed in
5.9< 5.9.25.9.2
jackc/pgx
BranchAffectedFixed in
3.6≤ 3.6.2no fix published
jackc/pgx
BranchAffectedFixed in
4.18≤ 4.18.3no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Vendor advisories

  • CVE-2026-41889 Red Hat Product Security23 products fixed · 150 known affected

    github.com/jackc/pgx: golang: pgx: SQL injection via specific SQL query conditions

    rhai/assisted-installer-agent-rhel9 as a component of Assisted Installer for Red Hat OpenShift Container Platform 2 · rhai/assisted-installer-controller-rhel9 as a component of Assisted Installer for Red Hat OpenShift Container Platform 2 · rhai/assisted-installer-rhel9 as a component of Assisted Installer for Red Hat OpenShift Container Platform 2 · +147 more

  • RHSA-2026:48913 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: RHACS 4.10.6 security and bug fix update

  • RHSA-2026:48872 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: RHACS 4.9.10 security and bug fix update

  • RHSA-2026:25138 Red Hat Product Security3 products fixed

    Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update

  • RHSA-2026:16133 Red Hat Product Security3 products fixed

    Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update

  • RHSA-2026:15856 Red Hat Product Security9 products fixed

    Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update

Full record on NVD

Fix

  1. Update Jackc pgx to 5.9.2
  2. Vendor fix Red Hat Product Security RHSA-2026:48913 · 4 productsIf you are using an earlier version of RHACS, you are advised to upgrade to the version of RHACS mentioned in the synopsis and release notes in order to take advantage of the enhancements, bug fixes, and/or security patches in the release.
  3. Vendor fix Red Hat Product Security RHSA-2026:25138 · 3 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://images.redhat.com/
  4. Workaround from the vendor Red Hat Product Security RHSA-2026:48913 · 47 productsAvoid using the non-default simple protocol in applications that use the pgx PostgreSQL driver for Go. The vulnerability is contingent on this non-default protocol and specific SQL query constructs. Configuring applications to use the default extended protocol prevents this issue. If the simple pro…
  5. No fix available, says the vendor Red Hat Product Security CVE-2026-41889 · 150 productsFix deferred

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof-of-concept repositories
none listed
PoC-in-GitHub

Sources

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 4.0 vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
2026-05-08
Last Modified
2026-06-17
NVD status
Analyzed
MSRC Title
pgx: SQL Injection via placeholder confusion with dollar quoted string literals

Frequently asked questions

What is 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, 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.

Is CVE-2026-41889 actively exploited?

Active exploitation of CVE-2026-41889 has not been confirmed. Its EPSS score was 0.5% on 2026-10-22, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2026-41889?

CVE-2026-41889 has a CVSS v3 base score of 9.8 (CRITICAL severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running jackc/pgx? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month