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

- Priority: **Prioritise**
- Reason: Weaponized exploit (Metasploit, 16-12-2024)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2025-02-13 · Modified: 2026-11-03
- Aliases: ALPINE-CVE-2025-1094, MGASA-2025-0064, SUSE-SU-2025:00614-1, SUSE-SU-2025:0606-1, SUSE-SU-2025:0614-1, SUSE-SU-2025:0615-1, SUSE-SU-2025:0616-1, SUSE-SU-2025:0618-1, SUSE-SU-2025:0619-1, SUSE-SU-2025:0631-1, SUSE-SU-2025:0632-1, SUSE-SU-2025:0633-1, SUSE-SU-2025:0634-1, SUSE-SU-2025:0635-1, SUSE-SU-2025:0636-1, SUSE-SU-2025:0637-1, SUSE-SU-2025:0655-1, RHSA-2025:1720, RHSA-2025:1721, RHSA-2025:1722, RHSA-2025:1723, RHSA-2025:1724, RHSA-2025:1725, RHSA-2025:1726, RHSA-2025:1727, RHSA-2025:1728, RHSA-2025:1729, RHSA-2025:1730, RHSA-2025:1731, RHSA-2025:1732, RHSA-2025:1733, RHSA-2025:1735, RHSA-2025:1736, RHSA-2025:1737, RHSA-2025:1738, RHSA-2025:1739, RHSA-2025:1740, RHSA-2025:1741, RHSA-2025:1742, RHSA-2025:1743, RHSA-2025:1744, RHSA-2025:1745, RHSA-2025:3050, RHSA-2025:3062, RHSA-2025:3063, RHSA-2025:3064, RHSA-2025:3082, RHSA-2025:3978, UBUNTU-CVE-2025-1094, USN-7315-1, USN-7315-2, DEBIAN-CVE-2025-1094, DLA-4052-1, DLA-4052-2, CGA-2h2m-c3w3-8c26, CGA-3j5q-q255-9f9x, CGA-3qm8-5p99-hhfm, CGA-6m3g-h78w-6mpq, CGA-6v4g-94x3-p4gq, CGA-7rf2-229q-h76w, CGA-8jpm-vg85-xfw8, CGA-98q6-r69j-p28q, CGA-g42m-r398-x8w5, CGA-h6g5-gvx5-jxh3, CGA-hv4r-gpvj-gwc4, CGA-r24r-2pf4-h6xm, CGA-v74p-fqwf-pjvr, CGA-v87w-2jhr-xc3w, CGA-x7vm-h6p9-cj72, SUSE-SU-2025:0737-1, openSUSE-SU-2025:14805-1, openSUSE-SU-2025:14806-1, openSUSE-SU-2025:14807-1, openSUSE-SU-2025:14808-1, openSUSE-SU-2025:14810-1
- Record: https://cvemate.com/vulnerability/CVE-2025-1094 · JSON: https://cvemate.com/vulnerability/CVE-2025-1094/json

## Description

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

## Signals

- CVSS: 8.1 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 85.361%, percentile 99.718%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (metasploit)

## Affected (first 20 of 172)

- alpine postgresql13 (Alpine Linux): \< 13.20-r0
- alpine postgresql14 (Alpine Linux): \< 14.17-r0
- alpine postgresql15 (Alpine Linux): \< 15.11-r0
- alpine postgresql16 (Alpine Linux): \< 16.8-r0
- alpine postgresql17 (Alpine Linux): \< 17.4-r0
- chainguard postgresql-12 (Chainguard): All versions (No fix recorded)
- chainguard postgresql-13 (Chainguard): \< 13.20-r0
- chainguard postgresql-14 (Chainguard): \< 14.17-r0
- chainguard postgresql-14-client (Chainguard): All versions (No fix recorded) \| \< 14.24-r2
- chainguard postgresql-15 (Chainguard): \< 15.12-r0
- chainguard postgresql-15-client (Chainguard): \< 15.19-r2
- chainguard postgresql-16 (Chainguard): \< 16.8-r0
- chainguard postgresql-17 (Chainguard): \< 17.4-r0
- wolfi postgresql-12 (Wolfi): All versions (No fix recorded)
- wolfi postgresql-13 (Wolfi): \< 13.20-r0
- wolfi postgresql-14 (Wolfi): \< 14.17-r0
- wolfi postgresql-14-client (Wolfi): All versions (No fix recorded) \| \< 14.24-r2
- wolfi postgresql-15 (Wolfi): \< 15.12-r0
- wolfi postgresql-15-client (Wolfi): \< 15.19-r2
- wolfi postgresql-16 (Wolfi): \< 16.8-r0

## References (first 20 of 103)

- <https://www.postgresql.org/support/security/CVE-2025-1094/>
- <https://lists.debian.org/debian-lts-announce/2025/02/msg00015.html>
- <http://www.openwall.com/lists/oss-security/2025/02/16/3>
- <http://www.openwall.com/lists/oss-security/2025/02/20/1>
- <https://lists.debian.org/debian-lts-announce/2025/02/msg00024.html>
- <https://security.netapp.com/advisory/ntap-20250221-0010/>
- <https://security.alpinelinux.org/vuln/CVE-2025-1094>
- <https://advisories.mageia.org/MGASA-2025-0064.html>
- <https://bugs.mageia.org/show_bug.cgi?id=34018>
- <https://www.postgresql.org/about/news/postgresql-173-167-1511-1416-and-1319-released-3015/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202500614-1/>
- <https://bugzilla.suse.com/1237093>
- <https://www.suse.com/security/cve/CVE-2025-1094>
- <https://www.suse.com/support/update/announcement/2025/suse-su-20250606-1/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-20250614-1/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-20250615-1/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-20250616-1/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-20250618-1/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-20250619-1/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-20250631-1/>

---

Data as of 2026-12-05T04:21:17.878Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
