CVE-2024-27304
March 06, 2024
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
github.com/jackc/pgx/v4 (GO):
Affected version(s) Fix Suggestion:
Update to version v4.18.2github.com/jackc/pgx/v5 (GO):
Affected version(s) Fix Suggestion:
Update to version v5.5.4github.com/jackc/pgx (GO):
Affected version(s) Fix Suggestion:
Update to version v4.18.2github.com/jackc/pgx (GO):
Affected version(s) Fix Suggestion:
Update to version v5.5.4github.com/jackc/pgx/v5 (GO):
Affected version(s) Fix Suggestion:
Update to version v5.5.4github.com/jackc/pgx/v4 (GO):
Affected version(s) Fix Suggestion:
Update to version v4.18.2github.com/jackc/pgx/v5 (GO):
Affected version(s) Fix Suggestion:
Update to version v5.5.4github.com/jackc/pgx/v4 (GO):
Affected version(s) Fix Suggestion:
Update to version v4.18.2github.com/jackc/pgx (GO):
Affected version(s) Fix Suggestion:
Update to version v5.5.4Related ResourcesĀ (9)
Do you need more information?
Contact UsCVSS v4
Base Score:
9.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
Exploit Maturity
UNREPORTED
CVSS v3
Base Score:
9.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
EPSS
Base Score:
1.88