github.com/jackc/pgx
Affected
- introduced
0, fixed4.18.2(semver)
Fixed versions
4.18.2
Fix
- Fixed version
4.18.2go get github.com/jackc/[email protected]
Advisory
Also known as: CVE-2024-27304, GHSA-7jwh-3vrq-q3m8, GO-2024-2606
pgx SQL Injection via Protocol Message Size Overflow
Impact
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.
Patches
The problem is resolved in v4.18.2 and v5.5.4.
Workarounds
Reject user input large enough to cause a single query or bind message to exceed 4 GB in size.
High Basis: The source's own band: HIGH
0, fixed 4.18.2 (semver)4.18.2
4.18.2go get github.com/jackc/[email protected]5.0.0, fixed 5.5.4 (semver)5.5.4
5.5.4go get github.com/jackc/[email protected]0, fixed 4.18.2 (semver)4.18.2
4.18.2go get github.com/jackc/pgx/[email protected]5.0.0, fixed 5.5.4 (semver)5.5.4
5.5.4go get github.com/jackc/pgx/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0