Description
Grav before 2.0.15 contains a path traversal vulnerability in the static asset server within index.php that uses string prefix matching instead of directory-boundary validation. Unauthenticated attackers can access files in sibling directories by exploiting directory names that extend the base path string, such as requesting assets-secret when assets is the configured base.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| getgrav | grav | < 2.0.15 | 2.0.15 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | getgrav/grav | < 2.0.15 | 2.0.15 | GHSA-4v9q-p283-qc2m |
References
- GitHub Security Advisory (GHSA-4v9q-p283-qc2m) vendor-advisory
- VulnCheck Advisory: Grav before 2.0.15 Path Traversal via plugin-asset-map.php third-party-advisory