8.1high
PostgreSQL quoting APIs miss neutralizing quoting syntax in text that fails encoding validation
- Severity
- 8.1high CVSS:3.1 by PostgreSQL
- Exploit likelihood
- 85.4% (higher than 99% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- PostgreSQL
- Also known as
- BIT-POSTGRESQL-2025-1094
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| PostgreSQL | from 17 before 17.3, from 16 before 16.7, from 15 before 15.11, from 14 before 14.16, before 13.19 | CVE List |
| postgresql (Bitnami) | before 13.19.0, from 14.0.0 before 14.16.0, from 15.0.0 before 15.11.0, from 16.0.0 before 16.7.0, from 17.0.0 before 17.3.0 | Bitnami Vulnerability Database |
All scores
| PostgreSQL | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
La neutralización incorrecta de la sintaxis de comillas en las funciones libpq de PostgreSQL PQescapeLiteral(), PQescapeIdentifier(), PQescapeString() y PQescapeStringConn() permite que un proveedor de entrada de base de datos logre una inyección SQL en ciertos patrones de uso. Específicamente, la inyección SQL requiere que la aplicación use el resultado de la función para construir la entrada a psql, la terminal interactiva de PostgreSQL. De manera similar, la neutralización incorrecta de la sintaxis de comillas en los programas de utilidad de línea de comandos de PostgreSQL permite que una fuente de argumentos de línea de comandos logre una inyección SQL cuando client_encoding es BIG5 y server_encoding es uno de EUC_TW o MULE_INTERNAL. Las versiones anteriores a PostgreSQL 17.3, 16.7, 15.11, 14.16 y 13.19 se ven afectadas.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-1094 changed 2026-11-03 | CVE Terms of Use |
| NVD | CVE-2025-1094 changed 2026-11-03 | Public domain |
| Bitnami Vulnerability Database | BIT-POSTGRESQL-2025-1094 changed 2025-05-20 | Apache-2.0 |