Skip to main content

Grav CMS EUVDEUVD-2026-128595

| CVE-2026-130744 HIGH
External Control of System or Configuration Setting (CWE-15)
2026-11-18 VulnCheck GHSA-chpm-qp64-6f93
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as Grav page editor
  2. Delivery
    Send API requests with Host: pages header
  3. Exploit
    Write config YAML via page folders and .meta.yaml sidecars
  4. Execution
    Register unsandboxed Twig namespace over page folder
  5. Persist
    Include uploaded template to escape sandbox
  6. Impact
    Execute 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 1.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

grav 2.0.0 <2.2.18

Affected Packages

euvd grav fix: 2.2.18

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

Vendor (VulnCheck) PRIMARY 8.7 HIGH
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
vuln.today AI 8.8 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 18, 2026 - 13:02 EUVD
CVE Published
Nov 18, 2026 - 11:34 cve.org
HIGH 8.7

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
1.0%
Top 36% exploitable
Prevalence
Low
niche open-source flat-file CMS, modest real-world deployment footprint
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 1.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Grav

View all
CVE-2025-66294 HIGH POC
8.7 Dec 01

Server-side template injection (SSTI) in Grav (getgrav/grav) prior to 1.8.0-beta.27 allows an authenticated attacker hol

CVE-2025-66301 HIGH POC
8.6 Dec 01

Broken access control in Grav CMS (CWE-285) before 1.8.0-beta.27 lets an authenticated editor-level user escalate their

CVE-2025-50286 HIGH POC
8.1 Aug 06

A Remote Code Execution (RCE) vulnerability in Grav CMS v1.7.48 allows an authenticated admin to upload a malicious plug

CVE-2024-34082 CRITICAL POC
9.9 May 15

Grav is a file-based Web platform. Rated critical severity (CVSS 9.9), this vulnerability is remotely exploitable, low a

CVE-2021-47812 CRITICAL POC
9.8 Jan 16

GravCMS 1.10.7 allows unauthenticated remote attackers to write arbitrary YAML configuration files, leading to full serv

CVE-2026-65008 CRITICAL POC
9.3 Jul 21

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

CVE-2026-75827 CRITICAL POC
9.3 Aug 18

Remote code execution in Grav CMS before 2.0.15 allows attackers holding page-edit or blueprint-config privileges to wri

CVE-2026-75837 CRITICAL POC
9.3 Aug 18

Vertical privilege escalation in Grav CMS before 2.0.14 lets a delegated administrator holding only the admin.users perm

CVE-2026-75828 CRITICAL POC
9.3 Aug 18

Stored cross-site scripting in Grav CMS before 2.0.15 lets authenticated editors smuggle JavaScript event handlers past

CVE-2025-66844 CRITICAL POC
9.1 Dec 15

Server-side request forgery (SSRF) in Grav CMS versions prior to 1.7.49.5 allows remote authenticated attackers to make

CVE-2025-66299 HIGH POC
8.8 Dec 01

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

CVE-2026-72819 HIGH POC
8.7 Aug 14

Remote code execution in Grav CMS before 2.0.13 allows authenticated low-privilege users to plant and execute arbitrary

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy