CVE-2024-27304 - CVE House
Back to Database
Status published Critical CVE-2024-27304

pgx SQL Injection via Protocol Message Size Overflow

Vulnerability 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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2024-27304

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

pgx
Vulnerable Versions:
< 4.18.2, >= 5.0.0, < 5.5.4

Timeline

Official Publish: March 6th, 2024
Last Modified: December 12th, 2024
Added to House: July 22nd, 2026

CVSS Vectors

V3: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses (CWE)