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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
8.1 HIGH
NETWORK
HIGH
NONE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
PostgreSQLCNA
8.1 HIGH
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA-ADPADP
---
---
CVEADP
---
---
Awaiting analysis
This vulnerability is currently awaiting analysis.
Base Score
CVSS 3.x
EPSS Score
Percentile: 99%
Debian logo
Debian Releases
Debian Product
Codename
postgresql-13
bullseye
vulnerable
bullseye (security)
13.20-0+deb11u1
fixed
postgresql-15
bookworm
15.12-0+deb12u2
fixed
bookworm (security)
vulnerable
postgresql-17
sid
17.4-1
fixed
trixie
17.4-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
postgresql-10
oracular
dne
noble
dne
jammy
dne
focal
dne
bionic
needs-triage
postgresql-12
oracular
dne
noble
dne
jammy
dne
focal
Fixed 12.22-0ubuntu0.20.04.2
released
postgresql-14
oracular
dne
noble
dne
jammy
Fixed 14.17-0ubuntu0.22.04.1
released
focal
dne
postgresql-16
oracular
Fixed 16.8-0ubuntu0.24.10.1
released
noble
Fixed 16.8-0ubuntu0.24.04.1
released
jammy
dne
focal
dne
postgresql-17
oracular
dne
noble
dne
jammy
dne
focal
dne
postgresql-9.3
oracular
dne
noble
dne
jammy
dne
focal
dne
postgresql-9.5
oracular
dne
noble
dne
jammy
dne
focal
dne
xenial
needs-triage