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

High severity, published 2026-08-19. Update getgrav/grav to 2.0.4 or later: composer update getgrav/grav.

Canonical URL: https://buzzphp.com/security/ghsa-vwg3-w8w3-pc79 · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high |
| Published | 2026-08-19 |
| Updated | 2026-08-19 |
| CVE | [CVE-2026-62673](https://nvd.nist.gov/vuln/detail/CVE-2026-62673) |
| GHSA | [GHSA-vwg3-w8w3-pc79](https://github.com/advisories/GHSA-vwg3-w8w3-pc79) |
| Weakness | CWE-178 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| getgrav/grav | < 2.0.4 | 2.0.4 |

## What to do

Update getgrav/grav to 2.0.4 or later: composer update getgrav/grav.

Check which version you run with `composer show getgrav/grav`, and every affected package with `composer audit`.

## About this advisory

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



## Links

- [GHSA-vwg3-w8w3-pc79 on GitHub](https://github.com/advisories/GHSA-vwg3-w8w3-pc79)
- [CVE-2026-62673 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-62673)
- [All Composer security advisories](https://buzzphp.com/security)
