Name | CVE-2025-8713 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-4273-1 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
postgresql-13 (PTS) | bullseye | 13.16-0+deb11u1 | vulnerable |
bullseye (security) | 13.22-0+deb11u1 | fixed | |
postgresql-15 (PTS) | bookworm | 15.14-0+deb12u1 | fixed |
bookworm (security) | 15.10-0+deb12u1 | vulnerable | |
postgresql-17 (PTS) | trixie | 17.6-0+deb13u1 | fixed |
forky, sid | 17.6-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
postgresql-13 | source | bullseye | 13.22-0+deb11u1 | DLA-4273-1 | ||
postgresql-13 | source | (unstable) | (unfixed) | |||
postgresql-15 | source | bookworm | 15.14-0+deb12u1 | |||
postgresql-15 | source | (unstable) | (unfixed) | |||
postgresql-17 | source | trixie | 17.6-0+deb13u1 | |||
postgresql-17 | source | (unstable) | 17.6-1 |
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/