CVE-2026-76846: Grav before 2.0.16 Information Disclosure via Twig Sandbox

Published Aug 25, 2026
·
Updated

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 configaccess is enabled.

Affected Software

1 affected component
grav<2.0.16

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Grav to a version that resolves this vulnerability.

    Fixed in 2.0.16
  2. Configuration

    Update Grav to v2.0.16 to fix the incomplete default denylist in the Twig sandbox configuration that allows access to sensitive system configuration secrets when config_access is enabled.

    Twig Sandbox (Grav) default denylist = complete default denylist to block access to system configuration secrets (e.g., prevent access to system.cache.redis.password via config.get()/config.toArray())

Event History

Aug 25, 2026
CVE Published
via MITRE·01:30 AM
Data Sourced
via MITRE·01:30 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Grav installations before 2.0.16 are affected when Twig sandboxing permits page editors and config_access is enabled. The attacker needs page-edit permission; exploitation does not require prior administrative access.

2

What information could an attacker obtain?

An attacker can use config.get() or config.toArray() in Twig templates to read system configuration values that the incomplete denylist does not block. This can include sensitive secrets such as system.cache.redis.password.

3

What can be done if updating is not immediately possible?

Disable config_access for page editors or otherwise remove their ability to edit pages containing Twig templates. This prevents the stated template-based access to configuration values.

4

How can I determine whether an installation may have been exposed?

Check whether the installation is running a Grav version earlier than 2.0.16, has config_access enabled, and grants page-edit permissions. Review Twig templates created or modified by page editors for calls to config.get() or config.toArray().

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203