CVE-2026-130744
8.8HighPublished 18 Nov 2026 · NVD status: Deferred · AI triage by gemini-3.1-flash-lite
High
0CVSS v3.110
- Attack vector
- Network
- Complexity
- Low
- Privileges
- Low
- User action
- None
- Impact
- Full C/I/A compromise
- Weakness
- CWE-15
What an attacker gets
Authenticated page editors can execute arbitrary shell commands as the web server user. Attackers need an account with page editing permissions to exploit this.
Root cause
The application fails to properly sanitize the Host header, allowing attackers to escape the Twig sandbox and write malicious configuration files.
Affected versions
Grav 2.0.0 through 2.2.17
CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Fix & remediation
Upgrade to Grav 2.2.18 or later. If you cannot patch immediately, restrict access to the administrative interface to trusted users only.
$ composer update getgrav/gravAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD 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.