6.2medium
Grav Exposes Password Hashes Leading to privilege escalation
- Severity
- 6.2medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.44% (higher than 40% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-gq3g-666w-7h85
Description
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, users with read access on the user account management section of the admin panel can view the password hashes of all users, including the admin user. This exposure can potentially lead to privilege escalation if an attacker can crack these password hashes. This vulnerability is fixed in 1.8.0-beta.27.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| getgrav grav | < 1.8.0-beta.27, from 1.7.46 before 1.8.0, 1.8.0 | CVE List, NVD |
| getgrav/grav (Packagist) | before 1.8.0-beta.27 | GitHub Advisory Database |
All scores
| GitHub_M | 6.2medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:L |
| GitHub | 6.2medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:L |
| NVD | 7.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, users with read access on the user account management section of the admin panel can view the password hashes of all users, including the admin user. This exposure can potentially lead to privilege escalation if an attacker can crack these password hashes. This vulnerability is fixed in 1.8.0-beta.27.
GitHub Advisory Database
Exposure of Password Hashes Leading to privilege escalation
Severity Rating: Medium
Vector: Privilege Escalation
CVE: XXX
CWE: 200 - Exposure of Sensitive Information
CVSS Score: 6.2
CVSS Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:L
Analysis
It was observed that if a users is given read access on the user account management section of the admin panel can view the password hashes of all users, including the admin user. This exposure can potentially lead to privilege escalation if an attacker can crack these password hashes.
An attacker with read access can:
- View and potentially crack the password hashes.
- Gain administrative access by cracking the admin password hash.
- Escalate privileges and compromise the entire admin panel.
Proof of Concept
-
Give read access to user accounts to a random user as shown in the following figures: grav0 grav2
-
Log in to the admin panel with an account that has read access to user accounts and navigate to the user account management section.
-
Go to the admin profile
http://127.0.0.1/admin/accounts/users/admin; The password is not display. Try inspecting the page source code as shown in the following figures: grav2-1You can see that it match the hash that is in the admin.yaml file : Compare to the hash in database of the admin
-
Crack the hash as shown in the following figure, the algorithm use here is bcrypt:
Workarounds
No workaround is currently known
Timeline
2024-07-24 Issue identified
2024-09-27 Vendor contacted
About X41 D-Sec GmbH
X41 is an expert provider for application security services. Having extensive industry experience and expertise in the area of information security, a strong core security team of world class security experts enables X41 to perform premium security services.
Fields of expertise in the area of application security are security centered code reviews, binary reverse engineering and vulnerability discovery. Custom research and IT security consulting and support services are core competencies of X41.
NVD (es)
Grav es una plataforma web basada en archivos. Versiones anteriores a 1.8.0-beta.27, los usuarios con acceso de lectura en la sección de gestión de cuentas de usuario del panel de administración pueden ver los hashes de contraseña de todos los usuarios, incluido el usuario administrador. Esta exposición puede conducir potencialmente a la escalada de privilegios si un atacante puede descifrar estos hashes de contraseña. Esta vulnerabilidad está corregida en 1.8.0-beta.27.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-66304 changed 2025-12-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-gq3g-666w-7h85 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-66304 changed 2026-09-26 | Public domain |