Jackc pgx
pgx: SQL Injection via placeholder confusion with dollar quoted string literals
pgx is a PostgreSQL driver and toolkit for Go. Prior to version 5.9.2, SQL injection can occur when the non-default simple protocol is used, a dollar quoted string literal is used in the SQL query, that string literal contains text that would be would be interpreted as a placeholder outside of a string literal, and the value of that placeholder is controllable by the attacker. This issue has been patched in version 5.9.2.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 5.9.2
Fixed in 5.9.2
Mitigation
Upgrade pgx to 5.9.2 or later.
References
- Vendor advisory github.com/jackc/pgx/security/advisories/GHSA-…
- Patch github.com/jackc/pgx/commit/60644f84918a8af66d…
- Release notes github.com/jackc/pgx/releases/tag/v5.9.2
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.1 suspicious or fake
Suspicious or fake 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| slashid/baton-retool | 31 Jul 2026 +84 d | 0 | Suspicious · score 80
Why suspicious
|
Only PoCs count toward the first-PoC date and the characteristics below. Suspicious repositories (score ≥ 50) never count. Do not run PoC code from unknown sources.