CVE-2025-8713: PostgreSQL optimizer statistics can expose sampled data within a view, partition, or child table

Published Aug 14, 2025
·
Updated

postgreSQL has been updated to version 16.10 which contains fixes for security vulnerabilities including CVE-2025-8713, CVE-2025-8714 and CVE-2025-8715

Other sources

PostgreSQL optimizer statistics allow a user to read sampled data within a view that the user cannot access. Separately, statistics allow a user to read sampled data that a row security policy intended to hide. PostgreSQL maintains statistics for tables by sampling data available in columns; this data is consulted during the query planning process. Prior to this release, a user could craft a leaky operator that bypassed view access control lists (ACLs) and bypassed row security policies in partitioning or table inheritance hierarchies. Reachable statistics data notably included histograms and most-common-values lists. CVE-2017-7484 and CVE-2019-10130 intended to close this class of vulnerability, but this gap remained. Versions before PostgreSQL 17.6, 16.10, 15.14, 14.19, and 13.22 are affected.

NVD

PostgreSQL optimizer statistics can expose sampled data within a view, partition, or child table

Microsoft

Affected Software

3 affected componentsFixes available
PostgreSQL postgresql<17.6, <16.10, <15.14, <14.19, <13.22
Microsoft azl3 postgresql 16.9-1
Microsoft cbl2 postgresql 14.18-1

Event History

Aug 14, 2025
CVE Published
via MITRE·01:00 PM
Data Sourced
via MITRE·01:00 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:15 PM
DescriptionSeverityWeakness
Sep 4, 2025
Data Sourced
via Microsoft·06:59 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·06:59 AM
Affected Software
Updated
via Microsoft·06:59 AM
Affected Software
Updated
via Microsoft·06:59 AM
DescriptionSeverity
Apr 22, 2026
Data Sourced
via GitLab·08:55 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-8713?

CVE-2025-8713 is classified as a medium severity vulnerability.

2

How do I fix CVE-2025-8713?

To fix CVE-2025-8713, upgrade PostgreSQL to versions 17.6, 16.10, 15.14, 14.19, or 13.22 or later.

3

What type of data can be accessed due to CVE-2025-8713?

CVE-2025-8713 allows unauthorized access to sampled data within views that should otherwise be restricted.

4

Which versions of PostgreSQL are affected by CVE-2025-8713?

CVE-2025-8713 affects PostgreSQL versions up to 17.6, 16.10, 15.14, 14.19, and 13.22.

5

Are row security policies effective against the CVE-2025-8713 vulnerability?

No, CVE-2025-8713 allows leakage of data that row security policies are intended to protect.

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