CVE-2025-1094postgresql15 Vulnerability
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.
Published Feb 13, 2025 · Updated Nov 11, 2026 · Also known as ALPINE-CVE-2025-1094, BELL-CVE-2025-1094, BIT-postgresql-2025-1094, 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, CLEANSTART-2026-DU35799, CLEANSTART-2026-ZC09647, CLSA-2025-1742471100, CLSA-2025-1742471210, CLSA-2025-1742924432, CLSA-2025-1761323193, CLSA-2025-1764858353, CLSA-2025-1764868292, DEBIAN-CVE-2025-1094, DLA-4052-1, DLA-4052-2, ECHO-0e2b-89cf-14bc, GHSA-mhw9-x46c-v6q4, MGASA-2025-0064, MINI-37m4-7jc9-882v, MINI-4jfr-pvvr-xx6h, MINI-jm43-hwm4-rgm8, MINI-w7m6-fc7p-6j27, MINI-xmrh-g664-jm25, OESA-2025-1152, OESA-2025-1153, OESA-2025-1154, OESA-2025-1155, OESA-2025-1227, OESA-2025-1228, OESA-2025-1229, OESA-2025-1230, 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, SUSE-SU-2025:0737-1, UBUNTU-CVE-2025-1094, USN-7315-2, 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
Key Facts
Patch immediately- CVE-2025-1094 is a high-severity vulnerability (CVSS 8.1 v3.1) affecting postgresql15 (alpaquita), postgresql17 (alpaquita), postgresql13 (alpine) and 22 more products.
- It is exploited in the wild, listed in Industry KEV feed since Feb 13, 2025. A public exploit is reported by tracking sources, but no code link is listed yet.
- EPSS estimates a 34% probability of exploitation in the next 30 days.
- Fixed versions are available, including libecpg-13 13.19-r0, libecpg-14 14.16-r0, libecpg-15 15.11-r0.
- Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Scores
CVSS v3.1
8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
34%
Higher than 98.7% of all scored CVEs
Exploit maturity
Exploited (KEV)
ATLAS score
63/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Feb 13, 2025
0 days after publication
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Exploited (KEV)
Public exploit code
1
Proof-of-concept links
In-the-wild evidence
3
Reports of active use
Advisories And Exploit References
- advisoryhttps://docs.bell-sw.com/security/cves/CVE-2025-1094
- advisoryhttps://security.alpinelinux.org/vuln/CVE-2025-1094
- advisoryhttps://security-tracker.debian.org/tracker/CVE-2025-1094
- advisoryhttps://ubuntu.com/security/CVE-2025-1094
- advisoryhttps://www.cve.org/CVERecord?id=CVE-2025-1094
- advisoryRHSA-2025:1720
Description
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.
Known-Exploited Catalog Listings
| Catalog | Added | Remediation due | Ransomware use |
|---|---|---|---|
| Industry KEV feed | Feb 13, 2025 | n/a | Not reported |
Affected Products
1,295 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| postgresql15alpaquita | >= 15.2-r0 | 15.11-r0 |
| postgresql17alpaquita | >= 17.0-r1 | 17.4-r0 |
| postgresql13alpine | See advisory | 13.20-r0 |
| postgresql14alpine | See advisory | 14.17-r0 |
| postgresql16alpine | See advisory | 16.8-r0 |
Patched Releases
libecpg-13
13.19-r0
libecpg-14
14.16-r0
libecpg-15
15.11-r0
libecpg-16
16.7-r0
libecpg-17
17.3-r0
libecpg-compat3
10.23-0ubuntu0.18.04.2+esm3, 10.23-0ubuntu0.18.04.2+tuxcare.els5, 11.22-0+deb10u2+tuxcare.els1, 9.5.25-0ubuntu0.16.04.1+tuxcare.els9
libecpg-dev
10.23-0ubuntu0.18.04.2+esm3, 10.23-0ubuntu0.18.04.2+tuxcare.els5, 11.22-0+deb10u2+tuxcare.els1, 9.5.25-0ubuntu0.16.04.1+tuxcare.els9
libecpg6
10.23-0ubuntu0.18.04.2+esm3, 10.23-0ubuntu0.18.04.2+tuxcare.els5, 11.22-0+deb10u2+tuxcare.els1, 17.3-1.1, 17.4-150200.5.10.1, 17.4-150600.13.10.1, 17.4-3.10.1, 9.5.25-0ubuntu0.16.04.1+tuxcare.els9
libecpg6-32bit
17.3-1.1, 17.4-150600.13.10.1, 17.4-3.10.1
libpgtypes3
10.23-0ubuntu0.18.04.2+esm3, 10.23-0ubuntu0.18.04.2+tuxcare.els5, 11.22-0+deb10u2+tuxcare.els1, 9.5.25-0ubuntu0.16.04.1+tuxcare.els9
libpq
0:13.20-1.el8_10, 0:13.20-1.el9_4, 13.20-1.el8_10, 13.20-1.el9_5, 13.20-1.oe2203sp3, 13.20-1.oe2203sp4, 13.5-1.el9.tuxcare.els1, 15.12-1.oe2403, 15.12-1.oe2403sp1, 16.8-1.amzn2023.0.1
libpq-13
13.19-r0
libpq-14
14.16-r0
libpq-15
15.11-r0
libpq-16
16.7-r0
libpq-17
17.3-r0
libpq-dev
10.23-0ubuntu0.18.04.2+esm3, 10.23-0ubuntu0.18.04.2+tuxcare.els5, 11.22-0+deb10u2+tuxcare.els1, 9.5.25-0ubuntu0.16.04.1+tuxcare.els9
libpq-devel
13.20-1.el8_10, 13.20-1.el9_5, 13.5-1.el9.tuxcare.els1, 16.8-1.amzn2023.0.1
libpq5
10.23-0ubuntu0.18.04.2+esm3, 10.23-0ubuntu0.18.04.2+tuxcare.els5, 11.22-0+deb10u2+tuxcare.els1, 17.3-1.1, 17.4-150200.5.10.1, 17.4-150600.13.10.1, 17.4-3.10.1, 9.5.25-0ubuntu0.16.04.1+tuxcare.els9
libpq5-32bit
17.3-1.1, 17.4-150200.5.10.1, 17.4-150600.13.10.1, 17.4-3.10.1
pg_repack
1.4.6-3.module_el8.6.0+2760+1746ec94, 1.4.6-3.module_el8.9.0+3704+f1f917ce, 1.4.6-3.module+el8.10.0+1862+29bef648, 1.4.6-3.module+el8.9.0+90098+1560b6c2, 1.4.6-3.module+el8.9.0+90107+c48bae1a, 1.4.8-1.module_el8.9.0+3706+885c732e, 1.4.8-1.module+el8.10.0+1622+bd25b19c, 1.4.8-1.module+el8.9.0+1525+fc91df60, 1.4.8-1.module+el8.9.0+90110+d8a562d5, 1.4.8-2.module_el9.5.0+120+4533eb20, 1.4.8-2.module+el9.5.0+90424+300303e9, 1.4.8-2.module+el9.6.0+32420+37c3e639, 1.5.1-1.module_el8.10.0+3930+ecf33554, 1.5.1-1.module_el9.5.0+128+1095dce2, 1.5.1-1.module+el8.10.0+1900+d7340343, 1.5.1-1.module+el8.10.0+90451+109c7b24, 1.5.1-1.module+el9.5.0+90450+cb2feb1d, 1.5.1-1.module+el9.6.0+32421+7c015469
pgaudit
1.4.0-7.module_el8.10.0+3889+48cb11fb.alma.1, 1.4.0-7.module+el8.10.0+90397+67dad74f, 1.4.0-7.module+el8.9.0+1735+a332307b, 1.5.0-1.module_el8.6.0+2760+1746ec94, 1.5.0-1.module+el8.9.0+1594+4a6adae9, 1.5.0-1.module+el8.9.0+90098+1560b6c2, 1.7.0-1.module_el8.9.0+3706+885c732e, 1.7.0-1.module_el9.3.0+52+21733919, 1.7.0-1.module+el8.9.0+1525+fc91df60, 1.7.0-1.module+el8.9.0+90110+d8a562d5, 1.7.0-1.module+el9.2.0+21134+ceb95ed9, 1.7.0-1.module+el9.6.0+32420+37c3e639, 16.0-1.module_el8.10.0+3798+606ebb9f, 16.0-1.module_el9.4.0+66+eb9878bc, 16.0-1.module+el8.10.0+1622+bd25b19c, 16.0-1.module+el8.10.0+1858+fcc46a79, 16.0-1.module+el8.10.0+90275+c15b12cb, 16.0-1.module+el9.4.0+90394+9e4f3cba, 16.0-1.module+el9.6.0+32421+7c015469
pgvector
0.6.2-1.module_el9.5.0+120+4533eb20, 0.6.2-1.module+el9.5.0+90425+0820a3c3
postgres-decoderbufs
0.10.0-2.module_el8.9.0+3704+f1f917ce, 0.10.0-2.module+el8.10.0+1862+29bef648, 0.10.0-2.module+el8.9.0+1594+4a6adae9, 0.10.0-2.module+el8.9.0+90098+1560b6c2, 0.10.0-2.module+el8.9.0+90107+c48bae1a, 1.9.7-1.Final.module_el8.9.0+3706+885c732e, 1.9.7-1.Final.module_el9.3.0+52+21733919, 1.9.7-1.Final.module+el8.9.0+1525+fc91df60, 1.9.7-1.Final.module+el8.9.0+90110+d8a562d5, 1.9.7-1.Final.module+el9.2.0+21134+ceb95ed9, 1.9.7-1.Final.module+el9.6.0+32420+37c3e639, 2.4.0-1.Final.module_el8.10.0+3798+606ebb9f, 2.4.0-1.Final.module_el9.4.0+66+eb9878bc, 2.4.0-1.Final.module+el8.10.0+1622+bd25b19c, 2.4.0-1.Final.module+el8.10.0+90275+c15b12cb, 2.4.0-1.Final.module+el9.4.0+90394+9e4f3cba, 2.4.0-1.Final.module+el9.6.0+32421+7c015469
PostgreSQL
0:13.20-1.el9_5, 0:9.2.24-9.el7_9.3, 12.22-3.module_el8.10.0+3971+15b81305, 12.22-3.module+el8.10.0+1942+05740481, 12.22-3.module+el8.10.0+90540+03ca8735, 13.11-1.el9_2.tuxcare.els1, 13.19-1.oe2203sp3, 13.19-1.oe2203sp4, 13.19.0, 13.20-1.el9_5, 13.20-1.module_el8.10.0+3967+334cd65a, 13.20-1.module+el8.10.0+1939+bc4b0228, 13.20-1.module+el8.10.0+90526+050ec11b, 14.16-1, 14.16.0, 15.11-1.oe2403, 15.11-1.oe2403sp1, 15.11.0, 15.12-1.module_el8.10.0+3968+5ca3d05a, 15.12-1.module_el9.5.0+140+e3f03d9d, 15.12-1.module+el8.10.0+1940+835325f2, 15.12-1.module+el8.10.0+90529+917d02ef, 15.12-1.module+el9.5.0+90527+e70c9846, 16.7-1, 16.7.0, 16.8-1.module_el8.10.0+3969+2c3c9353, 16.8-1.module_el9.5.0+141+f4b0f9b7, 16.8-1.module+el8.10.0+1941+ca32dfe4, 16.8-1.module+el8.10.0+90530+9eb57222, 16.8-1.module+el9.5.0+90528+7da48ca1, 17.3.0, 9.2.24-8.amzn2.0.6, 9.2.24-9.0.5.el7_9, 9.2.24-9.el7_9.tuxcare.els5, 13.19, 14.16, 15.11, 16.7, 17.3
Timeline
Publicly disclosed
Feb 13, 2025
Added to Industry KEV feed
Feb 13, 2025
Last updated
Nov 11, 2026
Weakness Type
- CWE-149 Improper Neutralization of Quoting Syntax
References
- advisorydocs.bell-sw.com · CVE-2025-1094
- advisorysecurity.alpinelinux.org · CVE-2025-1094
- advisorysecurity-tracker.debian.org · CVE-2025-1094
- advisoryubuntu.com · CVE-2025-1094
- advisorycve.org · CVERecord
FAQ
Common Questions.
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.
Affected: postgresql15 (alpaquita) versions >= 15.2-r0; postgresql17 (alpaquita) versions >= 17.0-r1; postgresql13 (alpine), among others. The full list is in the CVE brief.
It is exploited in the wild, listed in Industry KEV feed since Feb 13, 2025.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
A public exploit is reported by tracking sources, but no code link is listed yet.
Fixed versions are available, including libecpg-13 13.19-r0, libecpg-14 14.16-r0, libecpg-15 15.11-r0.
Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Is CVE-2025-1094 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo