Skip to main content
VulnerabilityPublished

CVE-2025-8713: PostgreSQL · Exposure of Sensitive Information Through Metadata

Affects PostgreSQLSource CVE Database V5

0

Mentioned vulnerabilities

Not known to be exploited · CVSS 3.1 Low.

Data as of 26 Oct 2026, 09:16 UTC

CVSS 3.1 base score
3.1Low
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 14% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 14 Aug 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
PostgreSQLAffected
  • =17
  • =16
  • =15
  • =14
  • =0
Fixed in–

AI-suggested

To mitigate this vulnerability, European organizations should promptly upgrade PostgreSQL to the fixed versions: 17.6, 16.10, 15.14, 14.19, or 13.22, depending on their current deployment. If immediate upgrading is not feasible, organizations should review and tighten database user privileges to minimize access to potentially leaky operators and restrict the ability to query optimizer statistics. Implementing strict monitoring and auditing of database queries that access statistical metadata can help detect suspicious activity. Additionally, organizations should evaluate the use of row security policies and view definitions to ensure they do not inadvertently expose sensitive data through metadata. Applying network segmentation and limiting database access to trusted users and applications will reduce the attack surface. Finally, organizations should stay informed about PostgreSQL security advisories and apply patches promptly to prevent exploitation.

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.

References

Community reviews

Loading reviews…