CVE-2025-12817
LOW3.1EPSS 0.06%PostgreSQL CREATE STATISTICS does not check for schema CREATE privilege
Published: 11/13/2025Modified: 4/28/2026
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.
Affected packages (10)
- Alpine/postgresql15from 0, < 15.15-r0
- Alpine/postgresql16from 0, < 16.11-r0
- Alpine/postgresql17from 0, < 17.7-r0
- Alpine/postgresql18from 0, < 18.1-r0
- Bitnami/postgresqlfrom 0, < 13.23.0, >= 14.0.0, < 14.20.0, >= 15.0.0, < 15.15.0, >= 16.0.0, < 16.11.0, >= 17.0.0, < 17.7.0, >= 18.0.0, < 18.1.0
- Debian/postgresql-13from 0, < 13.23-0+deb11u1
- Debian/postgresql-13from 0, < 13.23-0+deb11u1
- Debian/postgresql-15from 0, < 15.15-0+deb12u1
- Debian/postgresql-17from 0, < 17.7-0+deb13u1
- Debian/postgresql-18from 0, < 18.1-1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | LOW3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L |