CVE-2024-27304

pgx SQL Injection via Protocol Message Size Overflow

Published Mar 6, 2024 CVSS 3.1 · 9.8 Critical EPSS 1.1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

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
Type Values Removed Values Added
First Time appeared Jackc pgproto3
CPEs cpe:2.3:a:pgproto3_project:pgproto3:*:*:*:*:*:go:*:*
cpe:2.3:a:pgx_project:pgx:*:*:*:*:*:go:*:*
cpe:2.3:a:jackc:pgproto3:*:*:*:*:*:go:*:*
cpe:2.3:a:jackc:pgx:*:*:*:*:*:go:*:*
Vendors & Products Pgproto3 Project
Pgproto3 Project pgproto3
Pgx Project
Pgx Project pgx
Jackc pgproto3
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
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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Dec 12, 2024, 8:52 PM
Reserved
Feb 22, 2024, 6:08 PM
Status
Analyzed
Published
Mar 6, 2024, 7:15 PM
Modified
Jun 17, 2026, 7:19 AM
Severity
Moderate
Public date
Mar 6, 2024, 12:00 AM