CVE-2025-12817

published 13 Nov 2025 · updated 13 Nov 2026

PostgreSQL CREATE STATISTICS does not check for schema CREATE privilege

3.1LowCVSS 3.1EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 13.23, 14.20, 15.15 and 3 more.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
<13.23, >=14 <14.20, >=15 <15.15, >=16 <16.11, >=17 <17.7, >=18 <18.113.23, 14.20, 15.15, 16.11, 17.7, 18.1

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-12817 severity on Zeptric[![CVE-2025-12817](https://zeptric.io/badge/cve/CVE-2025-12817.svg)](https://zeptric.io/cve/CVE-2025-12817)