CVE-2026-130744 PUBLISHED

Grav 2.0.0 before 2.2.18 RCE via Host Header Environment Folder

Assigner: VulnCheck
Reserved: 17.11.2026 Published: 18.11.2026 Updated: 18.11.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS Score: 8.7

Product Status

Vendor getgrav
Product grav
Versions Default: unaffected
  • affected from 2.0.0 to 2.2.18 (excl.)
  • Version 2.2.18 is unaffected

References

Problem Types

  • External Control of System or Configuration Setting CWE