Vulnerability · Published Aug 19, 2026 · Assigned by GitHub_M
CVE-2026-61842Grav: Twig sandbox config exfiltration via grav.offsetGet + dump filter (CVE-2026-44738 bypass)
Medium 6.5
In plain English
A medium-severity information exposure in grav from getgrav. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Grav is a file-based Web platform. Prior to 2.0.2, the Grav Twig content sandbox permits grav.offsetGet('config') to return the raw configuration object and permits json_encode, print_r, yaml_encode, and string filters to serialize that object without passing through GravSecurityPolicy::checkMethodAllowed. A user with page-author permissions can render sandboxed content that exposes plugins.* configuration secrets, including SMTP credentials, API keys, and plugin database credentials. This issue is fixed in version 2.0.2.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | getgrav/grav | 2.0.2 | GHSA-mc5q-6hpj-rp7j |
Affected products (as reported)
Weakness: CWE-200 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
References
- https://github.com/getgrav/grav/security/advisories/GHSA-mc5q-6hpj-rp7j x_refsource_CONFIRM
- https://github.com/getgrav/grav/commit/7efe70574e4cf01a251318478c13673029e93eb6 x_refsource_MISC
- https://github.com/getgrav/grav/releases/tag/2.0.2 x_refsource_MISC