Description
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.
Published: 2024-03-06
Score: 9.8 Critical
EPSS: 1.9% Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

No analysis available yet.

Remediation

No remediation available yet.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
EUVD EUVD EUVD-2024-0972 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.
Github GHSA Github GHSA GHSA-mrww-27vc-gghv pgx SQL Injection via Protocol Message Size Overflow
History

Thu, 04 Dec 2025 17:45:00 +0000

Type Values Removed Values Added
First Time appeared Pgproto3 Project
Pgproto3 Project pgproto3
Pgx Project
Pgx Project pgx
CPEs cpe:2.3:a:pgproto3_project:pgproto3:*:*:*:*:*:go:*:*
cpe:2.3:a:pgx_project:pgx:*:*:*:*:*:go:*:*
Vendors & Products Pgproto3 Project
Pgproto3 Project pgproto3
Pgx Project
Pgx Project pgx

Thu, 12 Dec 2024 21:15:00 +0000

Type Values Removed Values Added
First Time appeared Jackc
Jackc pgx
CPEs cpe:2.3:a:jackc:pgx:*:*:*:*:*:*:*:*
cpe:2.3:a:jackc:pgx:5.0.0:*:*:*:*:*:*:*
Vendors & Products Jackc
Jackc pgx
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 12 Dec 2024 21:00:00 +0000

Type Values Removed Values Added
References

Subscriptions

Jackc Pgx
Pgproto3 Project Pgproto3
Pgx Project Pgx
Redhat Advanced Cluster Security
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2024-12-12T20:52:24.821Z

Reserved: 2024-02-22T18:08:38.875Z

Link: CVE-2024-27304

cve-icon Vulnrichment

Updated: 2024-08-02T00:27:59.959Z

cve-icon NVD

Status : Analyzed

Published: 2024-03-06T19:15:08.767

Modified: 2025-12-04T17:33:44.540

Link: CVE-2024-27304

cve-icon Redhat

Severity : Moderate

Publid Date: 2024-03-06T00:00:00Z

Links: CVE-2024-27304 - Bugzilla

cve-icon OpenCVE Enrichment

No data.

Weaknesses