CVE-2026-130744

8.8High

Published 18 Nov 2026 · NVD status: Deferred · AI triage by gemini-3.1-flash-lite

8.8CVSS

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.

remediation — bash
$ composer update getgrav/grav

AI-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.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-130744