CVE-2025-1094

Publication date 13 February 2025

Last updated 3 March 2025


Ubuntu priority

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.

Read the notes from the security team

Status

Package Ubuntu Release Status
postgresql-10 24.10 oracular Not in release
24.04 LTS noble Not in release
22.04 LTS jammy Not in release
20.04 LTS focal Not in release
18.04 LTS bionic
Needs evaluation
postgresql-12 24.10 oracular Not in release
24.04 LTS noble Not in release
22.04 LTS jammy Not in release
20.04 LTS focal
Fixed 12.22-0ubuntu0.20.04.2
postgresql-14 24.10 oracular Not in release
24.04 LTS noble Not in release
22.04 LTS jammy
Fixed 14.17-0ubuntu0.22.04.1
20.04 LTS focal Not in release
postgresql-16 24.10 oracular
Fixed 16.8-0ubuntu0.24.10.1
24.04 LTS noble
Fixed 16.8-0ubuntu0.24.04.1
22.04 LTS jammy Not in release
20.04 LTS focal Not in release
postgresql-17 24.10 oracular Not in release
24.04 LTS noble Not in release
22.04 LTS jammy Not in release
20.04 LTS focal Not in release
postgresql-9.3 24.10 oracular Not in release
24.04 LTS noble Not in release
22.04 LTS jammy Not in release
20.04 LTS focal Not in release
postgresql-9.5 24.10 oracular Not in release
24.04 LTS noble Not in release
22.04 LTS jammy Not in release
20.04 LTS focal Not in release
16.04 LTS xenial
Needs evaluation

Notes


leosilva

PostgreSQL 9.3 is end of life upstream, and no updates are are available. Marking as deferred in -esm-main releases.


mdeslaur

PostgreSQL versions that have fixed this issue introduced a regression, so update will be delayed until a fix is available.

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details
postgresql-12