# CVE-2026-100668: Grav before 2.0.25 Sandbox Escape via array 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): 0.28%, higher than 22% of CVEs (2026-12-01)
- Published: 2026-09-26T13:23:33.382Z
- Modified: 2026-09-28T17:17:44.527Z
- Weaknesses: CWE-200
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

Grav 2.0.0 through 2.0.24 contain a Twig content sandbox escape. The `array` filter (and its identical function form) is on the sandbox allowlist but is registered without the needs_is_sandboxed guard that print_r, vardump, json_encode, yaml_encode and string carry, and its implementation calls toArray() — or falls back to an (array) cast — without consulting the sandbox method allowlist. Because the `grav` Twig global is the raw Pimple-based dependency injection container, a user who can author Twig in page content can evaluate `grav|array` to read the container's private $values array, including the un-redacted Config service; a second array cast returns the entire configuration tree, disclosing plugin credentials, SMTP and OAuth secrets, Redis passwords, proxy URLs and the security.* subtree that the sandbox's redaction is meant to hide. Because the payload is stored in page content, the disclosed configuration is rendered to anonymous visitors. Grav 1.7 is not affected as it has no Twig content sandbox. Fixed in Grav 2.0.25.

(As written by CVE List.)

## Affected

- getgrav grav: before 2.0.25 (not affected: 2.0.25)

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

## References

- <https://github.com/getgrav/grav/security/advisories/GHSA-59qm-58v5-gvc5> (vendor-advisory)
- <https://www.vulncheck.com/advisories/grav-before-2.0.25-sandbox-escape-via-array-filter> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-100668](https://www.cve.org/CVERecord?id=CVE-2026-100668), CVE Terms of Use, modified 2026-09-28
- NVD: [CVE-2026-100668](https://nvd.nist.gov/vuln/detail/CVE-2026-100668), Public domain, modified 2026-09-28

---

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