↑↓ select↵ open⌫ change scopeOpen full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

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. 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.

Version Information

Affected branchIntroducedFixed InFix Published
13—13.192025-02-13
14—14.162025-02-13
15—15.112025-02-13
16—16.72025-02-13
17—17.32025-02-13

CVSS 3.0

Overall Score8.1
Componentcore server
VectorAV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

First published: 2025-02-13

Historical source observations

These dated records preserve the original source claims separately from the reviewed fix list.

center · 2026-10-03 12:08:35.169032+08

  • PostgreSQL 17 · Original minor coordinate: 3
  • PostgreSQL 16 · Original minor coordinate: 7
  • PostgreSQL 15 · Original minor coordinate: 11
  • PostgreSQL 14 · Original minor coordinate: 16
  • PostgreSQL 13 · Original minor coordinate: 19

pgweb · 2026-10-03 12:08:55.967155+08

  • PostgreSQL 17 · Original minor coordinate: 3
  • PostgreSQL 16 · Original minor coordinate: 7
  • PostgreSQL 15 · Original minor coordinate: 11
  • PostgreSQL 14 · Original minor coordinate: 16
  • PostgreSQL 13 · Original minor coordinate: 19

Original security advisory · JSON · All advisories