Skip to main content

Grav API plugin CVE-2026-134253

| EUVDEUVD-2026-132200 HIGH
Code Injection (CWE-94)
2026-11-21 VulnCheck GHSA-jj64-7gcj-mh3j
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 publisher (api.media/pages.write)
  2. Delivery
    Upload payload via /api/v1/blueprint-upload to theme templates
  3. Exploit
    Author page Twig that includes the file
  4. Execution
    Trusted template renders outside sandbox
  5. Persist
    Execute commands as web-server user
  6. Impact
    Read 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.

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

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

Alert me

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

grav 1.0.0 <1.1.4

Affected Packages

euvd grav fix: 1.1.4

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

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

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.

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 21, 2026 - 18:02 EUVD
CVE Published
Nov 21, 2026 - 16:35 cve.org
HIGH 8.7

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
1.3%
Top 30% exploitable
Prevalence
Low
niche flat-file CMS, and only installs running the optional Grav API plugin
Social Media
2
Sightings
Data Quality
5 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.3%
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

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

Code Injection CRITICAL

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.

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