Go Vulnerability Database
GO-2024-2605
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/jackc/pgx | All versions, no fix listed |
| Go | github.com/jackc/pgx/v4 | All versions before 4.18.2 (fixed in 4.18.2) |