CVE-2025-12817: PostgreSQL CREATE STATISTICS does not check for schema CREATE privilege
Vulnerability summary
CVE-2025-12817 is a low (CVSS 3.1) Missing Authorization vulnerability in postgresql-17. EPSS estimates a 0.24% chance of exploitation in the next 30 days, higher than 15.6% of scored vulnerabilities.
Not severe (CVSS 3.1, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 56 · Related 32Timeline
- 13-11-2025PublishedVulnerability first disclosed.
- 13-11-2025Last modifiedVulnerability information updated.
Description
Missing authorization in PostgreSQL CREATE STATISTICS command allows a table owner to achieve denial of service against other CREATE STATISTICS users by creating in any schema. A later CREATE STATISTICS for the same name, from a user having the CREATE privilege, would then fail. Versions before PostgreSQL 18.1, 17.7, 16.11, 15.15, 14.20, and 13.23 are affected.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · AlpineEcosystem advisory · calculated3.1LowCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L
- OSV · UbuntuEcosystem advisory · calculated3.1LowCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L
- OSV · DebianEcosystem advisory · calculated3.1LowCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L
- NVDNIST3.1LowCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L
EPSS trend
Probability
0.24%
Chance of exploitation in the next 30 days
Percentile
16%
Versus all other CVEs
30-day change
Increase +0.02 pp
From 0.23% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu8 products
- postgresql-10All versions (No fix recorded)
- postgresql-12All versions (No fix recorded)
- postgresql-14< 14.20-0ubuntu0.22.04.1
- postgresql-16< 16.11-0ubuntu0.24.04.1
- postgresql-17< 17.7-0ubuntu0.25.10.1
Alpine4 products
- postgresql15< 15.15-r0
- postgresql16< 16.11-r0
- postgresql17< 17.7-r0
- postgresql18< 18.1-r0
Debian3 products
- postgresql-15< 15.15-0+deb12u1
- postgresql-17< 17.7-0+deb13u1
- postgresql-18< 18.1-1
3 vendors · 15 products