3 ms·
https://www.postgresql.org/support/security/CVE-2025-1094/ https://www.postgresql.org/support/security/CVE-2025-1094/ > Improper neutralization of quoting synt
by yencabulator 2y ago
https://www.postgresql.org/support/security/CVE-2025-1094/ https://www.postgresql.org/support/security/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.
Wait, what kind of system design uses programmatic input to psql, the command-line tool? Are they like shelling out to psql, instead of using a SQL client library?
> 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_INTERNA
BIG5 is Chinese encoding, so I'm assuming the actual attack was the other route.
- yencabulator 2y agoA little more context at https://www.rapid7.com/blog/post/2025/02/13/cve-2025-1094-postgresql-psql-sql-injection-fixed/ https://www.rapid7.com/blog/post/2025/02/13/cve-2025-1094-po... really does imply somebody is programmatically generating a SQL statement and then passing it to psql in a subprocess.
- nitwit005 2y agoThey were in the treasury's systems, so presumably this is the attackers running psql commands. The claim that this vulnerability was required seems quite dubious.
- chews 2y agoThe call is coming from inside the house!