CVE-2024-27304
SQL injection in github.com/jackc/pgproto3 and github.com/jackc/pgx
9.8
CRITICAL
CVSS 3.1
EPSS 1.9%
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.
How to fix CVE-2024-27304
To remediate CVE-2024-27304, upgrade the affected package to a fixed version below.
- —no fix listed
- —no fix listed
- —upgrade to 2.3.3 or later
- —upgrade to 2.3.3 or later
- —upgrade to 2.3.3 or later
- —upgrade to 4.18.2 or later
- —no fix listed
- —upgrade to 4.18.2 or later
- —upgrade to 4.18.2 or later
- —upgrade to 5.5.4 or later
- —upgrade to 5.5.4 or later
Is CVE-2024-27304 being exploited?
Low — EPSS is 1.9%, meaning exploitation activity has not been observed at scale.
Affected packages (11)
- from 0
- from 0
- from 0, < 2.3.3
- from 0, < 2.3.3
- from 0, < 2.3.3
- from 0, < 4.18.2
- from 0
- from 0, < 4.18.2
- from 0, < 4.18.2
- >= 5.0.0, < 5.5.4
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U |
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |