{"id":"CVE-2025-8713","state":"PUBLISHED","title":"PostgreSQL optimizer statistics can expose sampled data within a view, partition, or child table","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.","publishedAt":"2025-08-14T13:00:05.807Z","updatedAt":"2025-08-14T19:51:04.708Z","severity":{"score":3.1,"label":"Low","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","source":"PostgreSQL"},"assigner":"PostgreSQL","products":["n/a PostgreSQL"],"affected":[{"vendor":"n/a","product":"PostgreSQL","defaultStatus":"unaffected","versions":[{"version":"17","status":"affected","lessThan":"17.6","versionType":"rpm"},{"version":"16","status":"affected","lessThan":"16.10","versionType":"rpm"},{"version":"15","status":"affected","lessThan":"15.14","versionType":"rpm"},{"version":"14","status":"affected","lessThan":"14.19","versionType":"rpm"},{"version":"0","status":"affected","lessThan":"13.22","versionType":"rpm"}]}],"references":["https://www.postgresql.org/support/security/CVE-2025-8713/"],"weaknesses":["CWE-1230"],"ingestedAt":"2026-10-29T20:10:04.440Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/8xxx/CVE-2025-8713.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-8713","state":"PUBLISHED","datePublished":"2025-08-14T13:00:05.807Z","dateUpdated":"2025-08-14T19:51:04.708Z","assignerShortName":"PostgreSQL","assignerOrgId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","dateReserved":"2025-08-07T16:39:46.270Z"},"containers":{"cna":{"title":"PostgreSQL optimizer statistics can expose sampled data within a view, partition, or child table","descriptions":[{"lang":"en","value":"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":[{"vendor":"n/a","product":"PostgreSQL","defaultStatus":"unaffected","versions":[{"version":"17","status":"affected","lessThan":"17.6","versionType":"rpm"},{"version":"16","status":"affected","lessThan":"16.10","versionType":"rpm"},{"version":"15","status":"affected","lessThan":"15.14","versionType":"rpm"},{"version":"14","status":"affected","lessThan":"14.19","versionType":"rpm"},{"version":"0","status":"affected","lessThan":"13.22","versionType":"rpm"}]}],"references":[{"url":"https://www.postgresql.org/support/security/CVE-2025-8713/"}],"metrics":[{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","baseScore":3.1,"baseSeverity":"LOW"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1230","lang":"en","type":"CWE","description":"Exposure of Sensitive Information Through Metadata"}]}],"providerMetadata":{"shortName":"PostgreSQL","orgId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","dateUpdated":"2025-08-14T13:00:05.807Z"},"credits":[{"lang":"en","value":"The PostgreSQL project thanks Dean Rasheed for reporting this problem."}]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-08-14T19:50:52.127054Z","id":"CVE-2025-8713","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-08-14T19:51:04.708Z"}}]}}}