BuzzPHP
LightDarkSystem

Grav: .htaccess file extension rules bypass via case variation on case-insensitive filesystems

High severity. Published 19 August 2026. Update getgrav/grav to 2.0.4 or later: composer update getgrav/grav.

Which versions are affected?

PackageAffected versionsFixed in
getgrav/grav (opens in a new tab)< 2.0.42.0.4

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show getgrav/grav
composer audit

Advisory details

SeverityHigh
Published
Updated
CVECVE-2026-62673 (opens in a new tab)
GHSAGHSA-vwg3-w8w3-pc79 (opens in a new tab)
WeaknessCWE-178

What the advisory says

Summary

The default .htaccess shipped with Grav (and the reference webserver-configs/htaccess.txt) contains security rules that block direct HTTP access to sensitive file types (.yaml, .yml, .php, .json, .twig, etc.) under user/ and system/vendor/ directories. However, these rules lack the [NC] (No Case) flag, making them case-sensitive. On case-insensitive filesystems (Windows/NTFS, macOS/HFS+, or Linux with Docker volumes mounted from Windows/macOS), an attacker can bypass these rules by requesting files with uppercase extensions (e.g., .YAML, .PHP, .JSON).

Affected Versions

Source: GHSA-vwg3-w8w3-pc79 (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories