CVE-2025-8713 Affecting postgresql16 package, versions <16.10-r0


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-ALPINE321-POSTGRESQL16-12089800
  • published21 Aug 2025
  • disclosed14 Aug 2025

Introduced: 14 Aug 2025

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

How to fix?

Upgrade Alpine:3.21 postgresql16 to version 16.10-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream postgresql16 package and not the postgresql16 package as distributed by Alpine. See How to fix? for Alpine:3.21 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