Skip to main content

Grav CMS CVE-2026-130743

| EUVDEUVD-2026-128815 HIGH
External Control of File Name or Path (CWE-73)
2026-11-18 VulnCheck GHSA-9hrq-9p5w-qh7j
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 account
  2. Delivery
    Upload YAML file as page media
  3. Exploit
    Name it as the page template
  4. Execution
    Core loads it as trusted blueprint
  5. Persist
    Dynamic field invokes static PHP method
  6. Impact
    Execute PHP as web server user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
Exploitation Conditions

Exploitation requires an authenticated Grav publisher account with page-write rights; the two code-execution paths (uploaded blueprint and form.flash_folder) additionally require media-write rights. Specific prerequisites per path: the import@ directive path abuses a page-authored form's import@ resolver to read any YAML-parseable file (account files, saved plugin config, *-private.php secrets) and is present in older 2.x; the uploaded-blueprint path requires uploading a YAML-bearing media file and naming it as the page's free-text template header, and affects only 2.0.15 and later; the form.flash_folder path requires a page-frontmatter form pointing form.flash_folder at user://blueprints/pages. Limiting factors: no anonymous/unauthenticated RCE - a trusted publisher role is mandatory; the import@ read path can only disclose files that parse as a YAML mapping or single scalar (logs and most PHP source are unreadable); forging a super-admin token via leaked secrets additionally depends on the API plugin being installed. The same directive placed directly in page frontmatter is correctly refused, so the file-loading trust boundary is the actual trigger.

Impact

This is a genuine high-priority issue for Grav operators, though it is not a mass-exploitation emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) with VC:H/VI:H/VA:H and the vuln.today 'this_week' decision label align: network-reachable, low complexity, but requiring an authenticated publisher account (PR:L), delivering full confidentiality, integrity and availability impact via secret disclosure and PHP code execution as the web server user. There is no CISA KEV listing and no EPSS score supplied, and the only reference is the vendor GHSA advisory - so there is no signal of widespread active exploitation; the realistic threat model is an insider or a compromised/low-trust publisher account, or chained with account takeover, rather than opportunistic internet-wide scanning. The advisory is detailed and authoritative (discovered by Anthropic's OSS Scanner, published by the vendor and reported by VulnCheck), describing working reproducers for all three paths, which raises confidence that exploitation is practical once an attacker holds the required role. No conflicting signals were found between the CVSS vector and the description; both agree exploitation requires an authenticated low-privileged (publisher) role rather than remote-unauthenticated access.

Exploit ScenarioDerived

An attacker who controls (or has compromised) a Grav publisher account - holding page-write and, for the code-execution paths, media-write rights - plants or selects an attacker-controlled YAML file that Grav loads as a trusted blueprint. Through the import@ directive they first read the super admin's bcrypt hash and the site's private keys from a public form, or they upload a YAML/PHP payload and have a dynamic blueprint field invoke a static PHP method (e.g. Installer::replaceFile) to drop and execute PHP as the web server user. The advisory documents working reproducers for all three paths (import@, uploaded media template, and form.flash_folder), though no separate public exploit code is referenced in the supplied data.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% 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 (2.0.0 through 2.2.17) lets an authenticated publisher account - one holding page-write rights, plus media-write rights for the code-execution paths - convert its content privileges into secret disclosure or PHP execution by placing attacker-chosen YAML into a position the CMS treats as a trusted blueprint. Three distinct routes are involved: an import@ directive in a page-authored form that resolves arbitrary file paths and stream URIs and prints them back in a public form (leaking the super-admin bcrypt hash, saved plugin configuration, site keys and *-private.php secrets), an uploaded media file named as the page template header that is loaded as a trusted blueprint and can invoke arbitrary public static PHP methods, and a page-frontmatter form that redirects form.flash_folder into user://blueprints/pages to have anonymous requests write a YAML blueprint. Impact ranges from account-hash and key disclosure (which, with the API plugin present, can yield a forged super-admin token) to PHP execution as the web server user; no public exploit code was identified at time of analysis, although the vendor advisory publishes detailed reproducers, and exploitation is not confirmed in the wild (no CISA KEV listing).

RemediationAI

Vendor-released patch: upgrade to Grav 2.2.18 (composer/getgrav/grav >= 2.2.18); the advisory groups all three paths under a single core fix, so partial upgrading does not close them. Be aware of the behavioural change before deploying: after 2.2.18 a blueprint is trusted only if it resides under blueprints://, plugins:// or themes://, page-authored import@ directives may name only blueprints:// targets, a page template given as a stream URI or file path falls back to the default blueprint, and form.flash_folder is honoured only from a trusted blueprint - custom blueprint files kept outside those streams will stop working and must be moved into user/blueprints or into a directory added to the blueprints:// stream. Because every path requires an authenticated publisher account (page write, plus media write for the two code-execution routes), reducing or auditing publisher and media-write grants limits exposure until patching is complete, and sites running the API plugin should treat leaked secret files as credential compromise since a token signed with the API plugin's private configuration is accepted as super admin. Advisory: https://github.com/getgrav/grav/security/advisories/GHSA-3x2v-6jqq-7gq8.

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 an unsound trust model for blueprint files, classified as CWE-73 (external control of file name or path) and mapped by the vendor to CWE-94, CWE-200 and CWE-470 as well. Grav's Blueprint::__construct() marks a blueprint as trusted whenever it was built from a file with no injected items - regardless of where that file came from - and trusted callers bypass the Class::method allowlist that otherwise constrains dynamic field callables, so a planted YAML document can reach any public static PHP method (CWE-470). Three code paths violate the boundary: (1) the Form plugin's import@ directive is resolved before the provenance checks applied to data-*@ and config-*@ directives, so it never verifies the blueprint came from a page; the resolver accepts any existing path or a name joined to a page-chosen stream such as user://accounts or config://, and the parsed mapping is embedded and rendered by the select template - limited to files that parse as a YAML mapping or a single scalar, so logs and most PHP source remain unreadable; (2) the page's free-text template header is used as the blueprint name and the loader accepts any existing path or stream URI, so a .txt media upload containing YAML becomes a trusted blueprint (this route only exists from 2.0.15, when page-media selection was introduced), and Flex pages reach the same loader without going through the page loader, which is why the fix belongs at file loading; (3) form.flash_folder taken from page frontmatter is never checked for blueprint trust, so FormFlash writes posted data into and deletes subfolders of an attacker-chosen directory, allowing an anonymous task=store-state post to plant index.yaml in user://blueprints/pages and, on clear-state or form completion, to delete simply-named folders under user/ - deleting user/accounts on an API-plugin site reopens first-run setup. The CPE getgrav:grav covers all 2.x releases in scope.

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 with low complexity, but a publisher account is required so PR:L; blueprint-driven PHP execution and secret disclosure yield full C/I/A impact 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 an insecure blueprint trust vulnerability that allows publisher accounts to read secrets and execute PHP by planting or selecting attacker-controlled blueprint files. Attackers can abuse the import@ directive, uploaded YAML media named as the page template, or form.flash_folder to leak password hashes and keys or invoke static PHP methods for code execution.

Technical POC Analysis

The bug class is CWE-73 (external control of file name or path); the advisory also files it under CWE-94, CWE-200 and CWE-470, which reflects the three separate sinks that share one core defect in ge…

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

A high-severity vulnerability in Grav 2.x (versions 2.0.0 through 2.2.17) allows an authenticated publisher-level user to escalate privileges and potentially execute arbitrary PHP code or disclose sensitive secrets, including super-admin password hashes and site keys. This puts the entire CMS installation at risk, as an attacker with minimal content-editing rights could compromise administrative accounts and execute code on the server. Leadership should prioritize remediation because this flaw undermines the trust boundary between content editors and system administrators, potentially leading to full site takeover and data breach.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 74% exploitable
Prevalence
Medium
popular open-source flat-file PHP CMS, moderate self-hosted footprint
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 0.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
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