cve.bz

CVE-2026-41889 jackc pgx: SQL Injection

2.3 lowEPSS 0.4%Fix available

Low (2.3) in jackc pgx. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/jackc/pgx/v5 5.9.2.

On this page
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.

Severity

CVSS 4.0

2.3 low
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

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 30th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-05-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-89 Improper Neutralization of Special Elements used in an SQL Command (SQL Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-41889 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-41889?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-41889?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-41889 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
jackc:pgxbefore 5.9.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-j88v-2chj-qfwxGogithub.com/jackc/pgx/v5<5.9.25.9.2
GHSA-j88v-2chj-qfwxGogithub.com/jackc/pgx/v4<=4.18.3no fix published
GHSA-j88v-2chj-qfwxGogithub.com/jackc/pgx<=3.6.2no fix published
GO-2026-5004Gogithub.com/jackc/pgxall versionsno fix published
GO-2026-5004Gogithub.com/jackc/pgx/v4all versionsno fix published
GO-2026-5004Gogithub.com/jackc/pgx/v5<5.9.25.9.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian14golang-github-jackc-pgx-v5no fix listedDEBIAN-CVE-2026-41889
Ubuntu26.04:LTS, 26.10golang-github-jackc-pgx-v5no fix listedUBUNTU-CVE-2026-41889
Red Hathummingbird:1caddy0:2.11.3-0.1.hum1RHSA-2026:16133
Red Hathummingbird:1cosign0:3.1.1-0.1.hum1RHSA-2026:25138
Red Hathummingbird:1go-fdo-server, go-fdo-server-owner, go-fdo-server-rendezvous and 1 more0:1.0.1-0.2.hum1RHSA-2026:15856
SUSELinux Enterprise Module for Basesystem 15 SP7alloy1.17.1-150700.15.23.1SUSE-SU-2026:2824-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0alloy1.17.0-160000.1.1SUSE-SU-2026:22575-1
openSUSELeap 16.0alloy1.17.0-160000.1.1openSUSE-SU-2026:21251-1
openSUSELeap 16.0govulncheck-vulndb0.0.20260723T184607-160000.1.1openSUSE-SU-2026:21483-1
openSUSETumbleweedalloy1.16.1-2.1openSUSE-SU-2026:10992-1
openSUSETumbleweedsteampipe2.4.4-1.1openSUSE-SU-2026:10976-1
Azure Linux3keda2.14.1-15AZL-86322
Azure Linux3telegraf1.31.0-22AZL-86325

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

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

Red Hat's mitigation

Avoid 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 protocol is necessary, ensure that dollar-quoted string literals do not contain attacker-controlled placeholder values.

ProductPackageStateAdvisory
Red Hat Advanced Cluster Security 4.9advanced-cluster-security/rhacs-main-rhel8:1785413210Fixed 2026-07-30RHSA-2026:48872
Red Hat Advanced Cluster Security for Kubernetes for IBM Power, little endian 4.10advanced-cluster-security/rhacs-main-rhel8:1785420959Fixed 2026-07-30RHSA-2026:48913
Red Hat Hardened Imagesgo-fdo-server-main-1.0.1-0.2.hum1Fixed 2026-05-09RHSA-2026:15856
Red Hat Hardened Imagescaddy-main-2.11.3-0.1.hum1Fixed 2026-05-12RHSA-2026:16133
Red Hat Hardened Imagescosign-main-3.1.1-0.1.hum1Fixed 2026-06-10RHSA-2026:25138
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-agent-rhel9Fix deferred
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-controller-rhel9Fix deferred
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-rhel9Fix deferred
Cryostat 4cryostat/cryostat-storage-rhel9Fix deferred
Custom Metric Autoscaler operator for Red Hat Openshiftcustom-metrics-autoscaler/custom-metrics-autoscaler-adapter-rhel9Fix deferred
Custom Metric Autoscaler operator for Red Hat Openshiftcustom-metrics-autoscaler/custom-metrics-autoscaler-admission-webhooks-rhel9Fix deferred
Custom Metric Autoscaler operator for Red Hat Openshiftcustom-metrics-autoscaler/custom-metrics-autoscaler-rhel9Fix deferred
Custom Metric Autoscaler operator for Red Hat Openshiftcustom-metrics-autoscaler/custom-metrics-autoscaler-rhel9-operatorFix deferred
Multicluster Engine for Kubernetesmulticluster-engine/assisted-installer-agent-rhel8Fix deferred
Multicluster Engine for Kubernetesmulticluster-engine/assisted-installer-agent-rhel9Fix deferred
Multicluster Engine for Kubernetesmulticluster-engine/assisted-installer-controller-rhel8Fix deferred
Multicluster Engine for Kubernetesmulticluster-engine/assisted-installer-controller-rhel9Fix deferred
Multicluster Engine for Kubernetesmulticluster-engine/assisted-installer-rhel8Fix deferred
Multicluster Engine for Kubernetesmulticluster-engine/assisted-installer-rhel9Fix deferred
Multicluster Engine for Kubernetesmulticluster-engine/assisted-service-8-rhel8Fix deferred
120 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-41889.

Attack patterns (CAPEC)

  • CAPEC-7 Blind SQL Injection Likelihood: High · Severity: High
  • CAPEC-66 SQL Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High
  • CAPEC-109 Object Relational Mapping Injection Likelihood: Low · Severity: High
  • CAPEC-110 SQL Injection through SOAP Parameter Tampering Likelihood: High · Severity: Very High
  • CAPEC-470 Expanding Control over the Operating System from the Database Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON