Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2025-8713
August 14, 2025
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.
Affected Packages
https://github.com/postgres/postgres.git (GITHUB):
Affected version(s) >=REL_14_0 <REL_14_19
Fix Suggestion:
Update to version REL_14_19
https://github.com/postgres/postgres.git (GITHUB):
Affected version(s) >=REL_15_0 <REL_15_14
Fix Suggestion:
Update to version REL_15_14
https://github.com/postgres/postgres.git (GITHUB):
Affected version(s) >=REL_17_0 <REL_17_6
Fix Suggestion:
Update to version REL_17_6
https://github.com/postgres/postgres.git (GITHUB):
Affected version(s) >=REL_13_0 <REL_13_22
Fix Suggestion:
Update to version REL_13_22
https://github.com/postgres/postgres.git (GITHUB):
Affected version(s) >=REL_16_0 <REL_16_10
Fix Suggestion:
Update to version REL_16_10
Do you need more information?
Contact Us
CVSS v4
Base Score:
2.3
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
3.1
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Exposure of Sensitive Information Through Metadata
EPSS
Base Score:
0.03