# CVE-2026-41889: pgx: SQL Injection via placeholder confusion with dollar quoted string literals

- Severity: Low 2.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-02)
- Published: 2026-04-22T20:46:51.000Z
- Modified: 2026-10-26T18:10:00.173Z
- Also known as: GHSA-j88v-2chj-qfwx, GO-2026-5004
- Related: CGA-rrgr-7xqx-rg3q
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- jackc pgx: < 5.9.2; before 5.9.2
- github.com/jackc/pgx/v5 (Go): before 5.9.2
- github.com/jackc/pgx/v4 (Go): up to 4.18.3; all versions
- github.com/jackc/pgx (Go): up to 3.6.2; all versions

## Every score

- GitHub_M: CVSS:4.0 2.3 Low `CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/jackc/pgx/security/advisories/GHSA-j88v-2chj-qfwx> (advisory, mitigation, vendor-advisory, web)
- <https://github.com/jackc/pgx/commit/60644f84918a8af66d14a4b0d865d4edafd955da> (fix, patch, web)
- <https://github.com/jackc/pgx/releases/tag/v5.9.2> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41889> (advisory)
- <https://github.com/jackc/pgx> (package)

## Sources

- CVE List: [CVE-2026-41889](https://www.cve.org/CVERecord?id=CVE-2026-41889), CVE Terms of Use, modified 2026-05-08
- GitHub Advisory Database: [GHSA-j88v-2chj-qfwx](https://github.com/advisories/GHSA-j88v-2chj-qfwx), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5004](https://pkg.go.dev/vuln/GO-2026-5004), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-41889](https://nvd.nist.gov/vuln/detail/CVE-2026-41889), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-41889 · Whole record: https://cve.day/CVE-2026-41889.json · Rebuilt by cve.day 2026-11-25T22:59:21.102Z
