CVE-2026-61450
HIGH 7.1CVSS 4.0Grav: Twig sandbox config exfiltration via grav.offsetGet + dump filter (CVE-2026-44738 bypass)
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.
- Published
- 10 Jul 2026
- Last modified
- 25 Oct 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Deferred
- Weakness
- CWE-200CWE-94
- Also known as
- CVE-2026-61842GHSA-mc5q-6hpj-rp7j
- Sources
- NVDJSONOSV GHSA-mc5q-6hpj-rp7jJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | HIGH 7.1 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Packagist | getgrav/grav | < 2.0.2 | 2.0.2 |
References
- https://github.com/getgrav/grav/security/advisories/GHSA-mc5q-6hpj-rp7j · WEB
- https://www.vulncheck.com/advisories/grav-before-config-exfiltration-via-offsetget-filter
- 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
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 10 Jul 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 2 Sep 2026)