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

- Severity: Low 3.1 (CVSS:3.1, scored by PostgreSQL) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 21% of CVEs (2026-12-01)
- Published: 2025-08-14T13:00:05.807Z
- Modified: 2026-06-17T10:07:29.480Z
- Also known as: BIT-POSTGRESQL-2025-8713
- Weaknesses: CWE-1230
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: PostgreSQL

## 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.

(As written by CVE List.)

## Affected

- PostgreSQL: from 17 before 17.6; from 16 before 16.10; from 15 before 15.14; from 14 before 14.19; before 13.22
- postgresql (Bitnami): before 13.22.0; from 14.0.0 before 14.19.0; from 15.0.0 before 15.14.0; from 16.0.0 before 16.10.0; from 17.0.0 before 17.6.0

## Every score

- PostgreSQL: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Bitnami Vulnerability Database: rating Low

## References

- <https://www.postgresql.org/support/security/CVE-2025-8713/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-8713> (web)

## Sources

- CVE List: [CVE-2025-8713](https://www.cve.org/CVERecord?id=CVE-2025-8713), CVE Terms of Use, modified 2025-08-14
- NVD: [CVE-2025-8713](https://nvd.nist.gov/vuln/detail/CVE-2025-8713), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-POSTGRESQL-2025-8713](https://osv.dev/vulnerability/BIT-POSTGRESQL-2025-8713), Apache-2.0, modified 2025-08-18

---

Page: https://cve.day/CVE-2025-8713 · Whole record: https://cve.day/CVE-2025-8713.json · Rebuilt by cve.day 2026-11-25T22:59:02.505Z
