Advisory

GO-2024-2605

Also known as: CVE-2024-27289, GHSA-m7wr-2xf7-cm9p

Summary

SQL injection in github.com/jackc/pgx/v4

Details

SQL injection is possible when the database uses the non-default simple protocol, a minus sign directly precedes a numeric placeholder followed by a string placeholder on the same line, and both parameter values are user-controlled.

Severity

Not rated by the source.

Dates

Published
2024-03-11 20:08 UTC
Modified
2026-02-04 03:50 UTC

Affected packages and fixes

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

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