Description
Grav before 2.0.16 contains an incomplete default denylist in the Twig sandbox configuration that fails to block access to system configuration secrets. Attackers with page-edit permission can use config.get() or config.toArray() in Twig templates to retrieve sensitive values like system.cache.redis.password when config_access is enabled.
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-xjw5-q542-3vmr |
References
- GitHub Security Advisory (GHSA-xjw5-q542-3vmr) vendor-advisory
- VulnCheck Advisory: Grav before 2.0.16 Information Disclosure via Twig Sandbox third-party-advisory