CVE-2026-41889
Public on
Last Modified:
Description
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.
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
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.
Additional information
- This content is not included.Bugzilla 2468307: github.com/jackc/pgx: golang: pgx: SQL injection via specific SQL query conditions
- Content from cwe.mitre.org is not included.CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected Packages and Issued Red Hat Security Errata
Unless explicitly stated as not affected, all previous versions of packages in any minor update stream of a product listed here should be assumed vulnerable, although may not have been subject to full analysis.
| Products / Services | Components | State | Errata |
|---|---|---|---|
| Assisted Installer for Red Hat OpenShift Container Platform 2 | rhai/assisted-installer-agent-rhel9 | Fix deferred | |
| Assisted Installer for Red Hat OpenShift Container Platform 2 | rhai/assisted-installer-controller-rhel9 | Fix deferred | |
| Assisted Installer for Red Hat OpenShift Container Platform 2 | rhai/assisted-installer-rhel9 | Fix deferred | |
| Cryostat 4 | cryostat/cryostat-storage-rhel9 | Fix deferred | |
| Custom Metric Autoscaler operator for Red Hat Openshift | custom-metrics-autoscaler/custom-metrics-autoscaler-adapter-rhel9 | Fix deferred | |
| Custom Metric Autoscaler operator for Red Hat Openshift | custom-metrics-autoscaler/custom-metrics-autoscaler-admission-webhooks-rhel9 | Fix deferred | |
| Custom Metric Autoscaler operator for Red Hat Openshift | custom-metrics-autoscaler/custom-metrics-autoscaler-rhel9 | Fix deferred | |
| Custom Metric Autoscaler operator for Red Hat Openshift | custom-metrics-autoscaler/custom-metrics-autoscaler-rhel9-operator | Fix deferred | |
| Multicluster Engine for Kubernetes | multicluster-engine/assisted-installer-agent-rhel8 | Fix deferred | |
| Multicluster Engine for Kubernetes | multicluster-engine/assisted-installer-agent-rhel9 | Fix deferred | |
| Multicluster Engine for Kubernetes | multicluster-engine/assisted-installer-controller-rhel8 | Fix deferred | |
| Multicluster Engine for Kubernetes | multicluster-engine/assisted-installer-controller-rhel9 | Fix deferred | |
| Multicluster Engine for Kubernetes | multicluster-engine/assisted-installer-rhel8 | Fix deferred | |
| Multicluster Engine for Kubernetes | multicluster-engine/assisted-installer-rhel9 | Fix deferred | |
| Multicluster Engine for Kubernetes | multicluster-engine/assisted-service-8-rhel8 | Fix deferred | |
| Multicluster Engine for Kubernetes | multicluster-engine/assisted-service-9-rhel9 | Fix deferred | |
| Multicluster Engine for Kubernetes | multicluster-engine/azure-service-operator-rhel9 | Fix deferred | |
| Multicluster Engine for Kubernetes | multicluster-engine/cluster-api-provider-aws-rhel9 | Fix deferred | |
| Multicluster Global Hub | multicluster-globalhub/multicluster-globalhub-agent-rhel8 | Fix deferred | |
| Multicluster Global Hub | multicluster-globalhub/multicluster-globalhub-agent-rhel9 | Fix deferred | |
| Multicluster Global Hub | multicluster-globalhub/multicluster-globalhub-grafana-rhel9 | Fix deferred | |
| Multicluster Global Hub | multicluster-globalhub/multicluster-globalhub-kessel-inventory-api-rhel9 | Fix deferred | |
| Multicluster Global Hub | multicluster-globalhub/multicluster-globalhub-manager-rhel8 | Fix deferred | |
| Multicluster Global Hub | multicluster-globalhub/multicluster-globalhub-manager-rhel9 | Fix deferred | |
| Multicluster Global Hub | multicluster-globalhub/multicluster-globalhub-operator-bundle | Fix deferred | |
| Multicluster Global Hub | multicluster-globalhub/multicluster-globalhub-rhel8-operator | Fix deferred | |
| Multicluster Global Hub | multicluster-globalhub/multicluster-globalhub-rhel9-operator | Fix deferred | |
| OpenShift Pipelines | openshift-pipelines/pipelines-hub-api-rhel8 | Fix deferred | |
| OpenShift Pipelines | openshift-pipelines/pipelines-hub-api-rhel9 | Fix deferred | |
| OpenShift Pipelines | openshift-pipelines/pipelines-hub-db-migration-rhel8 | Fix deferred | |
| OpenShift Pipelines | openshift-pipelines/pipelines-hub-db-migration-rhel9 | Fix deferred | |
| OpenShift Pipelines | openshift-pipelines/pipelines-results-api-rhel8 | Fix deferred | |
| OpenShift Pipelines | openshift-pipelines/pipelines-results-api-rhel9 | Fix deferred | |
| OpenShift Pipelines | openshift-pipelines/pipelines-results-retention-policy-agent-rhel9 | Fix deferred | |
| OpenShift Service Mesh 2 | openshift-service-mesh/istio-rhel8-operator | Fix deferred | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp2/3scale-operator-bundle | Fix deferred | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp2/3scale-rhel7-operator | Fix deferred | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp2/3scale-rhel9-operator | Fix deferred | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/acm-grafana-rhel9 | Fix deferred | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/acm-search-indexer-rhel9 | Fix deferred | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/acm-search-v2-api-rhel9 | Fix deferred | |
| Red Hat Advanced Cluster Security 4 | advanced-cluster-security/rhacs-main-rhel8 | Fix deferred | |
| Red Hat Advanced Cluster Security 4 | advanced-cluster-security/rhacs-rhel8-operator | Fix deferred | |
| Red Hat Advanced Cluster Security 4 | advanced-cluster-security/rhacs-roxctl-rhel8 | Fix deferred | |
| Red Hat Advanced Cluster Security 4 | advanced-cluster-security/rhacs-scanner-v4-rhel8 | Fix deferred | |
| Red Hat Ceph Storage 6 | rhceph/rhceph-6-dashboard-rhel9 | Fix deferred | |
| Red Hat Ceph Storage 8 | rhceph/grafana-rhel9 | Fix deferred | |
| Red Hat Ceph Storage 9 | rhceph/alloy-rhel10 | Fix deferred | |
| Red Hat Ceph Storage 9 | rhceph/grafana-rhel10 | Fix deferred | |
| Red Hat Edge Manager 1 | flightctl | Fix deferred | |
| Red Hat Edge Manager 1 | rhem/flightctl-alert-exporter-rhel10 | Fix deferred | |
| Red Hat Edge Manager 1 | rhem/flightctl-alert-exporter-rhel9 | Fix deferred | |
| Red Hat Edge Manager 1 | rhem/flightctl-alertmanager-proxy-rhel10 | Fix deferred | |
| Red Hat Edge Manager 1 | rhem/flightctl-alertmanager-proxy-rhel9 | Fix deferred | |
| Red Hat Edge Manager 1 | rhem/flightctl-api-rhel10 | Fix deferred | |
| Red Hat Edge Manager 1 | rhem/flightctl-api-rhel9 | Fix deferred | |
| Red Hat Edge Manager 1 | rhem/flightctl-cli-artifacts-rhel10 | Fix deferred | |
| Red Hat Edge Manager 1 | rhem/flightctl-cli-artifacts-rhel9 | Fix deferred | |
| Red Hat Edge Manager 1 | rhem/flightctl-db-setup-rhel10 | Fix deferred | |
| Red Hat Edge Manager 1 | rhem/flightctl-db-setup-rhel9 | Fix deferred | |
| Red Hat Edge Manager 1 | rhem/flightctl-imagebuilder-api-rhel10 | Fix deferred | |
| Red Hat Edge Manager 1 | rhem/flightctl-imagebuilder-api-rhel9 | Fix deferred | |
| Red Hat Edge Manager 1 | rhem/flightctl-imagebuilder-worker-rhel10 | Fix deferred | |
| Red Hat Edge Manager 1 | rhem/flightctl-imagebuilder-worker-rhel9 | Fix deferred | |
| Red Hat Edge Manager 1 | rhem/flightctl-pam-issuer-rhel10 | Fix deferred | |
| Red Hat Edge Manager 1 | rhem/flightctl-pam-issuer-rhel9 | Fix deferred | |
| Red Hat Edge Manager 1 | rhem/flightctl-periodic-rhel10 | Fix deferred | |
| Red Hat Edge Manager 1 | rhem/flightctl-periodic-rhel9 | Fix deferred | |
| Red Hat Edge Manager 1 | rhem/flightctl-telemetry-gateway-rhel10 | Fix deferred | |
| Red Hat Edge Manager 1 | rhem/flightctl-telemetry-gateway-rhel9 | Fix deferred | |
| Red Hat Edge Manager 1 | rhem/flightctl-userinfo-proxy-rhel10 | Fix deferred | |
| Red Hat Edge Manager 1 | rhem/flightctl-userinfo-proxy-rhel9 | Fix deferred | |
| Red Hat Edge Manager 1 | rhem/flightctl-worker-rhel10 | Fix deferred | |
| Red Hat Edge Manager 1 | rhem/flightctl-worker-rhel9 | Fix deferred | |
| Red Hat Enterprise Linux 10 | go-fdo-server | Fix deferred | |
| Red Hat Enterprise Linux 10 | osbuild-composer | Fix deferred | |
| Red Hat Enterprise Linux 8 | osbuild-composer | Fix deferred | |
| Red Hat Enterprise Linux 9 | osbuild-composer | Fix deferred | |
| Red Hat Hardened Images | go-fdo-server-main | Fixed | RHSA-2026:15856 |
| Red Hat Hardened Images | caddy-main | Fixed | RHSA-2026:16133 |
| Red Hat Hardened Images | cosign-main | Fixed | RHSA-2026:25138 |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-codeflare-operator-rhel8 | Fix deferred | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-codeflare-operator-rhel9 | Fix deferred | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-data-science-pipelines-argo-argoexec-rhel9 | Fix deferred | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-data-science-pipelines-argo-workflowcontroller-rhel9 | Fix deferred | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-maas-api-rhel9 | Fix deferred | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-ml-pipelines-api-server-v2-rhel8 | Fix deferred | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-ml-pipelines-api-server-v2-rhel9 | Fix deferred | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-ml-pipelines-driver-rhel8 | Fix deferred | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-ml-pipelines-driver-rhel9 | Fix deferred | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-ml-pipelines-launcher-rhel8 | Fix deferred | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-ml-pipelines-launcher-rhel9 | Fix deferred | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-ml-pipelines-persistenceagent-v2-rhel8 | Fix deferred | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-ml-pipelines-persistenceagent-v2-rhel9 | Fix deferred | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-ml-pipelines-scheduledworkflow-v2-rhel8 | Fix deferred | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-ml-pipelines-scheduledworkflow-v2-rhel9 | Fix deferred | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-mod-arch-model-registry-rhel9 | Fix deferred | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-model-registry-rhel9 | Fix deferred | |
| Red Hat OpenShift Container Platform 4 | openshift4/azure-service-rhel9-operator | Fix deferred | |
| Red Hat OpenShift Container Platform 4 | openshift4/o-cloud-manager-operator-bundle | Fix deferred | |
| Red Hat OpenShift Container Platform 4 | openshift4/o-cloud-manager-rhel9-operator | Fix deferred | |
| Red Hat OpenShift Container Platform 4 | openshift4/oc-mirror-plugin-rhel9 | Fix deferred | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-agent-installer-api-server-rhel8 | Fix deferred | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-agent-installer-api-server-rhel9 | Fix deferred | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-agent-installer-csr-approver-rhel8 | Fix deferred | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-agent-installer-csr-approver-rhel9 | Fix deferred | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-agent-installer-node-agent-rhel8 | Fix deferred | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-agent-installer-node-agent-rhel9 | Fix deferred | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-agent-installer-orchestrator-rhel8 | Fix deferred | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-agent-installer-orchestrator-rhel9 | Fix deferred | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-aws-cluster-api-controllers-rhel9 | Fix deferred | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-baremetal-installer-rhel9 | Fix deferred | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-cluster-control-plane-machine-set-rhel9-operator | Fix deferred | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-installer-rhel9 | Fix deferred | |
| Red Hat OpenShift GitOps | openshift-gitops-1/argocd-rhel8 | Fix deferred | |
| Red Hat OpenShift GitOps | openshift-gitops-1/argocd-rhel9 | Fix deferred | |
| Red Hat OpenStack Platform 18.0 | rhoso-operators/openstack-operator-bundle | Fix deferred | |
| Red Hat Openshift Data Foundation 4 | odf4/odf-cloudnative-pg-rhel9-operator | Fix deferred | |
| Red Hat Quay 3 | quay/clair-rhel8 | Fix deferred | |
| Red Hat Quay 3 | quay/clair-rhel9 | Fix deferred | |
| Red Hat Quay 3 | quay/quay-operator-rhel8 | Fix deferred | |
| Red Hat Quay 3 | quay/quay-operator-rhel9 | Fix deferred | |
| Red Hat Quay 3 | quay/quay-rhel8 | Fix deferred | |
| Red Hat Quay 3 | quay/quay-rhel9 | Fix deferred | |
| Red Hat Trusted Artifact Signer | rhtas/certificate-transparency-rhel9 | Fix deferred | |
| Red Hat Trusted Artifact Signer | rhtas/cosign-rhel9 | Fix deferred | |
| Red Hat Trusted Artifact Signer | rhtas/createtree-rhel9 | Fix deferred | |
| Red Hat Trusted Artifact Signer | rhtas/trillian-database-rhel9 | Fix deferred | |
| Red Hat Trusted Artifact Signer | rhtas/trillian-logserver-rhel9 | Fix deferred | |
| Red Hat Trusted Artifact Signer | rhtas/trillian-logsigner-rhel9 | Fix deferred | |
| Red Hat Trusted Artifact Signer | rhtas/updatetree-rhel9 | Fix deferred | |
| Zero Trust Workload Identity Manager | zero-trust-workload-identity-manager/spiffe-spire-agent-rhel9 | Fix deferred | |
| Zero Trust Workload Identity Manager | zero-trust-workload-identity-manager/spiffe-spire-oidc-discovery-provider-rhel9 | Fix deferred | |
| Zero Trust Workload Identity Manager | zero-trust-workload-identity-manager/spiffe-spire-server-rhel9 | Fix deferred | |
| Zero Trust Workload Identity Manager - Tech Preview | zero-trust-workload-identity-manager/spiffe-spire-agent-rhel9 | Fix deferred | |
| Zero Trust Workload Identity Manager - Tech Preview | zero-trust-workload-identity-manager/spiffe-spire-oidc-discovery-provider-rhel9 | Fix deferred | |
| Zero Trust Workload Identity Manager - Tech Preview | zero-trust-workload-identity-manager/spiffe-spire-server-rhel9 | Fix deferred | |
| Zero Trust Workload Identity Manager - Tech Preview | zero-trust-workload-identity-manager/zero-trust-workload-identity-manager-operator-bundle | Fix deferred | |
| Zero Trust Workload Identity Manager - Tech Preview | zero-trust-workload-identity-manager/zero-trust-workload-identity-manager-rhel9 | Fix deferred |
Common Vulnerability Scoring System (CVSS) Score Details
Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authorities (CNA) source for its products and services (see Red Hat classifications ).
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| CVSS v3 Base Score | 5.9 | 9.8 | N/A |
| Attack Vector | Network | Network | N/A |
| Attack Complexity | High | Low | N/A |
| Privileges Required | Low | None | N/A |
| User Interaction | None | None | N/A |
| Scope | Unchanged | Unchanged | N/A |
| Confidentiality Impact | High | High | N/A |
| Integrity Impact | Low | High | N/A |
| Availability Impact | None | High | N/A |
CVSS v3 Vector
Red Hat CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N
NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Frequently Asked Questions
Why is Red Hat's CVSS v3 score or Impact different from other vendors?
For more information, see https://access.redhat.com/solutions/762393.
My product is listed as "Under investigation" or "Affected", when will Red Hat release a fix for this vulnerability?
- "Under investigation" doesn't necessarily mean that the product is affected by this vulnerability. It only means that our Analysis Team is still working on determining whether the product is affected and how it is affected.
- "Affected" means that our Analysis Team has determined that this product is affected by this vulnerability and might release a fix to address this in the near future.
What can I do if my product is listed as "Will not fix"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Upgrade to a supported product version that includes a fix for this vulnerability (recommended).
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
What can I do if my product is listed as "Fix deferred"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
- Red Hat Engineering focuses on addressing high-priority issues based on their complexity or limited lifecycle support. Therefore, lower-priority issues will not receive immediate fixes.
What is a mitigation?
I have a Red Hat product but it is not in the above list, is it affected?
Why is my security scanner reporting my product as vulnerable to this vulnerability even though my product version is fixed or not affected?
My product is listed as "Out of Support Scope". What does this mean?
Not sure what something means? Check out our Security Glossary.