Quick answers
- Is CVE-2026-72698 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-72698 being exploited in the wild.
- How severe is CVE-2026-72698?
- Medium severity, with a CVSS score of 6.5, published 25 August 2026.
- Which products and versions are affected?
- getgrav/grav (Packagist) < 2.0.16, ECOSYSTEM:introduced=0,fixed=2.0.16.
- Is there a fix for CVE-2026-72698?
- Yes. getgrav/grav (Packagist): upgrade to 2.0.16 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-72698 attacked?
- It is attacked over the network, in a web application.
- Am I affected by CVE-2026-72698?
- Check whether you run getgrav/grav (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- getgrav/grav (Packagist): upgrade to 2.0.16 or later
composer require getgrav/grav:^2.0.16
Technical details
The vulnerability is a sandbox bypass in Grav's Twig template rendering. The `Twig::init()` method copies raw PHP arrays (`system`, `site`, `theme`) from the configuration into the Twig variable set. When `processPage()` builds the sandbox environment for editor-authored content, it replaces only the `config` variable with a filtered facade object but leaves the raw arrays untouched. Twig's sandbox `SecurityPolicy` only restricts method calls and property access on objects; it cannot prevent array subscript access in templates. An attacker with page-content edit access (controlled by `security.twig_content.process_enabled`) can read `{{ system.cache.redis.password }}` and other nested secrets from these unfiltered arrays. The `config_denied_paths` mechanism, which was added to prevent similar leaks via the `config` variable, does not apply to plain arrays. The fix is to strip or replace these variables in sandboxed renders using a facade pattern similar to the existing `SandboxConfig` object.
Affected products
- Grav CMS 2.0.15 and likely other versions
Identifiers
- CVE-2026-72698
- GHSA-p597-crqc-m349
Timeline
- 2026-09-17: disclosed: Advisory published
- 2026: other: Known CVE-2026-72698 assigned