CVE-2025-8713
Reported by postgresql · Published 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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| postgresql16-upgrade | Amazon Linux | 16.10-1.amzn2023.0.1 |
| postgresql15-pltcl | Amazon Linux | 15.14-1.amzn2023.0.1 |
| postgresql16-docs | Amazon Linux | 16.10-1.amzn2023.0.1 |
| postgresql16-plpython3 | Amazon Linux | 16.10-1.amzn2023.0.1 |
| postgresql15-test | Amazon Linux | 15.14-1.amzn2023.0.1 |
| postgresql17-server-devel | Amazon Linux | 17.6-1.amzn2023.0.1 |
| postgresql15-static | Amazon Linux | 15.14-1.amzn2023.0.1 |
| postgresql16-upgrade-devel | Amazon Linux | 16.10-1.amzn2023.0.1 |
| postgresql16-private-devel | Amazon Linux | 16.10-1.amzn2023.0.1 |
| postgresql15-llvmjit | Amazon Linux | 15.14-1.amzn2023.0.1 |
| postgresql16-pltcl | Amazon Linux | 16.10-1.amzn2023.0.1 |
| postgresql17-server | Amazon Linux | 17.6-1.amzn2023.0.1 |
42 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | PostgreSQL | 17, 16, 15 |
| amazon:2023 | postgresql16-upgrade | 0 |
| amazon:2023 | postgresql15-pltcl | 0 |
| amazon:2023 | postgresql16-docs | 0 |
| amazon:2023 | postgresql16-plpython3 | 0 |
| amazon:2023 | postgresql15-test | 0 |
| amazon:2023 | postgresql17-server-devel | 0 |
| amazon:2023 | postgresql15-static | 0 |
| amazon:2023 | postgresql16-upgrade-devel | 0 |
| amazon:2023 | postgresql16-private-devel | 0 |
| amazon:2023 | postgresql15-llvmjit | 0 |
| amazon:2023 | postgresql16-pltcl | 0 |
| n/a | PostgreSQL | 16, 17, 14 |
| amazon:2023 | postgresql17-server | 0 |
| amazon:2023 | postgresql17-contrib | 0 |
| amazon:2023 | postgresql16 | 0 |
| amazon:2023 | postgresql17-test-rpm-macros | 0 |
| amazon:2023 | postgresql16-test-rpm-macros | 0 |
| amazon:2023 | postgresql17-pltcl | 0 |
| amazon:2023 | postgresql17-plpython3 | 0 |
…and 33 more
Timeline
- Aug 14, 2025 CVE Published
- Aug 14, 2025 CVE Updated
- Aug 15, 2025 EPSS Score (30 in total, the first dated here)
- Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
- Jun 2, 2026 Security Advisory (29 in total, the first dated here)
- Oct 21, 2026 Distribution Patch (22 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-8713
vulnetix vdb fixes CVE-2025-8713
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-8713/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart