# CVE-2025-66304: grav PrivEsc — Fix Available

🐘

🐘 Packagist

Not in CISA KEV

MEDIUM severity

# CVE-2025-66304 — grav

MEDIUM [Fix: getgrav/grav@9d11094](https://github.com/getgrav/grav/commit/9d11094e4133f059688fad1e00dbe96fb6e3ead7)

CVE-2025-66304 is a medium-severity (CVSS 6.2) Information Exposure vulnerability in getgrav/grav. A fix is available for getgrav/grav — see the affected versions and patch details below.

Grav Exposes Password Hashes Leading to privilege escalation

Also known as[GHSA-gq3g-666w-7h85](/vulnerability/GHSA-gq3g-666w-7h85)

Published

Dec 1, 2025

Updated

Oct 28, 2026

Affected

1 pkg

Patched

1 / 1

Exploits

None indexed

Exploitation data as of Nov 9, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

## Exploitation Status

### Proof-of-concept exploit code exists

-   CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
-   A successful exploit gives an attacker total control of the affected component, not partial access.

Exploitation and automatability from CISA’s SSVC triage for CVE-2025-66304.

## EPSS Exploitation Probability

[via FIRST.org ↗](https://www.first.org/epss/)

0.4%probability of exploitation in next 30 days

Lower Risk0.00%

Lower risk than most CVEs39th percentile — riskier than 39% of all scored CVEsHighest risk

0.00%0.31%0.63%0.94%0.1%0.4%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from [FIRST.org EPSS](https://www.first.org/epss/).

## How urgent is this, really

## Where this sits among everything scored

## Real-World Exposure

1 pkg affected

🐘`getgrav/grav`

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.

## Description

## 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: ![grav0](https://github.com/user-attachments/assets/020a4b47-e577-49cb-8392-bfb61491199d) ![grav2](https://github.com/user-attachments/assets/97fbfc46-c541-4559-9541-2b9b5de86c0e)
    
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: ![grav2-1](https://github.com/user-attachments/assets/057c9c14-f928-4584-99ae-4939f63dda57)
    
    You can see that it match the hash that is in the admin.yaml file : ![Compare to the hash in database of the admin](grav2-2.png)
    
4.  Crack the hash as shown in the following figure, the algorithm use here is bcrypt:
    

![grav3](https://github.com/user-attachments/assets/ec334f80-4b87-4010-a834-cb92704a596e)

### 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.

## Affected Packages

1 total 1 fixed

Ecosystem

Package

Vulnerable range

Fix

🐘Packagist

`getgrav/grav` 

all versions

1.8.0-beta.27`composer require getgrav/grav:^1.8.0-beta.27`

## Affected Products

1 product · 27 configurations

Application

`grav`getgrav

≥ 1.7.46 && < 1.8.0

1 version

1.8.0

## Detection & mitigation playbook

Open-source dependency

1.  ### Detect
    
    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for getgrav/grav, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
    
2.  ### Fix
    
    Update getgrav/grav to 1.8.0-beta.27 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2025-66304 is resolved across your whole dependency graph.
    
3.  ### Workarounds
    
    Close the privilege gap rather than the entry point: audit which accounts, roles and service identities can reach the affected operation, drop the component to the least privilege it actually needs, and review file and directory permissions created by earlier installs — a default left in place is what makes this reachable.
    

## Frequently Asked Questions

\# 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 acc

O3 Security · Impact-Aware SCA

### Is CVE-2025-66304 in your dependencies?

Find it across Packagist, including transitive dependencies.

[Scan my dependencies](/book-demo) [How O3 SCA works](/impact-aware-sca)