---
id: CVE-2025-66295
title: Grav is a file-based Web platform
summary: >-
  Grav is a file-based Web platform. Prior to 1.8.0-beta.27, when a user with
  privilege of user creation creates a new user through the Admin UI and
  supplies a username containing path traversal sequences (for example ..\Nijat
  or ../Nijat)…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-22
vendor: getgrav
product: grav
affected:
  - 'grav >= 1.7.49.5, < 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-66295'
references:
  - url: >-
      https://github.com/getgrav/grav/commit/3462d94d575064601689b236508c316242e15741
    label: security-advisories@github.com
  - url: 'https://github.com/getgrav/grav/security/advisories/GHSA-h756-wh59-hhjv'
    label: security-advisories@github.com
tags:
  - nvd
epss: 0.00551
epssPercentile: 0.43723
ingestedAt: '2026-09-26T00:22:39.986Z'
---

## Overview

Grav is a file-based Web platform. Prior to 1.8.0-beta.27, when a user with privilege of user creation creates a new user through the Admin UI and supplies a username containing path traversal sequences (for example ..\Nijat or ../Nijat), Grav writes the account YAML file to an unintended path outside user/accounts/. The written YAML can contain account fields such as email, fullname, twofa_secret, and hashed_password. This vulnerability is fixed in 1.8.0-beta.27.

## Affected

- `grav >= 1.7.49.5, < 1.8.0`
- `grav = 1.8.0`

## Remediation

Upgrade past the affected range:

- `grav 1.8.0`
