Grav before 2.0.16 Path Traversal via MediaUploadTrait deleteFile
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-22 and the CVSS impact.
Summary
Grav before 2.0.16 contains a path traversal vulnerability in MediaUploadTrait::deleteFile() that allows authenticated users with media management permissions to delete arbitrary files by supplying filenames with directory traversal sequences. The method validates only the basename portion of the filename while preserving unvalidated directory paths containing ../ sequences that are passed to unlink(), enabling deletion of files outside the intended media storage directory.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| getgrav | grav | before 2.0.16 | 2.0.16 | Patch available | CNA |
| — | getgrav/grav (Packagist) | before 2.0.16 | 2.0.16 | Patch available | GHSA-jq29-c7v8-rg55 |
- grav Vendorgetgrav Affected before 2.0.16 Fixed in 2.0.16 Patch available CNA
- getgrav/grav (Packagist) Vendor— Affected before 2.0.16 Fixed in 2.0.16 Patch available GHSA-jq29-c7v8-rg55
Remediation
- Fix · CNA grav (getgrav) Fixed in 2.0.16
- Fix · GHSA-jq29-c7v8-rg55 getgrav/grav (Packagist) Fixed in 2.0.16 Advisory →
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
getgrav grav 2.0.16
8 records Highest priority Priority HIGH 4 HIGH, 3 MEDIUM, 1 LOW
Other records, highest priority first
- TI-2026-50940 Grav CMS before 2.0.16 Origin Validation Bypass via RefererPriority HIGH 81
- TI-2026-53682 Grav before 2.0.16 Information Disclosure via Twig SandboxPriority HIGH 77
- TI-2026-50934 Grav CMS before 2.0.16 Symlink Following via createLockFilePriority HIGH 72
Timeline
- 2026-10-02 Threatist record created from CVE-2026-72695
- 2026-10-03 Alias added: GHSA-jq29-c7v8-rg55
- 2026-10-09 EPSS moved to the below the 50th percentile
- 2026-10-27 EPSS moved to the 50th–90th percentile
References
More getgrav vulnerabilities
- TI-2026-30893 Grav: Privilege Escalation via Missing Server-Side Validation of groups/access CVSS 3.1CRITICAL 9.4
- TI-2025-28971 Cross Site Scripting vulnerability in grav v.1.7.48 and before allows an attacker to… CVSS 3.1CRITICAL 9.8
- TI-2021-04523 Unauthenticated Arbitrary YAML Write/Update leads to Code Execution CVSS 3.1CRITICAL 9.8
- TI-2026-50940 Grav CMS before 2.0.16 Origin Validation Bypass via Referer CVSS 4.0CRITICAL 9.3
- TI-2026-46446 Grav before 2.0.7 Remote Code Execution via Blueprint dynamicData CVSS 4.0CRITICAL 9.3
- TI-2021-22428 GravCMS 1.10.7 - Arbitrary YAML Write/Update (Unauthenticated) (2) CVSS 4.0CRITICAL 9.3
Sources
- CVE-2026-72695 · CVE Program
- CVE-2026-72695 · NVD
- FIRST EPSS
- GHSA-jq29-c7v8-rg55 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences