VDB

CVE-2025-1094

CVE-2025-1094 PUBLISHED CVSS 8.1 HIGH

Reported by postgresql · Published February 13, 2025

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
postgresql-13Chainguard13.20-r0
postgresql14Alpine14.17-r0
postgresql15-llvmjitAmazon Linux15.12-1.amzn2023.0.1
postgresqlAmazon Linux9.2.24-8.amzn2.0.6
postgresql-14Chainguard14.24-r2, 14.17-r0
postgresql15-private-develAmazon Linux15.12-1.amzn2023.0.1
postgresql16-testAmazon Linux16.8-1.amzn2023.0.1
postgresql15-upgrade-develAmazon Linux15.12-1.amzn2023.0.1
postgresql-17Chainguard17.4-r0
postgresql16-contribAmazon Linux16.8-1.amzn2023.0.1
postgresqlBitnami17.3.0, 16.7.0, 15.11.0, 14.16.0, 13.19.0
postgresql-develAmazon Linux9.2.24-8.amzn2.0.6

52 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
n/aPostgreSQL17, 16, 15
n/aPostgreSQL17, 16, 15

Timeline

  • Feb 13, 2025 CVE Published
  • Feb 13, 2025 VulnCheck KEV Exploitation (3 in total, the first dated here)
  • Feb 13, 2025 PoC Published (169 in total, the first dated here)
  • Feb 14, 2025 EPSS Score (30 in total, the first dated here)
  • Mar 1, 2025 Coalition ESS Score (17 in total, the first dated here)
  • Jun 18, 2025 VulnCheck XDB Entry (5 in total, the first dated here)
  • Mar 17, 2026 Security Advisory (44 in total, the first dated here)
  • Oct 20, 2026 Distribution Patch (34 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-1094
vulnetix vdb fixes CVE-2025-1094

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-1094/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›