CVE-2025-8713 Details
Description
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.
A vulnerability exists in PostgreSQL versions prior to 17.6, 16.10, 15.14, 14.19, and 13.22, allowing users to access sampled data through optimizer statistics in ways that bypass view access controls and row security policies. This issue arises from the way PostgreSQL maintains and samples statistical data from table columns for query planning, which can be exploited to read hidden information from views or tables with restrictive access controls. The vulnerability can be particularly problematic in partitioned tables or those using table inheritance, where row security policies are intended to protect sensitive data.
Users can upgrade to PostgreSQL versions 17.6, 16.10, 15.14, 14.19, or 13.22 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 14, 2025CISA-ADP
Assessed Aug 14, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://www.postgresql.org/support/security/CVE-2025-8713/ | PostgreSQL | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1230 | Exposure of Sensitive Information Through Metadata | PostgreSQL |
Affected Products
| Product | Versions |
|---|---|
| PostgreSQL | < 17.6 < 16.10 < 15.14 < 14.19 < 13.22 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | PostgreSQL |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 14, 2025 | New CVE Received | PostgreSQL |
Volerion