Skip to main content
VulnerabilityPublished Updated

getgrav/grav · Duplicate Advisory: Grav: config_denied_paths default list omits `system`, exposing real secrets (e.g. system.cache.redis.password) via the Twig sandbox when config_access is enabled

Affects getgrav/gravSource GCVE Database

0

CVSS 7.5 High.

Data as of 18 Sep 2026, 01:27 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What to do

Affected software

ProductAffectedFixed in
Packagistgetgrav/gravAffected–Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade Grav to version 2.0.16 or later where the denylist in the Twig sandbox configuration has been corrected to include the 'system' path, preventing unauthorized access to sensitive configuration secrets. If upgrading is not immediately possible, consider disabling config_access or restricting page-edit permissions to trusted users only.

Description

Grav versions before 2.0.16 have an incomplete default denylist in the Twig sandbox configuration, which allows attackers with page-edit permissions to access sensitive system configuration secrets such as system.cache.redis.password when config_access is enabled. This vulnerability can lead to exposure of critical secrets through Twig templates.

References

Community reviews

Loading reviews…