CVE-2025-1094
PostgreSQL quoting APIs miss neutralizing quoting syntax in text that fails encoding validation
- Published
- Updated
- Reserved
- Assigned by
- PostgreSQL
Description
Improper neutralization of quoting syntax in PostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() allows a database input provider to achieve SQL injection in certain usage patterns. Specifically, SQL injection requires the application to use the function result to construct input to psql, the PostgreSQL interactive terminal. Similarly, improper neutralization of quoting syntax in PostgreSQL command line utility programs allows a source of command line arguments to achieve SQL injection when client_encoding is BIG5 and server_encoding is one of EUC_TW or MULE_INTERNAL. Versions before PostgreSQL 17.3, 16.7, 15.11, 14.16, and 13.19 are affected.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| PostgreSQLCNA (assigner) | 3.1 | High8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Deferred | 3.1 | High8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 90.0% · top 0.2% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.1.
Weakness
Affected products
PostgreSQL
- affected 17 – < 17.3
- affected 16 – < 16.7
- affected 15 – < 15.11
- affected 14 – < 14.16
- affected < 13.19
What to do
Workaround: Confirm input passes encoding validation before quoting it.
References (6)
- https://www.postgresql.org/support/security/CVE-2025-1094/ (opens in a new tab)
- https://lists.debian.org/debian-lts-announce/2025/02/msg00015.html (opens in a new tab)
- http://www.openwall.com/lists/oss-security/2025/02/16/3 (opens in a new tab)
- http://www.openwall.com/lists/oss-security/2025/02/20/1 (opens in a new tab)
- https://lists.debian.org/debian-lts-announce/2025/02/msg00024.html (opens in a new tab)
- https://security.netapp.com/advisory/ntap-20250221-0010/ (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2025-1094)Record last updated .