CVE-2025-1094
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| postgresql-13 | Chainguard | 13.20-r0 |
| postgresql14 | Alpine | 14.17-r0 |
| postgresql15-llvmjit | Amazon Linux | 15.12-1.amzn2023.0.1 |
| postgresql | Amazon Linux | 9.2.24-8.amzn2.0.6 |
| postgresql-14 | Chainguard | 14.24-r2, 14.17-r0 |
| postgresql15-private-devel | Amazon Linux | 15.12-1.amzn2023.0.1 |
| postgresql16-test | Amazon Linux | 16.8-1.amzn2023.0.1 |
| postgresql15-upgrade-devel | Amazon Linux | 15.12-1.amzn2023.0.1 |
| postgresql-17 | Chainguard | 17.4-r0 |
| postgresql16-contrib | Amazon Linux | 16.8-1.amzn2023.0.1 |
| postgresql | Bitnami | 17.3.0, 16.7.0, 15.11.0, 14.16.0, 13.19.0 |
| postgresql-devel | Amazon Linux | 9.2.24-8.amzn2.0.6 |
52 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | PostgreSQL | 17, 16, 15 |
| n/a | PostgreSQL | 17, 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
References
- https://lists.debian.org/debian-lts-announce/2025/02/msg00015.html url
- http://www.openwall.com/lists/oss-security/2025/02/16/3 url
- http://www.openwall.com/lists/oss-security/2025/02/20/1 url
- https://lists.debian.org/debian-lts-announce/2025/02/msg00024.html url
- https://security.netapp.com/advisory/ntap-20250221-0010/ url