# CVE-2025-66295: Grav vulnerable to Path traversal / arbitrary YAML write via user creation leading to Account Takeover / System Corruption

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.60%, higher than 49% of CVEs (2026-12-01)
- Published: 2025-12-01T20:46:56.726Z
- Modified: 2026-09-26T00:10:00.127Z
- Also known as: GHSA-h756-wh59-hhjv
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- getgrav grav: < 1.8.0-beta.27; from 1.7.49.5 before 1.8.0; 1.8.0
- getgrav/grav (Packagist): before 1.8.0-beta.27

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/getgrav/grav/security/advisories/GHSA-h756-wh59-hhjv> (vendor-advisory, web)
- <https://github.com/getgrav/grav/commit/3462d94d575064601689b236508c316242e15741> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-66295> (advisory)
- <https://github.com/getgrav/grav> (package)

## Sources

- CVE List: [CVE-2025-66295](https://www.cve.org/CVERecord?id=CVE-2025-66295), CVE Terms of Use, modified 2025-12-02
- GitHub Advisory Database: [GHSA-h756-wh59-hhjv](https://github.com/advisories/GHSA-h756-wh59-hhjv), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-66295](https://nvd.nist.gov/vuln/detail/CVE-2025-66295), Public domain, modified 2026-09-26

---

Page: https://cve.day/CVE-2025-66295 · Whole record: https://cve.day/CVE-2025-66295.json · Rebuilt by cve.day 2026-11-25T22:59:08.140Z
