Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as publisher (api.media/pages.write)
-
DeliveryUpload payload via /api/v1/blueprint-upload to theme templates
-
ExploitAuthor page Twig that includes the file
-
ExecutionTrusted template renders outside sandbox
-
PersistExecute commands as web-server user
-
ImpactRead API secret and hashes, create super-admin
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated Grav publisher account possessing BOTH api.media.write and api.pages.write permissions; unauthenticated exploitation is explicitly not possible. The API plugin (getgrav/grav-plugin-api) must be installed and the blueprint-upload endpoint (POST /api/v1/blueprint-upload) reachable; Grav 1.7 is not affected because it has no API plugin or content sandbox. The RCE trigger needs Twig processing of the uploaded file: a publisher lacking admin.pages_twig cannot enable page-body Twig by default, so the confirmed practical trigger is the Form plugin's 'process: message' action rendering sandboxed Twig - making a present/enabled Form plugin a realistic precondition for the demonstrated path. Limiting factors: valid publisher credentials, the two specific write permissions, the API plugin being installed, and a Twig-rendering mechanism the publisher can invoke. |
| Impact | This is a genuine but authentication-gated priority, not a drive-by threat. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) and the 8.7 High score are consistent with the advisory: a remote, low-complexity attack that nonetheless REQUIRES an authenticated publisher account holding both api.media.write and api.pages.write. PR:L is the decisive mitigating signal - the GHSA explicitly states unauthenticated exploitation is not possible, so this is a privilege-escalation/post-authentication RCE rather than a perimeter-breaking flaw. Impact is maximal once the precondition is met (VC:H/VI:H/VA:H → full read/write/execute as the web-server user, enabling theft of the API signing secret and password hashes and creation of a super-admin). The vuln.today Decision label is this_week (not act_now/emergency). No EPSS score, no CISA KEV listing, and no confirmed standalone exploit tool were provided, so there is no evidence of active mass exploitation; the realistic threat model is an insider or a compromised/low-trust publisher account escalating to full server control. Treat as a near-term patch priority for any Grav 2.x install running the API plugin with multiple content-editor accounts, but it does not carry zero-day urgency. |
| Exploit ScenarioDerived | An attacker who already holds (or has phished/compromised) a Grav publisher account with media- and page-write rights calls POST /api/v1/blueprint-upload to write a payload file into the active theme's Twig templates folder, which the engine trusts by design. They then author page content - for example a Form plugin 'process: message' action in page frontmatter, which renders as sandboxed Twig - that includes the uploaded file, causing it to execute outside the sandbox and run OS commands as the web-server user. The GHSA documents a confirmed working trigger on a 2.2.15 install with the Form plugin, but no packaged public exploit tool was supplied in the input. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 21, 2026
Remote code execution in the Grav API plugin (getgrav/grav-plugin-api) 1.0.0 through 1.1.3 lets an authenticated publisher holding api.media.write and api.pages.write upload a file into a theme's Twig template folder via POST /api/v1/blueprint-upload, then include it to run code as the web-server user. Unauthenticated exploitation is not possible, and the demonstrated trigger requires a Twig-rendering path such as the Form plugin's process: message action. No public exploit code or CISA KEV entry was identified at time of analysis, and the vendor shipped a fix in 1.1.4.
RemediationAI
Upgrade getgrav/grav-plugin-api to 1.1.4 or later; vendor-released patch: 1.1.4. In that release, uploads into and deletes from theme and plugin folders through the blueprint-upload endpoint require api.config.write (the permission that edits theme and plugin settings), Twig template folders and any location outside user/ require super-admin access, and filenames ending in a space or dot or containing control or invisible formatting characters are refused in both the settings-field and page-media upload paths. Grav 1.7 installations without the API plugin are not affected. The supplied advisory does not describe a workaround separate from upgrading; exploitation requires valid publisher credentials with both api.media.write and api.pages.write and is not possible unauthenticated.
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
Grav's API plugin exposes BlueprintUploadController::upload(), which in 1.0.0 through 1.1.3 checks only api.media.write while letting the caller choose both the destination and scope. The path resolver accepts any stream under user/, including theme://templates, themes://<theme>/templates and plugins://<plugin>/templates, so a publisher with page-editing rights can place attacker-authored content directly beside legitimate Twig templates; DELETE /api/v1/blueprint-upload has equivalent reach for deleting theme and plugin template files. Because Twig's include ignores file extensions and GravSourcePolicy::isTrusted() deliberately treats file-backed templates as trusted so content may include theme partials, an uploaded file in the templates folder can be included and rendered outside the content sandbox, yielding command execution under the web-server user. Filename tricks such as 'rce.twig ' are a secondary bypass; the core defect is the missing authorization boundary, classed as CWE-94 code injection with CWE-284 and CWE-434 aspects in the advisory. A publisher lacking admin.pages_twig cannot enable page-body Twig by default, so the confirmed practical trigger is the Form plugin's 'process: message' action, which the Form plugin renders as sandboxed Twig and which can include the uploaded file.
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
Remote, low-complexity but requires an authenticated publisher with media and page write rights so PR:L; code execution as web-server user yields full C/I/A high.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Grav API plugin from 1.0.0 before 1.1.4 contains a remote code execution vulnerability that allows publishers with media and page write rights to write theme template files through the blueprint-upload endpoint. Attackers can upload a file into a theme's Twig templates folder and include it from sandboxed page Twig to execute commands as the web-server user.
Technical POC Analysis
CWE-94 (Improper Control of Generation of Code), with contributing CWE-284 (Improper Access Control) and CWE-434 (Unrestricted Upload of Dangerous File Type).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
The Grav API plugin, used by our content management platform, contains a high-severity remote code execution vulnerability that allows an authenticated publisher-level user to execute arbitrary code on the web server. Because exploitation requires valid API credentials and write permissions, the primary risk is from malicious insiders or compromised low-privilege accounts, potentially leading to full server compromise and data breach. The vendor has released a fixed version, and immediate action is required to close this exposure.
Apply vendor patch: upgrade to Grav API plugin version 1.1.4. Additionally, restrict API access to trusted networks, limit publisher-level permissions to essential users, and disable the Form plugin's process: message action if not required.
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
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
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-132200
GHSA-jj64-7gcj-mh3j
NVD
CVE.org
EPSS
Exploit-DB