CVE-2025-66295
BaseFortify
Publication date: 2025-12-01
Last updated on: 2025-12-04
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| 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 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.