CVE-2026-61450: Grav before 2.0.2 Config Exfiltration via offsetGet Filter
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 (jsonencode, printr, yamlencode) 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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Gravto a version that resolves this vulnerability.Fixed in 2.0.2Patch GHSA-j274-39qw-32c9
Event History
Frequently Asked Questions
What is the severity of CVE-2026-61450?
The severity of CVE-2026-61450 is high with a score of 7.1.
How does CVE-2026-61450 impact Grav users?
CVE-2026-61450 allows page authors with certain permissions to exfiltrate configuration secrets from Grav.
What versions of Grav are affected by CVE-2026-61450?
CVE-2026-61450 affects Grav versions prior to 2.0.2.
How do I fix CVE-2026-61450?
To fix CVE-2026-61450, upgrade to Grav version 2.0.2 or later.
What type of vulnerability is CVE-2026-61450 classified as?
CVE-2026-61450 is classified as a code injection vulnerability.