CVE-2025-66295
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-12-01

Last updated on: 2025-12-04

Assigner: GitHub, Inc.

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-12-01
Last Modified
2025-12-04
Generated
2026-05-07
AI Q&A
2025-12-01
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 27 associated CPEs
Vendor Product Version / Range
getgrav grav From 1.7.49.5 (inc) to 1.8.0 (exc)
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability in Grav, a file-based web platform, occurs when a user with permission to create new users inputs a username containing path traversal sequences (like ../ or ..\). This causes Grav to write the new user's account YAML file outside the intended directory (user/accounts/), potentially overwriting or creating files in unintended locations. The YAML file can include sensitive account information such as email, fullname, two-factor authentication secrets, and hashed passwords. This issue was fixed in version 1.8.0-beta.27.


How can this vulnerability impact me? :

This vulnerability can lead to unauthorized file creation or modification outside the designated user accounts directory, potentially allowing an attacker to overwrite critical files or inject malicious data. Because the YAML files contain sensitive information like hashed passwords and two-factor authentication secrets, exploitation could result in account compromise, data leakage, and full system compromise. The CVSS score of 8.8 indicates a high severity with impacts on confidentiality, integrity, and availability.


What immediate steps should I take to mitigate this vulnerability?

Upgrade Grav to version 1.8.0-beta.27 or later, as this version contains the fix for the path traversal vulnerability when creating users through the Admin UI.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart