CVE-2025-8713

NameCVE-2025-8713
DescriptionPostgreSQL 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-4273-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
postgresql-13 (PTS)bullseye13.16-0+deb11u1vulnerable
bullseye (security)13.22-0+deb11u1fixed
postgresql-15 (PTS)bookworm15.14-0+deb12u1fixed
bookworm (security)15.10-0+deb12u1vulnerable
postgresql-17 (PTS)trixie17.6-0+deb13u1fixed
forky, sid17.6-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
postgresql-13sourcebullseye13.22-0+deb11u1DLA-4273-1
postgresql-13source(unstable)(unfixed)
postgresql-15sourcebookworm15.14-0+deb12u1
postgresql-15source(unstable)(unfixed)
postgresql-17sourcetrixie17.6-0+deb13u1
postgresql-17source(unstable)17.6-1

Notes

https://www.postgresql.org/about/news/postgresql-176-1610-1514-1419-1322-and-18-beta-3-released-3118/
https://www.postgresql.org/support/security/CVE-2025-8713/

Search for package or bug name: Reporting problems