ADVISORIES

Debian Security Tracker

DEBIAN-CVE-2024-27304

Details

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 packages

EcosystemPackageAffected versions
Debian:12golang-github-jackc-pgconn
All versions, no fix listed
Debian:13golang-github-jackc-pgconn
All versions, no fix listed
Debian:14golang-github-jackc-pgconn
All versions before 1.14.3-1 (fixed in 1.14.3-1)
Debian:12golang-github-jackc-pgx
All versions, no fix listed
Debian:13golang-github-jackc-pgx
All versions before 4.18.1-2 (fixed in 4.18.1-2)
Debian:14golang-github-jackc-pgx
All versions before 4.18.1-2 (fixed in 4.18.1-2)

References