Description
Grav CMS before 2.0.16 fails to filter system, site, and theme configuration arrays in sandboxed Twig renders, allowing content editors to read sensitive configuration values. Attackers with page-content edit access can access raw configuration arrays including secrets like cache credentials by using dot notation in Twig templates, bypassing the config_denied_paths restrictions.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| getgrav | grav | < 2.0.16 | 2.0.16 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | getgrav/grav | < 2.0.16 | 2.0.16 | GHSA-p597-crqc-m349 |
References
- GitHub Security Advisory (GHSA-p597-crqc-m349) vendor-advisory
- VulnCheck Advisory: Grav CMS before 2.0.16 Information Disclosure via Twig Sandbox Bypass third-party-advisory