github.com/jackc/pgproto3
Affected
- introduced
0, fixed2.3.3(semver)
Fixed versions
2.3.3
Fix
- Fixed version
2.3.3go get github.com/jackc/[email protected]
Advisory
Also known as: CVE-2024-27304, GHSA-mrww-27vc-gghv, GO-2024-2606
pgproto3 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 v2.3.3
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 2.3.3 (semver)2.3.3
2.3.3go get github.com/jackc/[email protected]0, fixed 2.3.3 (semver)2.3.3
2.3.3go get github.com/jackc/pgproto3/[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