3.1low
PostgreSQL pg_stats_ext and pg_stats_ext_exprs lack authorization checks
- Severity
- 3.1low CVSS:3.1 by PostgreSQL
- Exploit likelihood
- 0.77% (higher than 56% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- PostgreSQL
- Also known as
- BIT-POSTGRESQL-2024-4317
Description
Missing authorization in PostgreSQL built-in views pg_stats_ext and pg_stats_ext_exprs allows an unprivileged database user to read most common values and other statistics from CREATE STATISTICS commands of other users. The most common values may reveal column values the eavesdropper could not otherwise read or results of functions they cannot execute. Installing an unaffected version only fixes fresh PostgreSQL installations, namely those that are created with the initdb utility after installing that version. Current PostgreSQL installations will remain vulnerable until they follow the instructions in the release notes. Within major versions 14-16, minor versions before PostgreSQL 16.3, 15.7, and 14.12 are affected. Versions before PostgreSQL 14 are unaffected.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| PostgreSQL | from 16 before 16.3, from 15 before 15.7, from 14 before 14.12 | CVE List |
| postgresql postgresql | from 14.0 before 14.12, from 15.0 before 15.7, from 16.0 before 16.3 | NVD |
| postgresql (Bitnami) | from 14.0.0 before 14.12.0, from 15.0.0 before 15.7.0, from 16.0.0 before 16.3.0 | Bitnami Vulnerability Database |
All scores
| PostgreSQL | 3.1low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N |
| NVD | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Missing authorization in PostgreSQL built-in views pg_stats_ext and pg_stats_ext_exprs allows an unprivileged database user to read most common values and other statistics from CREATE STATISTICS commands of other users. The most common values may reveal column values the eavesdropper could not otherwise read or results of functions they cannot execute. Installing an unaffected version only fixes fresh PostgreSQL installations, namely those that are created with the initdb utility after installing that version. Current PostgreSQL installations will remain vulnerable until they follow the instructions in the release notes. Within major versions 14-16, minor versions before PostgreSQL 16.3, 15.7, and 14.12 are affected. Versions before PostgreSQL 14 are unaffected.
NVD (es)
La falta de autorización en las vistas integradas de PostgreSQL pg_stats_ext y pg_stats_ext_exprs permite a un usuario de base de datos sin privilegios leer los valores más comunes y otras estadísticas de los comandos CREATE STATISTICS de otros usuarios. Los valores más comunes pueden revelar valores de columnas que el espía no podría leer de otro modo o resultados de funciones que no pueden ejecutar. La instalación de una versión no afectada solo corrige instalaciones nuevas de PostgreSQL, es decir, aquellas que se crean con la utilidad initdb después de instalar esa versión. Las instalaciones actuales de PostgreSQL seguirán siendo vulnerables hasta que sigan las instrucciones de las notas de la versión. Dentro de las versiones principales 14-16, las versiones menores anteriores a PostgreSQL 16.3, 15.7 y 14.12 se ven afectadas. Las versiones anteriores a PostgreSQL 14 no se ven afectadas.
References
| https://www.postgresql.org/support/security/CVE-2024-4317/ | advisory, mitigation, vendor-advisory | |
| https://security.netapp.com/advisory/ntap-20250328-0001/ | web | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-4317 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-4317 changed 2025-03-28 | CVE Terms of Use |
| NVD | CVE-2024-4317 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-POSTGRESQL-2024-4317 changed 2026-09-08 | Apache-2.0 |