CVE-2024-27304: Jackc PGPROTO3

Critical severity, CVSS 9.8. EPSS: 1.1% chance of exploitation in the next 30 days.

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.

Affected products

  • Jackc PGPROTO3: before 2.3.3 (fixed in 2.3.3)
  • Jackc Pgx: before 4.18.2 (fixed in 4.18.2); from 5.0.0, before 5.5.4 (fixed in 5.5.4)

Published 2024-03-06. Last modified 2026-06-17.