
pgx SQL Injection via Protocol Message Size Overflow CVE: CVE-2024-27304 PT-Identifier: PT-2024-2043 Vendor: jackc Product: pgx (PostgreSQL Driver) CVSS: 9.8 Credits: n/a 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. References: https://dbugs.ptsecurity.com/vulnerability/CVE-2024-27304 Exploits: https://github.com/flying-owl/Go-PGX-Vulnerability-POC-Public-Mirror https://github.com/roaris/CVE-2024-27304-PoC #dbugs_vuln
Post summary
The entry details a high‑severity SQL injection vulnerability (CVE‑2024‑27304), provides PoC code, but primarily highlights the vendor’s patch releases and a recommended input‑size workaround.
