Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as publisher account
-
DeliveryUpload YAML file as page media
-
ExploitName it as the page template
-
ExecutionCore loads it as trusted blueprint
-
PersistDynamic field invokes static PHP method
-
ImpactExecute 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
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 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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.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
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.
Apply vendor patch.
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-128815
GHSA-9hrq-9p5w-qh7j
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB