# CVE-2026-61450: Grav before 2.0.2 Config Exfiltration via offsetGet Filter

- Severity: High 7.1 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 5.42%, higher than 92% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-10T13:58:08.307Z
- Modified: 2026-10-25T15:10:00.147Z
- Also known as: GHSA-mc5q-6hpj-rp7j
- Related: CVE-2026-61842
- Weaknesses: CWE-94, CWE-200
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- getgrav grav: before 2.0.2 (not affected: 2.0.2)
- getgrav/grav (Packagist): before 2.0.2

## Every score

- VulnCheck: CVSS:4.0 7.1 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/getgrav/grav/security/advisories/GHSA-mc5q-6hpj-rp7j> (exploit, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/grav-before-config-exfiltration-via-offsetget-filter> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-61842> (advisory)
- <https://github.com/getgrav/grav/commit/7efe70574e4cf01a251318478c13673029e93eb6> (web)
- <https://github.com/getgrav/grav> (package)
- <https://github.com/getgrav/grav/releases/tag/2.0.2> (web)

## Sources

- CVE List: [CVE-2026-61450](https://www.cve.org/CVERecord?id=CVE-2026-61450), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-mc5q-6hpj-rp7j](https://github.com/advisories/GHSA-mc5q-6hpj-rp7j), CC-BY-4.0, modified 2026-09-02
- NVD: [CVE-2026-61450](https://nvd.nist.gov/vuln/detail/CVE-2026-61450), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-61450 · Whole record: https://cve.day/CVE-2026-61450.json · Rebuilt by cve.day 2026-11-25T22:59:27.636Z
