cbcvebase.
CVE-2025-8713
published 2025-08-14

CVE-2025-8713: 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…

PriorityP414low3.1CVSS 3.1
AVNACHPRLUINSUCLINAN
EPSS
0.22%
12.5th percentile
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.

Affected

5 ranges
VendorProductVersion rangeFixed in
debianpostgresql-13< postgresql-13 13.22-0+deb11u1 (bullseye)postgresql-13 13.22-0+deb11u1 (bullseye)
debianpostgresql-15< postgresql-13 13.22-0+deb11u1 (bullseye)postgresql-13 13.22-0+deb11u1 (bullseye)
debianpostgresql-17< postgresql-13 13.22-0+deb11u1 (bullseye)postgresql-13 13.22-0+deb11u1 (bullseye)
msrcazl3_postgresql_16.9-1_on_azure_linux_3.0
msrccbl2_postgresql_14.18-1_on_cbl_mariner_2.0

CVSS provenance

nvdv3.13.1LOWCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
osv7.5HIGH
vendor_debian7.5HIGH
vendor_redhat7.5HIGH
vendor_msrc3.1LOW
vendor_ubuntu3.1LOW
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.