Advisory

GO-2024-2606

Also known as: CVE-2024-27304, GHSA-7jwh-3vrq-q3m8, GHSA-mrww-27vc-gghv

Summary

SQL injection in github.com/jackc/pgproto3 and github.com/jackc/pgx

Details

An integer overflow in the calculated message size of a query or bind message could allow a single large message to be sent as multiple messages under the attacker's control. This could lead to SQL injection if an attacker can cause a single query or bind message to exceed 4 GB in size.

Severity

Not rated by the source.

Dates

Published
2024-03-14 17:12 UTC
Modified
2026-02-04 03:55 UTC

Affected packages and fixes

github.com/jackc/pgproto3/v2

Go · All systems

Affected

  • introduced 0, fixed 2.3.3 (semver)

Fixed versions

2.3.3

Fix

github.com/jackc/pgx

Go · All systems

Affected

  • introduced 0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

github.com/jackc/pgx/v4

Go · All systems

Affected

  • introduced 0, fixed 4.18.2 (semver)

Fixed versions

4.18.2

Fix

github.com/jackc/pgx/v5

Go · All systems

Affected

  • introduced 5.0.0, fixed 5.5.4 (semver)

Fixed versions

5.5.4

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: Go Vulnerability Database · CC BY 4.0

Sources & licences