---
id: CVE-2025-66302
title: Grav is a file-based Web platform
summary: >-
  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 f…
severity: medium
cvss: 6.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N'
cwe:
  - CWE-22
vendor: getgrav
product: grav
affected:
  - grav < 1.8.0
  - grav = 1.8.0
patched:
  - grav 1.8.0
published: '2025-12-01'
updated: '2026-09-26'
sourceUpdated: '2026-09-26T00:10:00.127'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-66302'
references:
  - url: >-
      https://github.com/getgrav/grav/commit/ed640a13143c4177af013cf001969ed2c5e197ee
    label: security-advisories@github.com
  - url: 'https://github.com/getgrav/grav/security/advisories/GHSA-j422-qmxp-hv94'
    label: security-advisories@github.com
  - url: 'https://github.com/getgrav/grav/security/advisories/GHSA-j422-qmxp-hv94'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
epss: 0.0048
epssPercentile: 0.38811
ingestedAt: '2026-09-26T00:22:39.988Z'
---

## Overview

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.

## Affected

- `grav < 1.8.0`
- `grav = 1.8.0`

## Remediation

Upgrade past the affected range:

- `grav 1.8.0`
