Read the docs
TI-2024-18142 Aliases CVE-2024-27304GHSA-mrww-27vc-gghv

pgx SQL Injection via Protocol Message Size Overflow

Priority MEDIUM 50CWE-190Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Code execution, SQL injection
Confidentiality · integrity · availability
High · High · High
Fix status
Partial Red Hat: 1 fixed, 12 without a fix

Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-190, CWE-89 and the CVSS impact.

Summary

pgx is a PostgreSQL driver and toolkit for Go. SQL injection can occur if an attacker can cause a single query or bind message to exceed 4 GB in size. An integer overflow in the calculated message size can cause the one large message to be sent as multiple messages under the attacker's control. The problem is resolved in v4.18.2 and v5.5.4. As a workaround, reject user input large enough to cause a single query or bind message to exceed 4 GB in size.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.01109 66th percentileScored 2026-11-07
Fix Partial pgx (jackc): 4.18.2, 5.5.4github.com/jackc/pgx (Go): 4.18.2, 5.5.4+2 more productsRed Hat: 1 advisoryRed Hat: 1 fixed, 12 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
jackcpgxbefore 4.18.2; 5.0.0 to before 5.5.44.18.2, 5.5.4Patch availableCNA
—github.com/jackc/pgx (Go)before 4.18.24.18.2Patch availableGHSA-mrww-27vc-gghv
—github.com/jackc/pgx (Go)5.0.0 to before 5.5.45.5.4Patch availableGHSA-mrww-27vc-gghv
—github.com/jackc/pgx/v4 (Go)before 4.18.24.18.2Patch availableGHSA-mrww-27vc-gghv
—github.com/jackc/pgx/v5 (Go)5.0.0 to before 5.5.45.5.4Patch availableGHSA-mrww-27vc-gghv
  • pgx Vendorjackc Affected before 4.18.2; 5.0.0 to before 5.5.4 Fixed in 4.18.2, 5.5.4 Patch available CNA
  • github.com/jackc/pgx (Go) Vendor— Affected before 4.18.2 Fixed in 4.18.2 Patch available GHSA-mrww-27vc-gghv
  • github.com/jackc/pgx (Go) Vendor— Affected 5.0.0 to before 5.5.4 Fixed in 5.5.4 Patch available GHSA-mrww-27vc-gghv
  • github.com/jackc/pgx/v4 (Go) Vendor— Affected before 4.18.2 Fixed in 4.18.2 Patch available GHSA-mrww-27vc-gghv
  • github.com/jackc/pgx/v5 (Go) Vendor— Affected 5.0.0 to before 5.5.4 Fixed in 5.5.4 Patch available GHSA-mrww-27vc-gghv

CPE configurations NVD · 2

CPEVersionsRoleVendor
cpe:2.3:a:jackc:pgproto3:*:*:*:*:*:go:*:*before 2.3.3Vulnerablejackc
cpe:2.3:a:jackc:pgx:*:*:*:*:*:go:*:*before 4.18.2; 5.0.0 to before 5.5.4Vulnerablejackc
  • cpe:2.3:a:jackc:pgproto3:*:*:*:*:*:go:*:* Versions before 2.3.3 Vulnerable ·jackc
  • cpe:2.3:a:jackc:pgx:*:*:*:*:*:go:*:* Versions before 4.18.2; 5.0.0 to before 5.5.4 Vulnerable ·jackc

Remediation

  • Fix · CNA pgx (jackc) Fixed in 4.18.2, 5.5.4
  • Fix · GHSA-mrww-27vc-gghv github.com/jackc/pgx (Go) Fixed in 4.18.2 Advisory →
  • Fix · GHSA-mrww-27vc-gghv github.com/jackc/pgx (Go) Fixed in 5.5.4 Advisory →
  • Fix · GHSA-mrww-27vc-gghv github.com/jackc/pgx/v4 (Go) Fixed in 4.18.2 Advisory →
  • Fix · GHSA-mrww-27vc-gghv github.com/jackc/pgx/v5 (Go) Fixed in 5.5.4 Advisory →

Red Hat 1 advisory

  • RHSA-2024:1321 Released 2024-03-13 · Red Hat rating Moderate
    ACS 4.3 enhancement and security update
    • RHACS 4.3 for RHEL 8 advanced-cluster-security/rhacs-central-db-rhel8, advanced-cluster-security/rhacs-collector-rhel8, advanced-cluster-security/rhacs-collector-slim-rhel8 +8

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Migration Toolkit for Applications 6AffectedNo fix planned: Will not fix
Red Hat Advanced Cluster Security 3AffectedNo fix planned: Out of support scope
Red Hat Ansible Automation Platform 2AffectedNo fix planned: Will not fix
Red Hat Enterprise Linux 8AffectedNo fix planned: Will not fix
Red Hat Enterprise Linux 9AffectedNo fix planned: Will not fix
Red Hat OpenShift Container Platform 4AffectedNo fix yet
Red Hat OpenShift Container Platform Assisted Installer 1AffectedNo fix yet
Red Hat OpenShift Data Science (RHODS)AffectedNo fix yet
Red Hat OpenShift on AWSAffectedNo fix planned: Will not fix
Red Hat OpenStack Platform 16.2AffectedNo fix planned: Will not fix
Red Hat Openshift Container Storage 4AffectedNo fix yet
Red Hat Quay 3AffectedNo fix yet
RHACS 4.3 for RHEL 8Fixed RHSA-2024:1321
Not affected: 3 products
  • Multicluster Engine for Kubernetes
  • Red Hat Advanced Cluster Management for Kubernetes 2
  • Red Hat Openshift Data Foundation 4

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-27304
  2. 2026-10-03 Alias added: GHSA-mrww-27vc-gghv

References

  • TI-2026-24815 Denial of service in github.com/jackc/pgproto3/v2 CVSS 3.1HIGH 7.5

Sources