← volver
CVE-2025-8713

PostgreSQL optimizer statistics can expose sampled data within a view, partition, or child table

CVSS 3.1 LOWEPSS 0.2%CWE-1230
En resumen

PostgreSQL almacena resúmenes estadísticos de los datos de las tablas (como valores más frecuentes) que pueden ser accedidos a través de funciones especialmente creadas, revelando potencialmente información de tablas o filas que el usuario no debería ver, incluso sin permiso directo.

Detalle técnico

Un atacante local puede crear operadores personalizados para extraer datos sensibles de las estadísticas del optimizador de PostgreSQL (histogramas, listas de valores más comunes) eludiendo ACLs de vistas y políticas de seguridad a nivel de fila en jerarquías de herencia. Requiere acceso a la base de datos y capacidad de definir funciones, exponiendo datos muestreados a través de referencias estadísticas del planificador.

Resumen generado y traducido por IA a partir de la descripción oficial.
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:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
Productos afectados
n/a · PostgreSQL

¿Quieres saber si tu infraestructura está expuesta a esto?

Hablar con TrueHacking →