CVE-2025-8713

Low

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.

SeverityLow
CVSS3.1
Exploit probability—
ProductPostgreSQL
PublishedAug 14, 2025
First seenAug 14, 2025
Weakness typeCWE-1230CWE-1230

How to fix

Update
  • PostgreSQL17.6, 16.10, 15.14, 14.19, 13.22 or later

Affected products

ProductAffected versionsFixed in
PostgreSQL17 ≤ v < 17.6, 16 ≤ v < 16.10, 15 ≤ v < 15.14, 14 ≤ v < 14.19, v < 13.2217.6, 16.10, 15.14, 14.19, 13.22

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.