CVE-2026-62230: Grav < 2.0.4 File Access Bypass via Case Variation
Grav before 2.0.4 ships a default .htaccess (and reference webserver-configs/htaccess.txt) whose rules blocking access to sensitive file types (.yaml, .php, .json, etc.) lack the [NC] flag, making extension matching case-sensitive. On case-insensitive filesystems (Windows/NTFS, macOS/HFS+, or Docker volume mounts), an unauthenticated attacker can request these files with uppercase or mixed-case extensions (e.g., .YAML, .PHP) to bypass the restrictions and read sensitive configuration files that may contain API keys and credentials.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Gravto a version that resolves this vulnerability.Fixed in 2.0.4 - Configuration
Update the default .htaccess / referenced webserver-configs/htaccess.txt rules to include the [NC] flag on the directives that block access to sensitive file types, since the current rules lack [NC] and therefore fail to match on case-insensitive filesystems.
Grav default .htaccess (webserver-configs/htaccess.txt reference) case-insensitive extension matching flag = Add [NC] to the blocking rules for sensitive file extensions (e.g., .yaml, .php, .json) so matching is case-insensitive
Event History
Frequently Asked Questions
What is the severity of CVE-2026-62230?
The severity of CVE-2026-62230 is rated as high with a score of 8.7.
How do I fix CVE-2026-62230?
To fix CVE-2026-62230, you should update Grav to version 2.0.4 or later.
What kind of systems are affected by CVE-2026-62230?
CVE-2026-62230 affects Grav installations prior to version 2.0.4 on case-insensitive file systems.
What is the nature of the vulnerability in CVE-2026-62230?
CVE-2026-62230 is a file access bypass vulnerability that allows unauthorized access to sensitive files due to case-sensitive matching.
What files are at risk due to CVE-2026-62230?
Files such as .yaml, .php, and .json are at risk due to the lack of [NC] flag in the default .htaccess configuration.