CVE-2025-8713
published low CVSS 3.1 · 3.1PostgreSQL optimizer statistics can expose sampled data within a view, partition, or child table
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | PostgreSQL17 to < 17.6 · 16 to < 16.10 · 15 to < 15.14 · 14 to < 14.19 · 0 to < 13.22 · Other versions: unaffected | Affected | Not stated | PostgreSQL |
| Amazon Linux | AL2 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2POSTGRESQL13-2025-012 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2POSTGRESQL14-2025-019 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1158 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1165 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 9 | pg_repack | Advisory build | 1.4.8-2.module_el9.5.0+119+18833d03 | ALSA-2025:14862 |
| Alpine Linux | edge | postgresql17 | Fixed | 17.6-r0 | Package fix record |
Show 99 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1177 | Fixed | Not stated | Amazon Linux assessment |
| Debian | bullseye | postgresql-13 | Advisory build | 13.22-0+deb11u1 | DLA-4273-1 |
| Red Hat Enterprise Linux | RHEL-8 | pg_repackaarch64 | Advisory build | 1.4.6-3.module+el8.5.0+11357+bcc62552 | RHSA-2025:15359 |
| AlmaLinux | 9 | pg_repack | Advisory build | 1.5.1-1.module_el9.6.0+146+c54fdeca | ALSA-2025:14827 |
| AlmaLinux | 9 | pgaudit | Advisory build | 1.7.0-1.module_el9.3.0+52+21733919 | ALSA-2025:14862 |
| AlmaLinux | 9 | pgaudit | Advisory build | 16.0-1.module_el9.4.0+66+eb9878bc | ALSA-2025:14827 |
| AlmaLinux | 9 | pgvector | Advisory build | 0.6.2-2.module_el9.6.0+167+4e561146 | ALSA-2025:14827 |
| AlmaLinux | 9 | postgres-decoderbufs | Advisory build | 1.9.7-1.Final.module_el9.3.0+52+21733919 | ALSA-2025:14862 |
| AlmaLinux | 9 | postgres-decoderbufs | Advisory build | 2.4.0-1.Final.module_el9.4.0+66+eb9878bc | ALSA-2025:14827 |
| AlmaLinux | 9 | postgresql | Advisory build | 15.14-1.module_el9.6.0+176+c508cfa2 | ALSA-2025:14862 |
| AlmaLinux | 9 | postgresql | Advisory build | 16.10-1.module_el9.6.0+174+80cb77f0 | ALSA-2025:14827 |
| AlmaLinux | 9 | postgresql-contrib | Advisory build | 15.14-1.module_el9.6.0+176+c508cfa2 | ALSA-2025:14862 |
| AlmaLinux | 9 | postgresql-contrib | Advisory build | 16.10-1.module_el9.6.0+174+80cb77f0 | ALSA-2025:14827 |
| AlmaLinux | 9 | postgresql-docs | Advisory build | 15.14-1.module_el9.6.0+176+c508cfa2 | ALSA-2025:14862 |
| AlmaLinux | 9 | postgresql-docs | Advisory build | 16.10-1.module_el9.6.0+174+80cb77f0 | ALSA-2025:14827 |
| AlmaLinux | 9 | postgresql-plperl | Advisory build | 15.14-1.module_el9.6.0+176+c508cfa2 | ALSA-2025:14862 |
| AlmaLinux | 9 | postgresql-plperl | Advisory build | 16.10-1.module_el9.6.0+174+80cb77f0 | ALSA-2025:14827 |
| AlmaLinux | 9 | postgresql-plpython3 | Advisory build | 15.14-1.module_el9.6.0+176+c508cfa2 | ALSA-2025:14862 |
| AlmaLinux | 9 | postgresql-plpython3 | Advisory build | 16.10-1.module_el9.6.0+174+80cb77f0 | ALSA-2025:14827 |
| AlmaLinux | 9 | postgresql-pltcl | Advisory build | 15.14-1.module_el9.6.0+176+c508cfa2 | ALSA-2025:14862 |
| AlmaLinux | 9 | postgresql-pltcl | Advisory build | 16.10-1.module_el9.6.0+174+80cb77f0 | ALSA-2025:14827 |
| AlmaLinux | 9 | postgresql-private-devel | Advisory build | 15.14-1.module_el9.6.0+176+c508cfa2 | ALSA-2025:14862 |
| AlmaLinux | 9 | postgresql-private-devel | Advisory build | 16.10-1.module_el9.6.0+174+80cb77f0 | ALSA-2025:14827 |
| AlmaLinux | 9 | postgresql-private-libs | Advisory build | 15.14-1.module_el9.6.0+176+c508cfa2 | ALSA-2025:14862 |
| AlmaLinux | 9 | postgresql-private-libs | Advisory build | 16.10-1.module_el9.6.0+174+80cb77f0 | ALSA-2025:14827 |
| AlmaLinux | 9 | postgresql-server | Advisory build | 15.14-1.module_el9.6.0+176+c508cfa2 | ALSA-2025:14862 |
| AlmaLinux | 9 | postgresql-server | Advisory build | 16.10-1.module_el9.6.0+174+80cb77f0 | ALSA-2025:14827 |
| AlmaLinux | 9 | postgresql-server-devel | Advisory build | 15.14-1.module_el9.6.0+176+c508cfa2 | ALSA-2025:14862 |
| AlmaLinux | 9 | postgresql-server-devel | Advisory build | 16.10-1.module_el9.6.0+174+80cb77f0 | ALSA-2025:14827 |
| AlmaLinux | 9 | postgresql-static | Advisory build | 15.14-1.module_el9.6.0+176+c508cfa2 | ALSA-2025:14862 |
| AlmaLinux | 9 | postgresql-static | Advisory build | 16.10-1.module_el9.6.0+174+80cb77f0 | ALSA-2025:14827 |
| AlmaLinux | 9 | postgresql-test | Advisory build | 15.14-1.module_el9.6.0+176+c508cfa2 | ALSA-2025:14862 |
| AlmaLinux | 9 | postgresql-test | Advisory build | 16.10-1.module_el9.6.0+174+80cb77f0 | ALSA-2025:14827 |
| AlmaLinux | 9 | postgresql-test-rpm-macros | Advisory build | 15.14-1.module_el9.6.0+176+c508cfa2 | ALSA-2025:14862 |
| AlmaLinux | 9 | postgresql-test-rpm-macros | Advisory build | 16.10-1.module_el9.6.0+174+80cb77f0 | ALSA-2025:14827 |
| AlmaLinux | 9 | postgresql-upgrade | Advisory build | 15.14-1.module_el9.6.0+176+c508cfa2 | ALSA-2025:14862 |
| AlmaLinux | 9 | postgresql-upgrade | Advisory build | 16.10-1.module_el9.6.0+174+80cb77f0 | ALSA-2025:14827 |
| AlmaLinux | 9 | postgresql-upgrade-devel | Advisory build | 15.14-1.module_el9.6.0+176+c508cfa2 | ALSA-2025:14862 |
| AlmaLinux | 9 | postgresql-upgrade-devel | Advisory build | 16.10-1.module_el9.6.0+174+80cb77f0 | ALSA-2025:14827 |
| Alpine Linux | v3.19 | postgresql15 | Fixed | 15.14-r0 | Package fix record |
| Alpine Linux | v3.19 | postgresql16 | Fixed | 16.10-r0 | Package fix record |
| Alpine Linux | v3.20 | postgresql15 | Fixed | 15.14-r0 | Package fix record |
| Alpine Linux | v3.20 | postgresql16 | Fixed | 16.10-r0 | Package fix record |
| Alpine Linux | v3.21 | postgresql15 | Fixed | 15.17-r0 | Package fix record |
| Alpine Linux | v3.21 | postgresql16 | Fixed | 16.10-r0 | Package fix record |
| Alpine Linux | v3.21 | postgresql17 | Fixed | 17.6-r0 | Package fix record |
| Alpine Linux | v3.22 | postgresql15 | Fixed | 15.14-r0 | Package fix record |
| Alpine Linux | v3.22 | postgresql16 | Fixed | 16.10-r0 | Package fix record |
| Alpine Linux | v3.22 | postgresql17 | Fixed | 17.6-r0 | Package fix record |
| Alpine Linux | v3.23 | postgresql16 | Fixed | 16.10-r0 | Package fix record |
| Alpine Linux | v3.23 | postgresql17 | Fixed | 17.6-r0 | Package fix record |
| Alpine Linux | v3.24 | postgresql16 | Fixed | 16.10-r0 | Package fix record |
| Alpine Linux | v3.24 | postgresql17 | Fixed | 17.6-r0 | Package fix record |
| Red Hat Enterprise Linux | RHEL-8 | pg_repackppc64le | Advisory build | 1.4.6-3.module+el8.5.0+11357+bcc62552 | RHSA-2025:15013 |
| Red Hat Enterprise Linux | RHEL-8 | pg_repackppc64le | Advisory build | 1.4.6-3.module+el8.5.0+11357+bcc62552 | RHSA-2025:15359 |
| Red Hat Enterprise Linux | RHEL-8 | pg_repackppc64le | Advisory build | 1.4.8-1.module+el8.8.0+17071+aaaceaa4 | RHSA-2025:15031 |
| Red Hat Enterprise Linux | RHEL-8 | pg_repacks390x | Advisory build | 1.4.6-3.module+el8.5.0+11357+bcc62552 | RHSA-2025:15359 |
| Red Hat Enterprise Linux | RHEL-8 | pg_repacksrc | Advisory build | 1.4.6-3.module+el8.5.0+11357+bcc62552 | RHSA-2025:15013 |
| Red Hat Enterprise Linux | RHEL-8 | pg_repacksrc | Advisory build | 1.4.6-3.module+el8.5.0+11357+bcc62552 | RHSA-2025:15359 |
| Red Hat Enterprise Linux | RHEL-8 | pg_repacksrc | Advisory build | 1.4.8-1.module+el8.8.0+17071+aaaceaa4 | RHSA-2025:15031 |
| Red Hat Enterprise Linux | RHEL-8 | pg_repackx86_64 | Advisory build | 1.4.6-3.module+el8.5.0+11357+bcc62552 | RHSA-2025:15013 |
| Red Hat Enterprise Linux | RHEL-8 | pg_repackx86_64 | Advisory build | 1.4.6-3.module+el8.5.0+11357+bcc62552 | RHSA-2025:15359 |
| Red Hat Enterprise Linux | RHEL-8 | pg_repackx86_64 | Advisory build | 1.4.8-1.module+el8.8.0+17071+aaaceaa4 | RHSA-2025:15031 |
| Red Hat Enterprise Linux | RHEL-8 | pg_repack-debuginfoaarch64 | Advisory build | 1.4.6-3.module+el8.5.0+11357+bcc62552 | RHSA-2025:15359 |
| Red Hat Enterprise Linux | RHEL-8 | pg_repack-debuginfoppc64le | Advisory build | 1.4.6-3.module+el8.5.0+11357+bcc62552 | RHSA-2025:15013 |
| Red Hat Enterprise Linux | RHEL-8 | pg_repack-debuginfoppc64le | Advisory build | 1.4.6-3.module+el8.5.0+11357+bcc62552 | RHSA-2025:15359 |
| Red Hat Enterprise Linux | RHEL-8 | pg_repack-debuginfoppc64le | Advisory build | 1.4.8-1.module+el8.8.0+17071+aaaceaa4 | RHSA-2025:15031 |
| Red Hat Enterprise Linux | RHEL-8 | pg_repack-debuginfos390x | Advisory build | 1.4.6-3.module+el8.5.0+11357+bcc62552 | RHSA-2025:15359 |
| Red Hat Enterprise Linux | RHEL-8 | pg_repack-debuginfox86_64 | Advisory build | 1.4.6-3.module+el8.5.0+11357+bcc62552 | RHSA-2025:15013 |
| Red Hat Enterprise Linux | RHEL-8 | pg_repack-debuginfox86_64 | Advisory build | 1.4.6-3.module+el8.5.0+11357+bcc62552 | RHSA-2025:15359 |
| Red Hat Enterprise Linux | RHEL-8 | pg_repack-debuginfox86_64 | Advisory build | 1.4.8-1.module+el8.8.0+17071+aaaceaa4 | RHSA-2025:15031 |
| Red Hat Enterprise Linux | RHEL-8 | pg_repack-debugsourceaarch64 | Advisory build | 1.4.6-3.module+el8.5.0+11357+bcc62552 | RHSA-2025:15359 |
| Red Hat Enterprise Linux | RHEL-8 | pg_repack-debugsourceppc64le | Advisory build | 1.4.6-3.module+el8.5.0+11357+bcc62552 | RHSA-2025:15013 |
| Red Hat Enterprise Linux | RHEL-8 | pg_repack-debugsourceppc64le | Advisory build | 1.4.6-3.module+el8.5.0+11357+bcc62552 | RHSA-2025:15359 |
| Red Hat Enterprise Linux | RHEL-8 | pg_repack-debugsourceppc64le | Advisory build | 1.4.8-1.module+el8.8.0+17071+aaaceaa4 | RHSA-2025:15031 |
| Red Hat Enterprise Linux | RHEL-8 | pg_repack-debugsources390x | Advisory build | 1.4.6-3.module+el8.5.0+11357+bcc62552 | RHSA-2025:15359 |
| Red Hat Enterprise Linux | RHEL-8 | pg_repack-debugsourcex86_64 | Advisory build | 1.4.6-3.module+el8.5.0+11357+bcc62552 | RHSA-2025:15013 |
| Red Hat Enterprise Linux | RHEL-8 | pg_repack-debugsourcex86_64 | Advisory build | 1.4.6-3.module+el8.5.0+11357+bcc62552 | RHSA-2025:15359 |
| Red Hat Enterprise Linux | RHEL-8 | pg_repack-debugsourcex86_64 | Advisory build | 1.4.8-1.module+el8.8.0+17071+aaaceaa4 | RHSA-2025:15031 |
| Red Hat Enterprise Linux | RHEL-8 | pgauditaarch64 | Advisory build | 1.5.0-1.module+el8.4.0+8873+b821c30a | RHSA-2025:15359 |
| Red Hat Enterprise Linux | RHEL-8 | pgauditppc64le | Advisory build | 1.5.0-1.module+el8.4.0+8873+b821c30a | RHSA-2025:15013 |
| Red Hat Enterprise Linux | RHEL-8 | pgauditppc64le | Advisory build | 1.5.0-1.module+el8.4.0+8873+b821c30a | RHSA-2025:15359 |
| Red Hat Enterprise Linux | RHEL-8 | pgauditppc64le | Advisory build | 1.7.0-1.module+el8.8.0+17071+aaaceaa4 | RHSA-2025:15031 |
| Red Hat Enterprise Linux | RHEL-8 | pgaudits390x | Advisory build | 1.5.0-1.module+el8.4.0+8873+b821c30a | RHSA-2025:15359 |
| Red Hat Enterprise Linux | RHEL-8 | pgauditsrc | Advisory build | 1.5.0-1.module+el8.4.0+8873+b821c30a | RHSA-2025:15013 |
| Red Hat Enterprise Linux | RHEL-8 | pgauditsrc | Advisory build | 1.5.0-1.module+el8.4.0+8873+b821c30a | RHSA-2025:15057 |
| Red Hat Enterprise Linux | RHEL-8 | pgauditsrc | Advisory build | 1.5.0-1.module+el8.4.0+8873+b821c30a | RHSA-2025:15359 |
| Red Hat Enterprise Linux | RHEL-8 | pgauditsrc | Advisory build | 1.7.0-1.module+el8.8.0+17071+aaaceaa4 | RHSA-2025:15031 |
| Red Hat Enterprise Linux | RHEL-8 | pgauditx86_64 | Advisory build | 1.5.0-1.module+el8.4.0+8873+b821c30a | RHSA-2025:15013 |
| Red Hat Enterprise Linux | RHEL-8 | pgauditx86_64 | Advisory build | 1.5.0-1.module+el8.4.0+8873+b821c30a | RHSA-2025:15057 |
| Red Hat Enterprise Linux | RHEL-8 | pgauditx86_64 | Advisory build | 1.5.0-1.module+el8.4.0+8873+b821c30a | RHSA-2025:15359 |
| Red Hat Enterprise Linux | RHEL-8 | pgauditx86_64 | Advisory build | 1.7.0-1.module+el8.8.0+17071+aaaceaa4 | RHSA-2025:15031 |
| Red Hat Enterprise Linux | RHEL-8 | pgaudit-debuginfoaarch64 | Advisory build | 1.5.0-1.module+el8.4.0+8873+b821c30a | RHSA-2025:15359 |
| Red Hat Enterprise Linux | RHEL-8 | pgaudit-debuginfoppc64le | Advisory build | 1.5.0-1.module+el8.4.0+8873+b821c30a | RHSA-2025:15013 |
| Red Hat Enterprise Linux | RHEL-8 | pgaudit-debuginfoppc64le | Advisory build | 1.5.0-1.module+el8.4.0+8873+b821c30a | RHSA-2025:15359 |
| Red Hat Enterprise Linux | RHEL-8 | pgaudit-debuginfoppc64le | Advisory build | 1.7.0-1.module+el8.8.0+17071+aaaceaa4 | RHSA-2025:15031 |
| Red Hat Enterprise Linux | RHEL-8 | pgaudit-debuginfos390x | Advisory build | 1.5.0-1.module+el8.4.0+8873+b821c30a | RHSA-2025:15359 |
| Red Hat Enterprise Linux | RHEL-8 | pgaudit-debuginfox86_64 | Advisory build | 1.5.0-1.module+el8.4.0+8873+b821c30a | RHSA-2025:15013 |
| Red Hat Enterprise Linux | RHEL-8 | pgaudit-debuginfox86_64 | Advisory build | 1.5.0-1.module+el8.4.0+8873+b821c30a | RHSA-2025:15057 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 3.1 / 10
- Severity
- low
- Provider
- PostgreSQL · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | PostgreSQL | 17 to < 17.6 (affected · rpm)16 to < 16.10 (affected · rpm)15 to < 15.14 (affected · rpm)14 to < 14.19 (affected · rpm)0 to < 13.22 (affected · rpm)Default: unaffected | PostgreSQL · cna |
Weaknesses
1- CWE-1230 Exposure of Sensitive Information Through Metadata
References
1Provider assertions
2PostgreSQL · cna
PostgreSQL optimizer statistics can expose sampled data within a view, partition, or child table
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 56092a7593cb8b618057d11e1a73091271297e4bd89198daf955102f0905f140
- Ingested
- 23 Sep 2026, 08:59:12 UTC
- Source record
- Official CVE record