{"schemaVersion":3,"id":"CVE-2025-8713","aliases":["ALPINE-CVE-2025-8713","UBUNTU-CVE-2025-8713","DEBIAN-CVE-2025-8713"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2025-08-14T13:00:05.807Z","modified":"2025-08-14T19:51:04.708Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":3.1,"severity":"low","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":3.1,"severity":"low","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":3.1,"severity":"low","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","exploitability":4.1,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":3.1,"severity":"low","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","exploitability":4.1,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":3.1,"severity":"low","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","exploitability":4.1,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":3.1,"severity":"low","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00236,"percentile":0.13663,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.011000000000000029,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00225},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00236,"percentile":0.13663}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00225,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00236,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00236,"percentile":0.13663}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-1230","name":"Exposure of Sensitive Information Through Metadata","description":"The product prevents direct access to a resource containing sensitive information, but it does not sufficiently limit access to metadata that is derived from the original, sensitive information.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/1230.html"}],"affected":[{"vendor":"alpine","product":"postgresql15","name":"postgresql15","label":"postgresql15","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/postgresql15","purlType":"apk","versions":[{"text":"< 15.14-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 15.14-r0","eol":null,"hubHref":null},{"vendor":"alpine","product":"postgresql16","name":"postgresql16","label":"postgresql16","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/postgresql16","purlType":"apk","versions":[{"text":"< 16.10-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 16.10-r0","eol":null,"hubHref":null},{"vendor":"alpine","product":"postgresql17","name":"postgresql17","label":"postgresql17","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/postgresql17","purlType":"apk","versions":[{"text":"< 17.6-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 17.6-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"postgresql-15","name":"postgresql-15","label":"postgresql-15","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/postgresql-15","purlType":"deb","versions":[{"text":"< 15.14-0+deb12u1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 15.14-0+deb12u1","eol":null,"hubHref":null},{"vendor":"debian","product":"postgresql-17","name":"postgresql-17","label":"postgresql-17","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/postgresql-17","purlType":"deb","versions":[{"text":"< 17.6-0+deb13u1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 17.6-0+deb13u1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-10","name":"postgresql-10","label":"postgresql-10","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-10","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-12","name":"postgresql-12","label":"postgresql-12","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-12","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-14","name":"postgresql-14","label":"postgresql-14","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-14","purlType":"deb","versions":[{"text":"< 14.19-0ubuntu0.22.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 14.19-0ubuntu0.22.04.1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-16","name":"postgresql-16","label":"postgresql-16","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-16","purlType":"deb","versions":[{"text":"< 16.10-0ubuntu0.24.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 16.10-0ubuntu0.24.04.1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-17","name":"postgresql-17","label":"postgresql-17","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-17","purlType":"deb","versions":[{"text":"< 17.6-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 17.6-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-9.3","name":"postgresql-9.3","label":"postgresql-9.3","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-9.3","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-9.5","name":"postgresql-9.5","label":"postgresql-9.5","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-9.5","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null}],"affectedCount":12,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.postgresql.org/support/security/CVE-2025-8713/","label":"www.postgresql.org/support/security/CVE-2025-8713/","hostname":"www.postgresql.org","tags":["REPORT"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2025-8713","label":"security.alpinelinux.org/vuln/CVE-2025-8713","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-8713","label":"ubuntu.com/security/CVE-2025-8713","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-8713","label":"www.cve.org/CVERecord?id=CVE-2025-8713","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://www.postgresql.org/about/news/postgresql-176-1610-1514-1419-1322-and-18-beta-3-released-3118/","label":"www.postgresql.org/about/news/postgresql-176-1610-1514-1419-1322-and-18-beta-3-released-3118/","hostname":"www.postgresql.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-7741-1","label":"ubuntu.com/security/notices/USN-7741-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-8713","label":"security-tracker.debian.org/tracker/CVE-2025-8713","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-8713","label":"nvd.nist.gov/vuln/detail/CVE-2025-8713","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-4273-1","MGASA-2025-0230","OPENSUSE-SU-2025:15450-1","OPENSUSE-SU-2025:15451-1","OPENSUSE-SU-2025:15452-1","OPENSUSE-SU-2025:15453-1","OPENSUSE-SU-2025:15455-1","RHSA-2025:14827","RHSA-2025:14862","RHSA-2025:14869","RHSA-2025:14870","RHSA-2025:14878","RHSA-2025:15013","RHSA-2025:15014","RHSA-2025:15015","RHSA-2025:15031","RHSA-2025:15057","RHSA-2025:15062","RHSA-2025:15114","RHSA-2025:15359","SUSE-SU-2025:02842-1","SUSE-SU-2025:02980-1","SUSE-SU-2025:02981-1","SUSE-SU-2025:02986-1","SUSE-SU-2025:02987-1","SUSE-SU-2025:02994-1","SUSE-SU-2025:02995-1","SUSE-SU-2025:03003-1","SUSE-SU-2025:03004-1","SUSE-SU-2025:03005-1","SUSE-SU-2025:03005-2","SUSE-SU-2025:03018-1","SUSE-SU-2025:03018-2","SUSE-SU-2025:03019-1","SUSE-SU-2025:03019-2","SUSE-SU-2025:03020-1","SUSE-SU-2025:03030-1","SUSE-SU-2025:03031-1","USN-7741-1"],"duplicates":[],"related":["OPENSUSE-SU-2025:15450-1","OPENSUSE-SU-2025:15451-1","OPENSUSE-SU-2025:15452-1","OPENSUSE-SU-2025:15453-1","OPENSUSE-SU-2025:15455-1","SUSE-SU-2025:02842-1","SUSE-SU-2025:02980-1","SUSE-SU-2025:02981-1","SUSE-SU-2025:02986-1","SUSE-SU-2025:02987-1","SUSE-SU-2025:02994-1","SUSE-SU-2025:02995-1","SUSE-SU-2025:03003-1","SUSE-SU-2025:03004-1","SUSE-SU-2025:03005-1","SUSE-SU-2025:03005-2","SUSE-SU-2025:03018-1","SUSE-SU-2025:03018-2","SUSE-SU-2025:03019-1","SUSE-SU-2025:03019-2","SUSE-SU-2025:03020-1","SUSE-SU-2025:03030-1","SUSE-SU-2025:03031-1","USN-7741-1"]},"timeline":[{"kind":"published","date":"2025-08-14T13:00:05.807Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-08-14T19:51:04.708Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":12,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T20:11:46.690Z","stale":false,"partial":false}}