CVE-2025-8713 Affecting postgresql-13 package, versions <13.22-0+deb11u1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN11-POSTGRESQL13-11808521
  • published15 Aug 2025
  • disclosed14 Aug 2025

Introduced: 14 Aug 2025

NewCVE-2025-8713  (opens in a new tab)

How to fix?

Upgrade Debian:11 postgresql-13 to version 13.22-0+deb11u1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream postgresql-13 package and not the postgresql-13 package as distributed by Debian. See How to fix? for Debian:11 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1