VDB

CVE-2025-8713

CVE-2025-8713 PUBLISHED CVSS 3.1 LOW

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.

PackageEcosystemFixed in
postgresql16-upgradeAmazon Linux16.10-1.amzn2023.0.1
postgresql15-pltclAmazon Linux15.14-1.amzn2023.0.1
postgresql16-docsAmazon Linux16.10-1.amzn2023.0.1
postgresql16-plpython3Amazon Linux16.10-1.amzn2023.0.1
postgresql15-testAmazon Linux15.14-1.amzn2023.0.1
postgresql17-server-develAmazon Linux17.6-1.amzn2023.0.1
postgresql15-staticAmazon Linux15.14-1.amzn2023.0.1
postgresql16-upgrade-develAmazon Linux16.10-1.amzn2023.0.1
postgresql16-private-develAmazon Linux16.10-1.amzn2023.0.1
postgresql15-llvmjitAmazon Linux15.14-1.amzn2023.0.1
postgresql16-pltclAmazon Linux16.10-1.amzn2023.0.1
postgresql17-serverAmazon Linux17.6-1.amzn2023.0.1

42 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
3.1
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N

Affected products

VendorProductVersions
n/aPostgreSQL17, 16, 15
amazon:2023postgresql16-upgrade0
amazon:2023postgresql15-pltcl0
amazon:2023postgresql16-docs0
amazon:2023postgresql16-plpython30
amazon:2023postgresql15-test0
amazon:2023postgresql17-server-devel0
amazon:2023postgresql15-static0
amazon:2023postgresql16-upgrade-devel0
amazon:2023postgresql16-private-devel0
amazon:2023postgresql15-llvmjit0
amazon:2023postgresql16-pltcl0
n/aPostgreSQL16, 17, 14
amazon:2023postgresql17-server0
amazon:2023postgresql17-contrib0
amazon:2023postgresql160
amazon:2023postgresql17-test-rpm-macros0
amazon:2023postgresql16-test-rpm-macros0
amazon:2023postgresql17-pltcl0
amazon:2023postgresql17-plpython30

…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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›