Twig sandbox bypass in Grav lets publishers read server files
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 · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-200.
Summary
Grav from 2.0.0 before 2.2.18 contains a Twig sandbox bypass that lets publishers read any file on the server (CWE-200). A publisher with low privileges can expose private keys and the API signing secret, then forge a super-admin API token.
Written with Claude Haiku 5.5 from the sources below · 2026-11-18
Description from the CNA
Grav from 2.0.0 before 2.2.18 contains a Twig sandbox bypass vulnerability that allows publishers to read any server file by abusing allowlisted array_key_value() and page accessor setters such as filePath(). Attackers can repoint page objects or overwrite the assets collections to render private keys and the API signing secret, then forge a super-admin API token.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Update Grav to version 2.2.18, which fixes this issue.
Written with Claude Haiku 5.5 from the sources below · 2026-11-18
- Fix · CNA grav (getgrav) Fixed in 2.2.18
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
getgrav grav 2.2.18
17 records Highest priority Priority MEDIUM 14 MEDIUM, 3 LOW
Other records, highest priority first
- TI-2026-93869 Twig injection in Grav via media metadata and file namesPriority MEDIUM 49
- TI-2026-93867 Grav authorization bypass lets publishers overwrite protected pagesPriority MEDIUM 49
- TI-2026-93883 Unbounded cache growth in Grav via the HTTP Host headerPriority MEDIUM 44
Timeline
- 2026-11-18 Threatist record created from CVE-2026-130741
- 2026-11-18 Alias added: GHSA-rqp9-4m9f-fv8f
- 2026-11-21 CISA SSVC decision points changed
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-130741 · CVE Program
- CVE-2026-130741 · NVD
- FIRST EPSS
- GHSA-rqp9-4m9f-fv8f · 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