CVE-2025-8713 json
PostgreSQL optimizer statistics can expose sampled data within a view, partition, or child table
published 2025-08-14 14 mo ago modified 2026-06-17 4 mo ago also BIT-postgresql-2025-8713 , EUVD-2025-24811
- cvss
- 3.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 18%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami postgresql 13.22.0, 14.19.0, 15.14.0, 16.10.0, 17.6.0
- n/a PostgreSQL 13.22, 14.19, 15.14, 16.10, 17.6
- postgresql-15 Debian 12 15.14-0+deb12u1
- postgresql-17 Debian 13 17.6-0+deb13u1
debian advisories DEBIAN-CVE-2025-8713
- postgresql-14 Ubuntu 22.04 LTS 14.19-0ubuntu0.22.04.1
- postgresql-16 Ubuntu 24.04 LTS 16.10-0ubuntu0.24.04.1
- postgresql-17 Ubuntu 25.10 17.6-1
ubuntu advisories UBUNTU-CVE-2025-8713
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- pgaudit RHEL 9, RHEL 9.4 EUS, RHEL 9.2 E4S 1.7.0-1.module+el9.2.0+17405+aeb9ec60
- postgres-decoderbufs RHEL 9, RHEL 9.4 EUS, RHEL 9.2 E4S 1.9.7-1.Final.module+el9.2.0+17405+aeb9ec60
- pgaudit RHEL 9, RHEL 9.4 EUS 16.0-1.module+el9.4.0+20427+07482b8c
- postgres-decoderbufs RHEL 9, RHEL 9.4 EUS 2.4.0-1.Final.module+el9.4.0+20427+07482b8c
- postgresql RHEL 9 13.22-1.el9_6
- postgresql-test RHEL 9 13.22-1.el9_6
- postgresql-pltcl RHEL 9 13.22-1.el9_6
- postgresql-plperl RHEL 9 13.22-1.el9_6
red hat advisories RHSA-2025:15359RHSA-2025:15114RHSA-2025:15062RHSA-2025:15057RHSA-2025:15031RHSA-2025:15014
- postgresql14 SLE Module for Package Hub 15 SP7, SLE Module for Package Hub 15 SP6, SLE Module for Legacy 15 SP7 +2 more 14.19-150600.16.20.1
- postgresql16 SLE Module for Server Applications 15 SP7, SLE Module for Server Applications 15 SP6, SLE Module for Package Hub 15 SP7 +4 more 16.10-150600.16.21.1
- postgresql15 SLE Module for Legacy 15 SP7, SLE Module for Legacy 15 SP6, openSUSE Leap 15.6 15.14-150600.16.20.1
- postgresql14 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES for SAP 15 SP3 +12 more 14.19-150200.5.61.1
- postgresql15 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES for SAP 15 SP3 +13 more 15.14-150200.5.44.1
- postgresql17 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES for SAP 15 SP3 +12 more 17.6-150200.5.16.1
- postgresql13 SLES for SAP 15 SP4, SLES for SAP 15 SP3, SLES 15 SP4-LTSS +5 more 13.22-150200.5.75.2
- postgresql17 SLE Module for Server Applications 15 SP7, SLE Module for Server Applications 15 SP6, SLE Module for Package Hub 15 SP7 +4 more 17.6-150600.13.16.1
suse advisories SUSE-SU-2025:03019-2SUSE-SU-2025:03005-1SUSE-SU-2025:03005-2SUSE-SU-2025:03018-2SUSE-SU-2025:03031-1SUSE-SU-2025:03030-1
- postgresql17 openSUSE Tumbleweed 17.6-1.1
- postgresql13 openSUSE Tumbleweed 13.22-1.1
- postgresql14 openSUSE Tumbleweed 14.19-1.1
- postgresql15 openSUSE Tumbleweed 15.14-1.1
- postgresql16 openSUSE Tumbleweed 16.10-1.1
opensuse advisories openSUSE-SU-2025:15455-1openSUSE-SU-2025:15450-1openSUSE-SU-2025:15451-1openSUSE-SU-2025:15452-1openSUSE-SU-2025:15453-1
- pgaudit AlmaLinux 9 16.0-1.module_el9.4.0+66+eb9878bc
- pgvector AlmaLinux 9 0.6.2-2.module_el9.6.0+167+4e561146
- pg_repack AlmaLinux 9 1.5.1-1.module_el9.6.0+146+c54fdeca
- postgresql AlmaLinux 9 16.10-1.module_el9.6.0+174+80cb77f0
- postgresql-test AlmaLinux 9 16.10-1.module_el9.6.0+174+80cb77f0
- postgresql-pltcl AlmaLinux 9 16.10-1.module_el9.6.0+174+80cb77f0
- postgresql-plperl AlmaLinux 9 16.10-1.module_el9.6.0+174+80cb77f0
- postgresql-server AlmaLinux 9 16.10-1.module_el9.6.0+174+80cb77f0
almalinux advisories ALSA-2025:14827ALSA-2025:14862
- postgresql15 Alpine 3.22, Alpine 3.20, Alpine 3.19 15.14-r0
- postgresql15 Alpine 3.21 15.17-r0
- postgresql16 Alpine 3.24, Alpine 3.23, Alpine 3.22 +3 more 16.10-r0
- postgresql17 Alpine 3.24, Alpine 3.23, Alpine 3.22 +1 more 17.6-r0
alpine advisories ALPINE-CVE-2025-8713
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- postgresql Azure Linux 3.0 16.10-1
- postgresql CBL-Mariner 2.0 14.19-1
azure linux advisories AZL-66300AZL-66321
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-8713 updated cvss 3.1
postgresql: PostgreSQL optimizer statistics can expose sampled data within a view, partition, or child table
-
Red Hat Enterprise Linux 6 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +2 moreaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 7 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +3 moreaffected: workaround, no fix available “Fix deferred”
-
Red Hat Enterprise Linux 8 pgaudit, pg_repack, postgresql, postgresql-test, postgresql-pltcl, postgresql-plperl, +7 more Red Hat Enterprise Linux 10 postgresql16affected: workaround, no fix available
-
Red Hat CodeReady Linux Builder EUS (v.9.4) postgresql-test 13.22-1.el9_4fixed: vendor fix RHSA-2025:15114
-
Red Hat Enterprise Linux AppStream (v. 9) postgresql 13.22-1.el9_6, postgresql-pltcl 13.22-1.el9_6, postgresql-plperl 13.22-1.el9_6, postgresql-server 13.22-1.el9_6, postgresql-contrib 13.22-1.el9_6, postgresql-upgrade 13.22-1.el9_6, +29 morefixed: vendor fix RHSA-2025:14862
-
Red Hat Enterprise Linux AppStream AUS (v.8.4) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, postgresql 13.22-1.module+el8.4.0+23428+e8cf4671, postgresql-test 13.22-1.module+el8.4.0+23428+e8cf4671, postgresql-pltcl 13.22-1.module+el8.4.0+23428+e8cf4671, postgresql-plperl 13.22-1.module+el8.4.0+23428+e8cf4671, postgresql-server 13.22-1.module+el8.4.0+23428+e8cf4671, +5 morefixed: vendor fix RHSA-2025:15057
-
Red Hat Enterprise Linux AppStream AUS (v.8.6) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, postgresql 13.22-1.module+el8.6.0+23444+2be3520b.1, postgresql-test 13.22-1.module+el8.6.0+23444+2be3520b.1, postgresql-pltcl 13.22-1.module+el8.6.0+23444+2be3520b.1, postgresql-plperl 13.22-1.module+el8.6.0+23444+2be3520b.1, +6 more Red Hat Enterprise Linux AppStream E4S (v.8.6) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, postgresql 13.22-1.module+el8.6.0+23444+2be3520b.1, postgresql-test 13.22-1.module+el8.6.0+23444+2be3520b.1, postgresql-pltcl 13.22-1.module+el8.6.0+23444+2be3520b.1, postgresql-plperl 13.22-1.module+el8.6.0+23444+2be3520b.1, +6 morefixed: vendor fix RHSA-2025:15359
-
Red Hat Enterprise Linux AppStream E4S (v.8.8) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.7.0-1.module+el8.8.0+17071+aaaceaa4, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, pg_repack 1.4.8-1.module+el8.8.0+17071+aaaceaa4, postgresql 13.22-1.module+el8.8.0+23435+45a38323, postgresql 15.14-1.module+el8.8.0+23415+58912bc3, +19 morefixed: vendor fix RHSA-2025:15013
show 6 moreshow fewer
-
Red Hat Enterprise Linux AppStream E4S (v.9.0) postgresql 13.22-1.el9_0, postgresql-pltcl 13.22-1.el9_0, postgresql-plperl 13.22-1.el9_0, postgresql-server 13.22-1.el9_0, postgresql-contrib 13.22-1.el9_0, postgresql-upgrade 13.22-1.el9_0, +2 morefixed: vendor fix RHSA-2025:14870
-
Red Hat Enterprise Linux AppStream E4S (v.9.2) postgresql 13.22-1.el9_2, postgresql-pltcl 13.22-1.el9_2, postgresql-plperl 13.22-1.el9_2, postgresql-server 13.22-1.el9_2, postgresql-contrib 13.22-1.el9_2, postgresql-upgrade 13.22-1.el9_2, +15 morefixed: vendor fix RHSA-2025:15062
-
Red Hat Enterprise Linux AppStream EUS (v.9.4) postgresql 13.22-1.el9_4, postgresql-pltcl 13.22-1.el9_4, postgresql-plperl 13.22-1.el9_4, postgresql-server 13.22-1.el9_4, postgresql-contrib 13.22-1.el9_4, postgresql-upgrade 13.22-1.el9_4, +28 morefixed: vendor fix RHSA-2025:15014
-
Red Hat Enterprise Linux AppStream TUS (v.8.6) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, postgresql 13.22-1.module+el8.6.0+23444+2be3520b.1, postgresql-test 13.22-1.module+el8.6.0+23444+2be3520b.1, postgresql-pltcl 13.22-1.module+el8.6.0+23444+2be3520b.1, postgresql-plperl 13.22-1.module+el8.6.0+23444+2be3520b.1, +6 morefixed: vendor fix RHSA-2025:15359
-
Red Hat Enterprise Linux AppStream TUS (v.8.8) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.7.0-1.module+el8.8.0+17071+aaaceaa4, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, pg_repack 1.4.8-1.module+el8.8.0+17071+aaaceaa4, postgresql 13.22-1.module+el8.8.0+23435+45a38323, postgresql 15.14-1.module+el8.8.0+23415+58912bc3, +19 morefixed: vendor fix RHSA-2025:15013
-
Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) postgresql-test 13.22-1.el9_6, postgresql-test-rpm-macros 13.22-1.el9_6fixed: vendor fix RHSA-2025:14878
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 14 mo ago
Exploit prediction
0.26% chance of exploitation in the next 30 days, higher than 18% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N |
| OSV | 3.1 | 3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | postgresql | <13.22.0 >=14.0.0, <14.19.0 >=15.0.0, <15.14.0 >=16.0.0, <16.10.0 >=17.0.0, <17.6.0 |
13.22.0 14.19.0 15.14.0 16.10.0 17.6.0 |
Affected products
- n/a PostgreSQL
Classification
- Weakness
-
- CWE-1230 Exposure of Sensitive Information Through Metadata
- Technology feeds
References
Sources
- CVE List CVE-2025-8713
- NVD CVE-2025-8713
- OSV BIT-postgresql-2025-8713
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.