Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. getgrav/grav
  4. ›
  5. CVE-2025-66304

CVE-2025-66304: Grav Exposes Password Hashes Leading to privilege escalation

December 2, 2025

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

  1. Give read access to user accounts to a random user as shown in the following figures:

    Click to open external image
    Click to open external image

  2. Log in to the admin panel with an account that has read access to user accounts and navigate to the user account management section.

  3. 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:

    Click to open external image

    You can see that it match the hash that is in the admin.yaml file :

    Click to open external image

  4. Crack the hash as shown in the following figure, the algorithm use here is bcrypt:

Click to open external image

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.

References

  • github.com/advisories/GHSA-gq3g-666w-7h85
  • github.com/getgrav/grav
  • github.com/getgrav/grav/commit/9d11094e4133f059688fad1e00dbe96fb6e3ead7
  • github.com/getgrav/grav/security/advisories/GHSA-gq3g-666w-7h85
  • nvd.nist.gov/vuln/detail/CVE-2025-66304

Code Behaviors & Features

Detect and mitigate CVE-2025-66304 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.8.0-beta.27

Fixed versions

  • 1.8.0-beta.27

Solution

Upgrade to version 1.8.0-beta.27 or above.

Impact 6.2 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:L

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-201: Insertion of Sensitive Information Into Sent Data

Source file

packagist/getgrav/grav/CVE-2025-66304.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 14 Dec 2025 00:20:13 +0000.