CVE-2025-66302 Grav vulnerable to Path Traversal allowing server files backup

Medium 6.8 Published Updated

Authenticated administrators can read arbitrary server files via path traversal in the backup tool, exposing sensitive data.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-66302?

CVE-2025-66302 is a medium-severity path traversal vulnerability in Getgrav Grav, published on 1 Dec 2025. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

Grav is a file-based Web platform. Prior to 1.8.0-beta.27, A path traversal vulnerability has been identified in Grav CMS, allowing authenticated attackers with administrative privileges to read arbitrary files on the underlying server filesystem. This vulnerability arises due to insufficient input sanitization in the backup tool, where user-supplied paths are not properly restricted, enabling access to files outside the intended webroot directory. The impact of this vulnerability depends on the privileges of the user account running the application. This vulnerability is fixed in 1.8.0-beta.27.

Weakness: CWE-22

Which versions are affected by CVE-2025-66302?

2 open source packages ship an affected version, including getgrav/grav. It affects 1 product.

PackageAffectedFixed in
getgrav/grav PackagistAll versions1.8.0-beta.27
getgrav/grav PackagistAll versions1.8.0-beta.27

Products include Getgrav Grav.

How do I fix CVE-2025-66302?

Upgrade getgrav/grav to 1.8.0-beta.27 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2025-66302 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-66302 exists.

All Getgrav Grav vulnerabilities

Sources

Also known as GHSA-j422-qmxp-hv94.

Is CVE-2025-66302 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free