CVE-2025-12817: PostgreSQL CREATE STATISTICS does not check for schema CREATE privilege

Published Nov 13, 2025
·
Updated

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.

Other sources

PostgreSQL CREATE STATISTICS does not check for schema CREATE privilege

Microsoft

Affected Software

6 affected componentsFixes available
PostgreSQL postgresql<18.1, <17.7, <16.11, <15.15, <14.20, <13.23
Microsoft azl3 postgresql 16.10-1
Microsoft cbl2 postgresql 14.19-1
IBM AIX<=7.2
IBM AIX<=7.3
IBM PowerVM VIOS<=4.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch CVE-2025-12817
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch CVE-2025-12818
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 18.1
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 17.7
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 16.11
  6. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 15.15
  7. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 14.20
  8. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 13.23

Event History

Nov 13, 2025
CVE Published
via MITRE·01:00 PM
Data Sourced
via MITRE·01:00 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:15 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·02:01 PM
DescriptionSeverityAffected Software
Nov 14, 2025
Data Sourced
via Microsoft·02:01 PM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·02:01 PM
DescriptionSeverity
Updated
via Microsoft·02:01 PM
Affected Software
Aug 15, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2025-12817?

CVE-2025-12817 has been classified as a medium severity vulnerability.

2

How do I fix CVE-2025-12817?

To mitigate CVE-2025-12817, ensure that user permissions and privileges are properly configured to control access to the CREATE STATISTICS command.

3

Who is affected by CVE-2025-12817?

CVE-2025-12817 affects users of PostgreSQL versions up to 18.1, 17.7, 16.11, 15.15, 14.20, and 13.23.

4

What does CVE-2025-12817 allow an attacker to do?

CVE-2025-12817 allows a table owner to create statistics in any schema, potentially leading to a denial of service against other CREATE STATISTICS users.

5

Is there a known exploit for CVE-2025-12817?

As of now, there are no publicly available exploits specifically targeting CVE-2025-12817.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203