8.8High

CVE-2026-130744Grav 2.0.0 before 2.2.18 RCE via Host Header Environment Folder

getgrav grav Published: (10 hours ago)

Description

Grav from 2.0.0 before 2.2.18 contains a remote code execution vulnerability that allows page editors to escape the Twig sandbox by sending requests with a Host: pages header. Attackers can write configuration YAML through page folders and media .meta.yaml sidecars to register an unsandboxed Twig namespace and run shell commands as the web server user.

Weakness (CWE): CWE-15

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
getgrav grav 2.0.0 – < 2.2.18, fixed 2.2.18

References and patches