# CVE-2026-92917: Grav 2.0.0-rc.1 through 2.0.21 Configuration Disclosure via print_r

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/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.42%, higher than 38% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-17T11:16:45.044Z
- Modified: 2026-09-19T03:17:18.167Z
- Weaknesses: CWE-200
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: VulnCheck

## Description

Grav is a flat-file CMS. In versions 2.0.0-rc.1 through 2.0.21, the Twig content sandbox fails to restrict the dump and serialize filters (print_r, vardump, json_encode, yaml_encode, string): GravExtension::assertSandboxDumpSafe() determines sandbox state by calling SandboxExtension::isSandboxed() without a Source argument, which reports only the global sandbox flag that Grav never enables, so the guard added in GHSA-mc5q-6hpj-rp7j never executes. As a result, an authenticated user with page-edit rights can render {{ config|print_r }} in page content with Twig processing enabled and dump Grav's entire merged configuration — print_r reflects the real Config object held in a private property of the SandboxConfig facade, bypassing its path redaction — exposing plugin secrets such as SMTP credentials, API tokens, webhook secrets and cache backend passwords. Grav 1.7 is not affected because it ships no Twig content sandbox. The issue is fixed in 2.0.22, where the affected filters are registered with Twig's needs_is_sandboxed flag.

(As written by CVE List.)

## Affected

- getgrav grav: from 2.0.0-rc.1 before 2.0.22 (not affected: 2.0.22)

## Every score

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

## References

- <https://github.com/getgrav/grav/security/advisories/GHSA-rfr9-7h4p-gx2x> (exploit, vendor-advisory)
- <https://www.vulncheck.com/advisories/grav-2.0.0-rc.1-through-2.0.21-configuration-disclosure-via-print-r> (third-party-advisory)

## Sources

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

---

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