Skip to content

CVE-2026-61842 Grav: Twig sandbox config exfiltration via grav.offsetGet + dump filter (CVE-2026-44738 bypass)

MediumCVSS 6.5 EPSS 0.44%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
PHP

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
getgrav/grav(Packagist) < 2.0.2 2.0.2 Fixed
getgrav/grav = < 2.0.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
getgrav/grav = < 2.0.2 No fix listed
getgrav/grav(Packagist) < 2.0.2 2.0.2

References