CVE-2025-1094: postgresql-12
Vulnerability summary
CVE-2025-1094 is a high (CVSS 8.1) vulnerability in postgresql-12. EPSS estimates a 90.03% chance of exploitation in the next 30 days, higher than 99.7% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 0 · Related 2Timeline
- 13-02-2025PublishedVulnerability first disclosed.
- 14-03-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · AlpineEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · Red hatEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVDNIST8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
90.03%
Chance of exploitation in the next 30 days
Percentile
100%
Versus all other CVEs
30-day change
0.00 pp
From 90.03% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundBeyondTrust Privileged Remote Access (PRA) and Remote Support (RS) unauthenticated Remote Code Execution
exploit/linux/http/beyondtrust_pra_rs_unauth_rce
Maturity: weaponized
Weaknesses
CWE · root causeAffected systems
Suse82 products
- postgresql13&distro=SUSE Enterprise Storage 7.1< 13.20-150200.5.69.1
- postgresql13&distro=SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS< 13.20-150200.5.69.1
- postgresql13&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS< 13.20-150200.5.69.1
- postgresql13&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS< 13.20-150200.5.69.1
- postgresql13&distro=SUSE Linux Enterprise Server 12 SP5-LTSS< 13.20-3.60.1
Redhat48 products
- libpq< 0:12.7-1.el8_2.2 | < 0:13.20-1.el9_0 | < 0:13.20-1.el9_4 | < 0:13.20-1.el9_2 | < 0:13.20-1.el8_4 | < 0:13.20-1.el8_10 | < 0:13.20-1.el9_5 | < 0:13.20-1.el8_8 | < 0:13.20-1.el8_6
- libpq-debuginfo< 0:12.7-1.el8_2.2 | < 0:13.20-1.el9_0 | < 0:13.20-1.el9_4 | < 0:13.20-1.el9_2 | < 0:13.20-1.el8_4 | < 0:13.20-1.el8_10 | < 0:13.20-1.el9_5 | < 0:13.20-1.el8_8 | < 0:13.20-1.el8_6
- libpq-debugsource< 0:12.7-1.el8_2.2 | < 0:13.20-1.el9_0 | < 0:13.20-1.el9_4 | < 0:13.20-1.el9_2 | < 0:13.20-1.el8_4 | < 0:13.20-1.el8_10 | < 0:13.20-1.el9_5 | < 0:13.20-1.el8_8 | < 0:13.20-1.el8_6
- libpq-devel< 0:12.7-1.el8_2.2 | < 0:13.20-1.el9_0 | < 0:13.20-1.el9_4 | < 0:13.20-1.el9_2 | < 0:13.20-1.el8_4 | < 0:13.20-1.el8_10 | < 0:13.20-1.el9_5 | < 0:13.20-1.el8_8 | < 0:13.20-1.el8_6
- libpq-devel-debuginfo< 0:12.7-1.el8_2.2 | < 0:13.20-1.el9_0 | < 0:13.20-1.el9_4 | < 0:13.20-1.el9_2 | < 0:13.20-1.el8_4 | < 0:13.20-1.el8_10 | < 0:13.20-1.el9_5 | < 0:13.20-1.el8_8 | < 0:13.20-1.el8_6
Opensuse10 products
- postgresql13&distro=openSUSE Leap 15.6< 13.20-150600.14.5.2
- postgresql13&distro=openSUSE Tumbleweed< 13.19-1.1
- postgresql14&distro=openSUSE Leap 15.6< 14.17-150600.16.14.1
- postgresql14&distro=openSUSE Tumbleweed< 14.16-1.1
- postgresql15&distro=openSUSE Leap 15.6< 15.12-150600.16.14.1
Chainguard8 products
- postgresql-12All versions (No fix recorded)
- postgresql-13< 13.20-r0
- postgresql-14< 14.17-r0
- postgresql-14-clientAll versions (No fix recorded) | < 14.24-r2
- postgresql-15< 15.12-r0
Wolfi8 products
- postgresql-12All versions (No fix recorded)
- postgresql-13< 13.20-r0
- postgresql-14< 14.17-r0
- postgresql-14-clientAll versions (No fix recorded) | < 14.24-r2
- postgresql-15< 15.12-r0
Ubuntu6 products
- postgresql-10< 10.23-0ubuntu0.18.04.2+esm3
- postgresql-12< 12.22-0ubuntu0.20.04.2
- postgresql-14< 14.17-0ubuntu0.22.04.1
- postgresql-16< 16.8-0ubuntu0.24.04.1
- postgresql-9.3All versions (No fix recorded)
Alpine4 products
- postgresql14< 14.17-r0
- postgresql15< 15.11-r0
- postgresql16< 16.8-r0
- postgresql17< 17.4-r0
Debian3 products
- postgresql-13< 13.19-0+deb11u1 | < 13.20-0+deb11u1
- postgresql-15< 15.11-0+deb12u1
- postgresql-17< 17.3-1
Mageia2 products
- postgresql13< 13.19-1.mga9
- postgresql15< 15.11-1.mga9
9 vendors · 171 products
References
103 linksShow all 100 references
Showing 100 of 103. Use Open JSON for the complete list.