Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as Grav page editor
-
DeliverySend API requests with Host: pages header
-
ExploitWrite config YAML via page folders and .meta.yaml sidecars
-
ExecutionRegister unsandboxed Twig namespace over page folder
-
PersistInclude uploaded template to escape sandbox
-
ImpactExecute shell commands as web server user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A02:2025 - Security Misconfiguration
ASVS 5.0
V13 - Configuration Configuration hardening
|
| Exploitation Conditions | Requires an authenticated account that can edit pages and page media (PR:L) - for example the stock editor role via the REST API /api/v1. The deployment must answer unrecognized Host values (a default or catch-all virtual host) AND the user/env/ directory must be absent (the shipped layout), so that Host: pages maps user/pages into the configuration environment; the advisory notes this is the common single-site-server layout. Affected only on Grav 2.x from 2.0.0 through 2.2.17 (2.0.0-beta.2 introduced the Twig content sandbox that this escapes); 1.7 has the fallback but no sandbox and is not patched here. Limiting factors: a valid page/media editor account is needed, and configuring the web server to answer only its own ServerName (with a catch-all virtual host that returns an error) prevents the forged Host from ever reaching Grav. |
| Impact | Signals are mostly consistent and point to a real, near-term priority for anyone running an affected Grav site. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H) gives 8.7 (High): network-reachable, low complexity, but requiring low privileges (PR:L) - an authenticated page/media editor account, not an anonymous attacker. The vuln.today decision label is this_week, consistent with a High-impact RCE that is not yet mass-exploited. No EPSS score, no CISA KEV listing, and no standalone public exploit reference are present in the input, so there is no evidence of active exploitation; however, the GHSA advisory describes a complete working reproducer (it runs sha256sum as the web server user through the API), so a capable attacker holding an editor account could reproduce it. The outcome is full code execution as the web server user, access to every server secret, and a forged super-admin token, so technical impact is total. The main brakes on real-world risk are the PR:L requirement plus the deployment precondition that the web server hands unknown Host values to Grav (a catch-all/default virtual host with user/env/ absent) - the advisory states this is the common single-site layout. Net: treat as a genuine priority (patch this week) for exposed multi-user Grav instances; lower urgency only where no untrusted editor accounts exist or the server rejects unknown Host headers. |
| Exploit ScenarioDerived | An attacker holding a low-privilege Grav editor account (for example the stock editor role via /api/v1) sends REST API requests carrying the header Host: pages, which turns the publisher-writable user/pages tree into Grav's configuration environment. By crafting nested page folders and a media .meta.yaml sidecar, they register an unsandboxed Twig namespace and include an uploaded .txt template that executes as unsandboxed Twig, running shell commands as the web server user. The GHSA advisory documents a working reproducer, though no separate public exploit code is referenced in the input. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 18, 2026
Grav 2.x from 2.0.0 through 2.2.17 lets an authenticated page and media editor (for example the stock editor role talking to /api/v1) escape the Twig content sandbox by sending requests with a Host: pages header, registering an attacker-controlled Twig namespace and executing shell commands as the web server user. The flaw only lands where user/env/ is absent (the shipped single-site layout) and where the web server hands unrecognized Host values to Grav, as a default or catch-all virtual host does; the vendor rates it High and the assessed vector (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) reflects that a valid editor account is required. No CISA KEV entry and no public exploit code were identified at time of analysis, though the advisory publishes a full API-based reproducer, so affected operators should plan the upgrade this week.
RemediationAI
Vendor-released patch: Grav 2.2.18. Upgrading removes the escape: a folder already served by another user:// stream (pages, data, accounts) or lying inside one is no longer accepted as the Host-derived environment folder, and a Host value that is not a single folder name - containing '/' or '\', or starting with a dot - gets no environment folder at all. As hardening the vendor also advises updating the API plugin to 1.1.6, which refuses a media rename whose source or target is a *.meta.yaml or media_order.yaml file. Where upgrading cannot happen immediately, the documented workaround is to make the web server answer only for the site's own names - a ServerName plus a catch-all virtual host that returns an error - so a forged Host header never reaches Grav; the trade-off is that virtual-host setups relying on default-host routing for legitimate traffic will need explicit server names for every served site. Advisory: https://github.com/getgrav/grav/security/advisories/GHSA-v6jh-qc33-h6gf.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-15, external control of a configuration setting, compounded by CWE-73 path control and CWE-94 code generation. When the user/env/ directory does not exist, Grav's Setup class joins the request's Host header onto the user:// stream and accepts whatever existing directory results as the environment folder. Sending 'Host: pages' therefore makes user/pages - the very tree publishers can write - the configuration environment, and every user/pages/config/**/*.yaml file is merged over the site configuration. A publisher assembles that YAML from primitives they already control: nested page folders whose names spell out a configuration key path, plus a media .meta.yaml sidecar written by setting a file's metadata. Together these inject a themes.<theme>.streams.schemes.theme.prefixes entry that turns one of the publisher's own page folders into a Twig namespace; templates loaded through a namespace are not sandboxed, so a page that includes an uploaded .txt file from that namespace executes it as unsandboxed Twig. The same overlay can enable DebugBar for anonymous 'Host: pages' requests and expose full plugin configuration, including mail credentials, and 'Host: media' combined with the API plugin's media rename of a *.meta.yaml sidecar can widen the read_file allowlists. The fallback itself dates back to 0.9.6, but it only became a sandbox escape when the Twig content sandbox arrived in 2.0.0-beta.2; Grav 1.7 carries the same fallback without a sandbox to escape.
Know when Grav gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable REST API, low complexity against the common default-vhost layout, but requires a low-privilege editor account (PR:L); code execution as web server user yields full C/I/A with no scope change.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
CWE-15 (External Control of System or Configuration Setting), with CWE-73 and CWE-94 as the downstream consequences the advisory also lists.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-130744 is a high-severity sandbox escape in Grav 2.x (2.0.0-2.2.17) that allows any authenticated editor to execute arbitrary shell commands as the web server user. This elevates a low-privilege content editor into full server compromise, risking theft of sensitive data and disruption of public-facing services; leadership should prioritize remediation because the attack vector requires only a valid editor account and the advisory includes a full API-based reproducer.
No vendor-released patch identified at time of analysis; interim mitigations include restricting editor accounts to trusted users, configuring web servers to reject unrecognized Host headers, ensuring the user/env/ directory is present per site to avoid the vulnerable layout, and disabling page/media editing or API access for low-privilege roles until a patch is available.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Server-side template injection (SSTI) in Grav (getgrav/grav) prior to 1.8.0-beta.27 allows an authenticated attacker hol
Broken access control in Grav CMS (CWE-285) before 1.8.0-beta.27 lets an authenticated editor-level user escalate their
A Remote Code Execution (RCE) vulnerability in Grav CMS v1.7.48 allows an authenticated admin to upload a malicious plug
Grav is a file-based Web platform. Rated critical severity (CVSS 9.9), this vulnerability is remotely exploitable, low a
GravCMS 1.10.7 allows unauthenticated remote attackers to write arbitrary YAML configuration files, leading to full serv
Remote code execution in Grav CMS 2.0.4 (fixed in 2.0.7) lets an authenticated user holding the admin.pages or api.pages
Remote code execution in Grav CMS before 2.0.15 allows attackers holding page-edit or blueprint-config privileges to wri
Vertical privilege escalation in Grav CMS before 2.0.14 lets a delegated administrator holding only the admin.users perm
Stored cross-site scripting in Grav CMS before 2.0.15 lets authenticated editors smuggle JavaScript event handlers past
Server-side request forgery (SSRF) in Grav CMS versions prior to 1.7.49.5 allows remote authenticated attackers to make
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, Grav CMS is vulnerable to a Server-Side Template Injection (S
Remote code execution in Grav CMS before 2.0.13 allows authenticated low-privilege users to plant and execute arbitrary
EUVD-2026-128595
GHSA-chpm-qp64-6f93
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB