Exploit database

Vulnerability

CVE-2024-27304

pgx SQL Injection via Protocol Message Size Overflow

Vulnerability details

Score
9.8
Severity
critical

CVSS 3.1 · GitHub_M

Vector string

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

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.

CVE Program

Exploit source choices

1 source
roaris/cve-2024-27304-poc
GH-9fc55e704f602979e2df98250be0853eGitHubUnofficial GitHub sourcePreferred

PoC of "DEF CON 32 - SQL Injection Isn't Dead Smuggling Queries at the Protocol Level - Paul Gerste"

2025-10-1212 files · 1 stars