CVE-2025-1094 - PostgreSQL quoting APIs miss neutralizing quoting syntax in text that fails encoding validation

Overview

From Postgresql:

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.

More information here:

CodeSonar

CodeSonar never runs psql programmatically, but it does run Postgresql in single user mode in order to reset the database password when the hub administrator uses codesonar hub-start -setadminpw .... In that case, the user specifying the password has a shell where they can execute arbitrary commands anyway.

Users can delete psql from: [CodeSonar installation directory]/third-party/postgres[-version]/inst/bin/psql, if extra assurance that psql is not used is desired.

Was this article helpful?
0 out of 0 found this helpful

Articles in this section

White Papers
Read our white papers to find useful information about software development in the IoT era, where devices must not only function with impeccable quality and safety but also remain resilient to cyber-attacks.
Product Sheets
Read our datasheets and company briefs to gain quick insights into our solutions, products, and integrations, including their capabilities, benefits, and supported environments.
TalkSecure
Topics relating to DevSecOps, application security testing (AST), binary analysis, product security, software assurance and others.
X