CVE-2025-1094
JSON

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 packageVersionsReported by
PostgreSQLfrom 17 before 17.3, from 16 before 16.7, from 15 before 15.11, from 14 before 14.16, before 13.19CVE 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.0Bitnami Vulnerability Database

All scores

PostgreSQL8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-149

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

SourceRecordLicence
CVE ListCVE-2025-1094 changed 2026-11-03CVE Terms of Use
NVDCVE-2025-1094 changed 2026-11-03Public domain
Bitnami Vulnerability DatabaseBIT-POSTGRESQL-2025-1094 changed 2025-05-20Apache-2.0