Vulnerability 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.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- https://github.com/getgrav/grav/security/advisories/GHSA-mc5q-6hpj-rp7j
- https://www.vulncheck.com/advisories/grav-before-config-exfiltration-via-offsetg
- https://github.com/getgrav/grav/security/advisories/GHSA-mc5q-6hpj-rp7j
FAQ
What is CVE-2026-61450?
CVE-2026-61450 is a vulnerability with a CVSS score of 6.5 (MEDIUM). 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 repla...
How severe is CVE-2026-61450?
CVE-2026-61450 has been rated MEDIUM with a CVSS base score of 6.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-61450?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.