VYPR
Critical severity9.8NVD Advisory· Published Mar 6, 2024· Updated May 21, 2026

CVE-2024-27304

CVE-2024-27304

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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
github.com/jackc/pgxGo
< 4.18.24.18.2
github.com/jackc/pgxGo
>= 5.0.0, < 5.5.45.5.4
github.com/jackc/pgx/v4Go
< 4.18.24.18.2
github.com/jackc/pgx/v5Go
>= 5.0.0, < 5.5.45.5.4

Affected products

179

Patches

Vulnerability mechanics

References

9

News mentions

0

No linked articles in our index yet.