Skip to main content
← All vulnerabilities
CVE-2026-41889GO-2026-5004GHSA-J88V-2CHJ-QFWX

pgx: SQL Injection via placeholder confusion with dollar quoted string literals

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.9.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • jackc pgx

    fixed in 5.9.2

  • github.com/jackc/pgxGo

    All versions

  • github.com/jackc/pgx/v4Go

    All versions

  • github.com/jackc/pgx/v5Go

    fixed in 5.9.2

  • github.com/jackc/pgx/v4Go

    through 4.18.3

  • github.com/jackc/pgxGo

    through 3.6.2

References 3

GitHub · jackc/pgx