3.1

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

Deferred
AliasesALPINE-CVE-2025-8713UBUNTU-CVE-2025-8713DEBIAN-CVE-2025-8713
Published 14-08-2025Last modified 14-08-2025

Vulnerability summary

CVE-2025-8713 is a low (CVSS 3.1) vulnerability in postgresql-17. EPSS estimates a 0.27% chance of exploitation in the next 30 days, higher than 20.9% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 3.1, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
3.1/10
010
Low · v3.1 (CVE.org)
EPSS score
0.27%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 40 · Related 25

Timeline

  1. 14-08-2025
    PublishedVulnerability first disclosed.
  2. 14-08-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.27%

Chance of exploitation in the next 30 days

Percentile

21%

Versus all other CVEs

30-day change

Increase +0.01 pp

From 0.26% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu7 products
  • postgresql-10All versions (No fix recorded)
  • postgresql-12All versions (No fix recorded)
  • postgresql-14< 14.19-0ubuntu0.22.04.1
  • postgresql-16< 16.10-0ubuntu0.24.04.1
  • postgresql-17< 17.6-1
Alpine3 products
  • postgresql15< 15.14-r0 | < 15.17-r0
  • postgresql16< 16.10-r0
  • postgresql17< 17.6-r0
Debian2 products
  • postgresql-15< 15.14-0+deb12u1
  • postgresql-17< 17.6-0+deb13u1

3 vendors · 12 products

References

8 links