PostgreSQL quoting APIs miss neutralizing quoting syntax in text that fails encoding validation
100Vexday Risk Score
Patch now. It exploitation observed by VulnCheck and has a working public exploit.
ssvc Actcvss 8.1epss 90%
from disclosure to weapon125 days
Published on NVDFeb 13
1st PoC+125d
metasploitDec 16
VulnCheckFeb 13
exploitation probability
90%top 1% of all CVEs
observed exploitation
yesVulnCheck
4 public exploit(s)
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.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
n/a · PostgreSQLpublic PoCs found — 4
vulncheckvulncheck.com/xdb/89210b1fa317unverifiedvulncheckvulncheck.com/xdb/89f107f7accaunverifiedvulncheckvulncheck.com/xdb/2b2c44dd2231unverifiedvulncheckvulncheck.com/xdb/d1d18f516b5aunverified⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.
References
https://lists.debian.org/debian-lts-announce/2025/02/msg00015.htmlhttps://lists.debian.org/debian-lts-announce/2025/02/msg00024.htmlhttps://security.netapp.com/advisory/ntap-20250221-0010/https://www.postgresql.org/support/security/CVE-2025-1094/http://www.openwall.com/lists/oss-security/2025/02/16/3http://www.openwall.com/lists/oss-security/2025/02/20/1