CVE-2025-8713
PostgreSQL optimizer statistics can expose sampled data within a view, partition, or child table
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.273% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T15:55:09.885Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 3.1 · published by PostgreSQLCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
Assessment source · checked 2026-11-19T12:01:32.575Z
CVSS 3.1 · 3.1 · published by Ubuntu SecurityCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
Assessment source · checked 2026-11-19T16:01:08.293Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T15:55:09.885Z | CISA KEV |
| cvss | verified | 2026-11-19T12:01:32.575Z | CVE Program |
| epss | verified | 2026-11-19T16:04:42.360Z | FIRST EPSS |
| patches | verified | 2026-11-19T16:01:08.293Z | Ubuntu Security |
| affected | verified | 2026-11-19T12:01:32.575Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:01:32.575Z | CVE Program |
Affected versions and configuration
n/a PostgreSQL; default status: unaffected: 17 to < 17.6 [affected; scheme: rpm]; 16 to < 16.10 [affected; scheme: rpm]; 15 to < 15.14 [affected; scheme: rpm]; 14 to < 14.19 [affected; scheme: rpm]; 0 to < 13.22 [affected; scheme: rpm]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
Ubuntu Security · ubuntu-package · full conditions
[
{
"name": "postgresql-17",
"debian": "https://tracker.debian.org/pkg/postgresql-17",
"source": "https://ubuntu.com/security/cve?package=postgresql-17",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=postgresql-17",
"statuses": [
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "stonking"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "17.6-0ubuntu0.25.04.1",
"release_codename": "plucky"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "17.6",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "17.6-1",
"release_codename": "questing"
}
]
}
]Archived source JSONOSV · osv · full conditions
{
"id": "DEBIAN-CVE-2025-8713",
"aliases": [],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "17.6-0+deb13u1"
}
]
}
],
"package": {
"name": "postgresql-17",
"purl": "pkg:deb/debian/postgresql-17?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"17.5-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-8713.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N"
}
],
"upstream": [
"CVE-2025-8713"
],
"withdrawn": null,
"references": [
{
"url": "https://security-tracker.debian.org/tracker/CVE-2025-8713",
"type": "ADVISORY"
}
],
"relatedGitRanges": [],
"database_specific": {}
}Archived source JSONOSV · osv · full conditions
{
"id": "DEBIAN-CVE-2025-8713",
"aliases": [],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "15.14-0+deb12u1"
}
]
}
],
"package": {
"name": "postgresql-15",
"purl": "pkg:deb/debian/postgresql-15?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"15.10-0+deb12u1",
"15.11-0+deb12u1",
"15.12-0+deb12u1",
"15.12-0+deb12u2",
"15.13-0+deb12u1",
"15.3-0+deb12u1",
"15.3-1",
"15.4-0+deb12u1",
"15.4-1",
"15.4-2",
"15.4-3",
"15.5-0+deb12u1",
"15.6-0+deb12u1",
"15.7-0+deb12u1",
"15.8-0+deb12u1",
"15.9-0+deb12u1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-8713.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N"
}
],
"upstream": [
"CVE-2025-8713"
],
"withdrawn": null,
"references": [
{
"url": "https://security-tracker.debian.org/tracker/CVE-2025-8713",
"type": "ADVISORY"
}
],
"relatedGitRanges": [],
"database_specific": {}
}Archived source JSONCVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "n/a",
"product": "PostgreSQL",
"versions": [
{
"status": "affected",
"version": "17",
"lessThan": "17.6",
"versionType": "rpm"
},
{
"status": "affected",
"version": "16",
"lessThan": "16.10",
"versionType": "rpm"
},
{
"status": "affected",
"version": "15",
"lessThan": "15.14",
"versionType": "rpm"
},
{
"status": "affected",
"version": "14",
"lessThan": "14.19",
"versionType": "rpm"
},
{
"status": "affected",
"version": "0",
"lessThan": "13.22",
"versionType": "rpm"
}
],
"defaultStatus": "unaffected"
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2025-8713",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2025-08-14T19:50:52.127054Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-08-14T19:51:04.708Z"
}
}
]
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| distribution-package | Ubuntu / plucky | postgresql-17 | security | 17.6-0ubuntu0.25.04.1 | Official record |
| upstream-release | upstream / upstream | postgresql-17 | Not a distribution channel | 17.6 | Official record |
| distribution-package | Ubuntu / questing | postgresql-17 | security | 17.6-1 | Official record |
| ecosystem-boundary | Debian:13 / 13 | postgresql-17 | unknown | 17.6-0+deb13u1 | Official record |
| ecosystem-boundary | Debian:12 / 12 | postgresql-15 | unknown | 15.14-0+deb12u1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CVE ProgramConsulted: 2026-11-19T12:01:32.575ZArchived source JSON
Source publication: 2025-08-14T13:00:05.807Z
Source modification: 2025-08-14T19:51:04.708ZDocument fingerprint
56092a7593cb8b618057d11e1a73091271297e4bd89198daf955102f0905f140 - Ubuntu SecurityConsulted: 2026-11-19T16:01:08.293ZArchived source JSON
Source publication: 2025-08-14T13:15:00.000Z
Source modification: 2025-09-12T14:05:32.599ZDocument fingerprint
f4b00408acf6619e716a79d94682622ebebe57f320d3d8253293bc1b9a1c9c50 - OSVConsulted: 2026-11-19T12:52:05.592ZArchived source JSON
Source publication: 2025-08-14T13:15:37.543Z
Source modification: 2026-09-01T20:05:59.070ZDocument fingerprint
bc7377159fbe1883ea8a51101a0bcce2f458a18dc726dd446fd2fa90a886a417 - OSVConsulted: 2026-11-19T12:52:08.472ZArchived source JSON
Source publication: 2025-08-14T13:15:37.543Z
Source modification: 2026-09-01T20:05:59.070ZDocument fingerprint
f99aedadc224159839f616997f8960cddd28c97207494f9c647b7c1e87e10fac - CISA KEVConsulted: 2026-11-19T15:55:09.885ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:42.360ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
f3e0006c4bf23264f8d6151e6627f3c4e610e9660acb6cdae7bca2bafe3eb770
Official status history
- UNKNOWN → PUBLISHED · · evidence