LowGO-2024-2605CVE-2024-27289GHSA-m7wr-2xf7-cm9p
SQL injection in github.com/jackc/pgx/v4
Published 11 Mar 2024 · Updated 4 Feb 2026
Is your project on an affected github.com/jackc/pgx?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- All versions
- Fixed in
- No fix released
- Affected
- <4.18.2
- Fixed in
- 4.18.2
Update to the fixed version for your release line, for example:
go get github.com/jackc/pgx/v4@v4.18.2Details
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.
Is GO-2024-2605 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/jackc/pgx, and gives you the command that fixes it.
More advisories for github.com/jackc/pgx
- LowCVE-2026-41889SQL Injection via placeholder confusion with dollar quoted string literals in github.com/jackc/pgx · 22 Jun 2026
- LowCVE-2026-41889pgx: SQL Injection via placeholder confusion with dollar quoted string literals · 22 Apr 2026
- LowCVE-2024-27304SQL injection in github.com/jackc/pgproto3 and github.com/jackc/pgx · 14 Mar 2024
- HighCVE-2024-27304pgx SQL Injection via Protocol Message Size Overflow · 4 Mar 2024
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.