{"id":"CVE-2025-8713","year":2025,"sequence":8713,"component":"core server","score":3.1,"cvss_version":"3.0","vector":"AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","first_published":"2025-08-14","source_url":"https://www.postgresql.org/support/security/CVE-2025-8713/","facts":{"affected":{"13":"13","14":"14","15":"15","16":"16","17":"17"},"affected_ranges":[{"from":"0","until":"13.22"},{"from":"14","until":"14.19"},{"from":"15","until":"15.14"},{"from":"16","until":"16.10"},{"from":"17","until":"17.6"}],"cna_url":"https://cveawg.mitre.org/api/cve/CVE-2025-8713","component":"core server","cvss_version":"3.0","description_en":"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.","first_published":"2025-08-14","fixed":{"13":"13.22","14":"14.19","15":"15.14","16":"16.10","17":"17.6"},"id":"CVE-2025-8713","introduced":{},"published":{"13":"2025-08-14","14":"2025-08-14","15":"2025-08-14","16":"2025-08-14","17":"2025-08-14"},"score":3.1,"title":"PostgreSQL optimizer statistics can expose sampled data within a view, partition, or child table","url":"https://www.postgresql.org/support/security/CVE-2025-8713/","vector":"AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N"},"reviewed_hash":"6a65a7884245936f6adaef8709d290d460e999dfce1ad78734fa7c9a324ed325","source_hash":"965b9e2323feab543f3cbeb74c418c3a5b43cbefc6594d2862ff0d24dcf8e6a2","text":{"locale":"zh-Hans","title":"PostgreSQL 优化器统计信息可能泄露视图、分区或子表中的采样数据","description":"PostgreSQL 优化器统计信息可能泄露视图、分区或子表中的采样数据","details":null,"format":"markdown","provenance":{"identity":"immutable_cve_code","sources":[{"observed_at":"2026-10-03 12:08:35.169032+08","raw":{"component":"core server","cve":"2025-8713","cvenumber":202508713,"description":"PostgreSQL 优化器统计信息可能泄露视图、分区或子表中的采样数据","details":null,"detailslink":"https://access.redhat.com/security/cve/CVE-2025-8713","id":10,"legacyscore":"","newspost_id":null,"public":true,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N"},"source":"center","source_id":10,"source_table_sha256":"b57ee28b2263464208af0ccf7512b31f0c1ab7140d12dda09a0c87de341f1372"},{"observed_at":"2026-10-03 12:08:55.967155+08","raw":{"component":"core server","cve":"2025-8713","cvenumber":202508713,"description":"PostgreSQL 优化器统计信息可能泄露视图、分区或子表中的采样数据","details":null,"detailslink":"https://access.redhat.com/security/cve/CVE-2025-8713","id":10,"legacyscore":"","newspost_id":null,"public":true,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N"},"source":"pgweb","source_id":10,"source_table_sha256":"b57ee28b2263464208af0ccf7512b31f0c1ab7140d12dda09a0c87de341f1372"}]},"text_hash":"9d5ee61c811d9896236978333e7e198fa94d729c8697006ce24bd498055c8af6"},"locales":["en","zh-Hans"],"fixes":[{"major":"13","fixed_version":"13.22","introduced":null,"published_date":"2025-08-14","facts":{"fixed":"13.22","introduced":null,"published":"2025-08-14"}},{"major":"14","fixed_version":"14.19","introduced":null,"published_date":"2025-08-14","facts":{"fixed":"14.19","introduced":null,"published":"2025-08-14"}},{"major":"15","fixed_version":"15.14","introduced":null,"published_date":"2025-08-14","facts":{"fixed":"15.14","introduced":null,"published":"2025-08-14"}},{"major":"16","fixed_version":"16.10","introduced":null,"published_date":"2025-08-14","facts":{"fixed":"16.10","introduced":null,"published":"2025-08-14"}},{"major":"17","fixed_version":"17.6","introduced":null,"published_date":"2025-08-14","facts":{"fixed":"17.6","introduced":null,"published":"2025-08-14"}}],"legacy":[{"source":"center","source_id":10,"observed_at":"2026-10-03 12:08:35.169032+08","raw":{"id":10,"cve":"2025-8713","public":true,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","details":null,"component":"core server","cvenumber":202508713,"description":"PostgreSQL 优化器统计信息可能泄露视图、分区或子表中的采样数据","detailslink":"https://access.redhat.com/security/cve/CVE-2025-8713","legacyscore":"","newspost_id":null},"fixes":[{"source_id":40,"source_version_id":30,"major":"17","fixed_minor":6,"raw":{"id":40,"patch_id":10,"version_id":30,"fixed_minor":6},"version_raw":{"id":30,"tree":17.0,"current":false,"docsgit":"","eoldate":"2029-11-08","reldate":"2026-08-13","testing":0,"supported":true,"docsloaded":"2026-09-27T08:10:47.078613+08:00","latestminor":11,"firstreldate":"2024-09-26"}},{"source_id":41,"source_version_id":29,"major":"16","fixed_minor":10,"raw":{"id":41,"patch_id":10,"version_id":29,"fixed_minor":10},"version_raw":{"id":29,"tree":16.0,"current":false,"docsgit":"","eoldate":"2028-11-09","reldate":"2026-08-13","testing":0,"supported":true,"docsloaded":"2026-09-27T08:10:47.078613+08:00","latestminor":15,"firstreldate":"2023-09-14"}},{"source_id":42,"source_version_id":28,"major":"15","fixed_minor":14,"raw":{"id":42,"patch_id":10,"version_id":28,"fixed_minor":14},"version_raw":{"id":28,"tree":15.0,"current":false,"docsgit":"","eoldate":"2027-11-11","reldate":"2026-08-13","testing":0,"supported":true,"docsloaded":"2026-09-27T08:10:47.078613+08:00","latestminor":19,"firstreldate":"2022-10-13"}},{"source_id":43,"source_version_id":27,"major":"14","fixed_minor":19,"raw":{"id":43,"patch_id":10,"version_id":27,"fixed_minor":19},"version_raw":{"id":27,"tree":14.0,"current":false,"docsgit":"","eoldate":"2026-11-12","reldate":"2026-08-13","testing":0,"supported":true,"docsloaded":"2026-09-27T08:10:47.078613+08:00","latestminor":24,"firstreldate":"2021-09-30"}},{"source_id":187,"source_version_id":26,"major":"13","fixed_minor":22,"raw":{"id":187,"patch_id":10,"version_id":26,"fixed_minor":22},"version_raw":{"id":26,"tree":13.0,"current":false,"docsgit":"","eoldate":"2025-11-13","reldate":"2025-11-13","testing":0,"supported":false,"docsloaded":"2026-09-27T08:10:47.078613+08:00","latestminor":23,"firstreldate":"2020-09-24"}}]},{"source":"pgweb","source_id":10,"observed_at":"2026-10-03 12:08:55.967155+08","raw":{"id":10,"cve":"2025-8713","public":true,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","details":null,"component":"core server","cvenumber":202508713,"description":"PostgreSQL 优化器统计信息可能泄露视图、分区或子表中的采样数据","detailslink":"https://access.redhat.com/security/cve/CVE-2025-8713","legacyscore":"","newspost_id":null},"fixes":[{"source_id":40,"source_version_id":30,"major":"17","fixed_minor":6,"raw":{"id":40,"patch_id":10,"version_id":30,"fixed_minor":6},"version_raw":{"id":30,"tree":17.0,"current":false,"docsgit":"","eoldate":"2029-11-08","reldate":"2026-08-13","testing":0,"supported":true,"docsloaded":"2026-09-27T00:10:45.258078+08:00","latestminor":11,"firstreldate":"2024-09-26"}},{"source_id":41,"source_version_id":29,"major":"16","fixed_minor":10,"raw":{"id":41,"patch_id":10,"version_id":29,"fixed_minor":10},"version_raw":{"id":29,"tree":16.0,"current":false,"docsgit":"","eoldate":"2028-11-09","reldate":"2026-08-13","testing":0,"supported":true,"docsloaded":"2026-09-27T00:10:45.258078+08:00","latestminor":15,"firstreldate":"2023-09-14"}},{"source_id":42,"source_version_id":28,"major":"15","fixed_minor":14,"raw":{"id":42,"patch_id":10,"version_id":28,"fixed_minor":14},"version_raw":{"id":28,"tree":15.0,"current":false,"docsgit":"","eoldate":"2027-11-11","reldate":"2026-08-13","testing":0,"supported":true,"docsloaded":"2026-09-27T00:10:45.258078+08:00","latestminor":19,"firstreldate":"2022-10-13"}},{"source_id":43,"source_version_id":27,"major":"14","fixed_minor":19,"raw":{"id":43,"patch_id":10,"version_id":27,"fixed_minor":19},"version_raw":{"id":27,"tree":14.0,"current":false,"docsgit":"","eoldate":"2026-11-12","reldate":"2026-08-13","testing":0,"supported":true,"docsloaded":"2026-09-27T00:10:45.258078+08:00","latestminor":24,"firstreldate":"2021-09-30"}},{"source_id":187,"source_version_id":26,"major":"13","fixed_minor":22,"raw":{"id":187,"patch_id":10,"version_id":26,"fixed_minor":22},"version_raw":{"id":26,"tree":13.0,"current":false,"docsgit":"","eoldate":"2025-11-13","reldate":"2025-11-13","testing":0,"supported":false,"docsloaded":"2026-09-27T00:10:45.258078+08:00","latestminor":23,"firstreldate":"2020-09-24"}}]}]}
