Advisory

GHSA-7jwh-3vrq-q3m8

Also known as: CVE-2024-27304, GHSA-mrww-27vc-gghv, GO-2024-2606

Summary

pgproto3 SQL Injection via Protocol Message Size Overflow

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-03-04 20:45 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

github.com/jackc/pgproto3

Go · All systems

Affected

  • introduced 0, fixed 2.3.3 (semver)

Fixed versions

2.3.3

Fix

github.com/jackc/pgproto3/v2

Go · All systems

Affected

  • introduced 0, fixed 2.3.3 (semver)

Fixed versions

2.3.3

Fix

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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences