CVE-2026-92917
published high CVSS 4.0 · 8.7Grav 2.0.0-rc.1 through 2.0.21 Configuration Disclosure via print_r
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| getgrav | — | grav2.0.0-rc.1 to < 2.0.22 (affected · semver) · 2.0.22 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.5 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| getgrav | grav | 2.0.0-rc.1 to < 2.0.22 (affected · semver)2.0.22 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
References
2- GitHub Security Advisory (GHSA-rfr9-7h4p-gx2x) https://github.com/getgrav/grav/security/advisories/GHSA-rfr9-7h4p-gx2x
- VulnCheck Advisory: Grav 2.0.0-rc.1 through 2.0.21 Configuration Disclosure via print_r https://www.vulncheck.com/advisories/grav-2.0.0-rc.1-through-2.0.21-configuration-disclosure-via-print-r
Provider assertions
2VulnCheck · cna
Grav 2.0.0-rc.1 through 2.0.21 Configuration Disclosure via print_r
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 571d00f0d80223e17a5c65be2ac4694337e14b4c3fede7f7a33507d22507f726
- Ingested
- 23 Sep 2026, 09:40:21 UTC
- Source record
- Official CVE record