Grav Password Hash Exposure Vulnerability Allowing Privilege Escalation

Vulnerability

A vulnerability in Grav, a file-based web platform, prior to version 1.8.0-beta.27, allows users with read access to the user account management section of the admin panel to view password hashes of all users, including the admin. This exposure could lead to privilege escalation if an attacker successfully cracks these hashes. The vulnerability arises from insufficient protection of sensitive information in the user data serialization process.

Impact

Exposing password hashes can lead to unauthorized access, especially if the admin password hash is cracked, allowing an attacker to compromise the entire admin panel.

Reproduction

To reproduce this vulnerability, log into the admin panel with an account that has read access to user accounts. Navigate to the user account management section and access the profile of any user, including the admin. Inspect the page source to find the exposed password hash, which can then be compared to the hash stored in the admin.yaml file. After obtaining the hash, use a tool to crack it, revealing the admin password.

Remediation

Users can update to Grav version 1.8.0-beta.27 or later, where this vulnerability has been fixed.

Added: Dec 1, 2025, 10:23 PM
Updated: Dec 1, 2025, 10:23 PM

Vulnerability Rating

Custom Algorithm
spread
5.2
impact
5.0
exploitability
6.3
remediation
7.7
relevance
1.3
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.