What’s Vulnerable › Vulnerabilities
CVE-2026-61450: Grav before 2.0.2 Config Exfiltration via offsetGet Filter
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 5.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-07-10 · updated 2026-10-25
- Weakness: CWE-94
Description
Grav before 2.0.2 contains a Twig sandbox bypass that allows a page author (any admin.pages user, or anyone able to write to user/pages) to exfiltrate configuration secrets. Although the sandbox replaces the 'config' variable with a redacted facade and strips Config::get/toArray from the method allowlist, the raw container remains accessible via the allow-listed grav.offsetGet('config'), which returns the real Config object. Allow-listed object-dumping filters (json_encode, print_r, yaml_encode) then serialize that object at the PHP level without invoking the sandbox method gate, exposing the full config tree including plugin secrets such as SMTP credentials, API keys, and plugin DB credentials. This is an incomplete fix for GHSA-j274-39qw-32c9.
Affected products
- getgrav grav: before 2.0.2 — fixed in 2.0.2
How to fix
Upgrade to a fixed version: getgrav grav 2.0.2. Check the vendor advisory for mitigations.
References
- https://github.com/getgrav/grav/security/advisories/GHSA-mc5q-6hpj-rp7j
- https://www.vulncheck.com/advisories/grav-before-config-exfiltration-via-offsetget-filter
- https://github.com/getgrav/grav/security/advisories/GHSA-mc5q-6hpj-rp7j
Get alerted when CVE-2026-61450 or the next vulnerability affects your stack