CVE-2025-1094

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.
Configurations

No configuration.

History

21 Feb 2025, 18:15

Type Values Removed Values Added
References
  • () https://security.netapp.com/advisory/ntap-20250221-0010/ -

21 Feb 2025, 11:15

Type Values Removed Values Added
References
  • () https://lists.debian.org/debian-lts-announce/2025/02/msg00024.html -

20 Feb 2025, 19:15

Type Values Removed Values Added
References
  • () http://www.openwall.com/lists/oss-security/2025/02/20/1 -

16 Feb 2025, 21:15

Type Values Removed Values Added
References
  • () http://www.openwall.com/lists/oss-security/2025/02/16/3 -
Summary
  • (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.

13 Feb 2025, 22:15

Type Values Removed Values Added
References
  • () https://lists.debian.org/debian-lts-announce/2025/02/msg00015.html -

13 Feb 2025, 13:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-02-13 13:15

Updated : 2025-02-21 18:15


NVD link : CVE-2025-1094

Mitre link : CVE-2025-1094

CVE.ORG link : CVE-2025-1094


JSON object : View

Products Affected

No product.

CWE
CWE-149

Improper Neutralization of Quoting Syntax