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

CVE-2025-1094 affects 196 listed versions of PostgreSQL in the Dawnsentry catalogue.

8.1CVSS high
Attack tool publicexploitation
85%EPSS (next 30 days)
13 February 2025published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

PostgreSQL

196 of 250 listed versions are affected. Fixed in 17.3, 16.7, 15.11, 14.16, 13.19. The newest release, 19.0, is not affected.

17.2 17.1 17.0 17.0-rc1 16.6 16.5 16.4 16.3 16.2 16.1 16.0 15.10 15.9 15.8 15.7 15.6 15.5 15.4 15.3 15.2 15.1 15.0 14.15 14.14 14.13 14.12 14.11 14.10 14.9 14.8 14.7 14.6 14.5 14.4 14.3 14.2 14.1 14.0 13.18 13.17 13.16 13.15 13.14 13.13 13.12 13.11 13.10 13.9 13.8 13.7 13.6 13.5 13.4 13.3 13.2 13.1 13.0 12.22 12.21 12.20 and 136 more

What it is

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 (PostgreSQL)

Published by PostgreSQL on 13 February 2025. Last changed 3 November 2026. Exploit code is public (Metasploit or Nuclei).

Sources

Check one version you run: look CVE-2025-1094 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.