CVE-2024-27304SQL Injection in PGX

Severity
9.8CRITICALNVD
EPSS
1.9%
top 16.84%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedMar 6
Latest updateMar 14

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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitability: 3.9 | Impact: 5.9

Affected Packages16 packages

CVEListV5jackc/pgx< 4.18.2+1
NVDpgx_project/pgx5.0.05.5.4+1
Gogithub.com/jackc_pgx5.0.05.5.4+1
Gogithub.com/jackc_pgx_v55.0.05.5.4

Patches

🔴Vulnerability Details

5
OSV
SQL injection in github.com/jackc/pgproto3 and github.com/jackc/pgx2024-03-14
OSV
CVE-2024-27304: pgx is a PostgreSQL driver and toolkit for Go2024-03-06
OSV
pgproto3 SQL Injection via Protocol Message Size Overflow2024-03-04
GHSA
pgx SQL Injection via Protocol Message Size Overflow2024-03-04
OSV
pgx SQL Injection via Protocol Message Size Overflow2024-03-04

📋Vendor Advisories

3
Microsoft
pgx SQL Injection via Protocol Message Size Overflow2024-03-12
Red Hat
pgx: SQL Injection via Protocol Message Size Overflow2024-03-06
Debian
CVE-2024-27304: golang-github-jackc-pgconn - pgx is a PostgreSQL driver and toolkit for Go. SQL injection can occur if an att...2024

💬Community

1
Bugzilla
CVE-2024-27304 pgx: SQL Injection via Protocol Message Size Overflow2024-03-06