Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local account or process on host
-
DeliveryIdentify predictable lock file path for target Grav job
-
ExploitPlace symlink at lock path pointing to target file
-
ExecutionWait for Grav Scheduler to execute next job run
-
PersistScheduler follows symlink and overwrites target file
-
ImpactTarget file corrupted or destroyed
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
|
| Exploitation Conditions | Exploitation requires the attacker to have local filesystem access on the host running Grav CMS - specifically, the ability to create files in the world-writable system temp directory (e.g., /tmp). The Grav Scheduler must be configured and actively running scheduled jobs; if no jobs are scheduled or the Scheduler is disabled, no lock files are created and the vulnerability cannot be triggered. The attacker must act before the scheduled job executes, placing the symlink at the precise predictable lock file path. Exploitation is limited to files the web server process user (e.g., www-data) has write permission on - the attacker cannot escalate beyond that permission boundary solely through this vulnerability. Non-default conditions that expand risk include shared hosting with multiple tenants on the same OS user group, or misconfigured temp directories with overly permissive ACLs. |
| Impact | The CVSS 4.0 base score of 8.6 reflects high impact across confidentiality, integrity, and availability metrics, though the local attack vector (AV:L) substantially constrains the exploitable population to actors who already have local shell or file-system access on the target host. The PR:N metric in the provided vector is defensible given the world-writable temp directory - no special OS privileges are needed beyond having a local process - but this also means exploitation depends entirely on whether the attacker has any local foothold at all. EPSS data is not supplied, and the absence of a KEV entry suggests no confirmed widespread active exploitation as of analysis time. The real-world risk is highest in shared hosting environments or multi-tenant servers running Grav where untrusted users share the same filesystem; even a mid-sized municipal IT team in leszno deploying Grav on a shared PHP host should treat this as urgent given the potential to overwrite web application configuration files and achieve secondary code execution. The primary impact is integrity and availability (overwriting config, credential, or code files), with confidentiality impact being indirect rather than direct as the write payload is a fixed job ID string. The 'Information Disclosure' tag from the intelligence source is not well-supported by the description and may reflect secondary risk from overwritten credential files rather than direct data exfiltration. |
| Exploit ScenarioDerived | An attacker with a low-privilege local account on the shared web host identifies the predictable lock file path used by Grav's Scheduler (e.g., /tmp/grav-job-<name>.lock), creates a symlink at that path pointing to a sensitive web application file such as the Grav user configuration or a PHP file writable by the web server, and waits for the next scheduled job to execute. When the Scheduler runs, it resolves the symlink transparently and overwrites the target file with the job ID string, corrupting or destroying its content. No public exploit code has been identified at time of analysis, though the technique requires only standard POSIX symlink operations available to any local user. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 25, 2026
Symlink following in Grav CMS Scheduler's Job::createLockFile() enables local attackers to overwrite arbitrary files writable by the web server process, affecting all versions prior to 2.0.16. The flaw arises because lock files are written to predictable paths inside a world-writable temp directory with no verification that the target path is not an attacker-controlled symlink; the next scheduled job execution blindly writes the job ID string to whatever the symlink points at. No public exploit has been identified at time of analysis, but the predictable path and world-writable directory make the conditions straightforward to stage on shared-hosting or multi-tenant systems.
RemediationAI
Upgrade Grav CMS to version 2.0.16 or later, which resolves the unsafe lock file creation in Job::createLockFile(). The fix version is derived from the CVE description and corroborated by the GitHub advisory at https://github.com/getgrav/grav/security/advisories/GHSA-q8w8-6cq5-j4h2; administrators should verify the release tag independently before deployment. If an immediate upgrade is not possible, restrict write access to the system temp directory so that only the web server process user can create files there (e.g., chmod 1770 or a dedicated temp path owned by www-data), which eliminates the world-writable condition that enables symlink pre-staging. As an additional compensating control, disable the Grav Scheduler entirely via the admin panel if scheduled jobs are not required, accepting the trade-off of losing automation functionality. Note that restricting the temp directory permissions may affect other system processes expecting world-writable access, so test in a staging environment first.
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
CWE-59 (Improper Link Resolution Before File Access) describes a class of vulnerabilities where a process follows a symbolic link placed by an untrusted actor before performing a privileged file operation. Grav CMS (CPE: cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*) is a flat-file PHP CMS whose Scheduler component creates lock files to prevent concurrent job execution. The lock file path is derived from the job name and placed in a system temp directory that is world-writable, making it trivially predictable. Because the code does not perform a safe-open check (e.g., O_NOFOLLOW or lstat verification before open), a pre-placed symlink in that directory redirects the write to an arbitrary destination. The content written is the job ID string, which means any file the web server process (typically www-data or apache) owns or can write to can be silently corrupted or truncated.
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:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Local vector with low privileges (any local user account suffices for world-writable temp); no confidentiality impact since only a fixed string is written.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Grav CMS before 2.0.16 contains a symlink following vulnerability in Scheduler Job::createLockFile() that allows local attackers to overwrite arbitrary files by pre-creating symlinks at predictable lock file paths in the world-writable temp directory. Attackers can place a symlink at the predictable lock path pointing to any file the web server process can write to, and the next scheduled job run will follow the symlink and overwrite the target file's content with the job ID string.
Executive ViewAI
The Grav CMS Scheduler component (all versions before 2.0.16) is vulnerable to local file overwrite attacks that could enable compromise of application configurations, data integrity, and lateral movement on shared hosting platforms. Organizations using Grav in multi-tenant environments face elevated risk of unauthorized data modification and privilege escalation by co-located users or accounts.
No vendor-released patch identified at time of analysis. Interim mitigations: Restrict file permissions on system temp directories using chmod 700 or /tmp isolation mount options; run Grav web server process under dedicated low-privilege user account with minimal required file write access; disable Grav Scheduler if scheduled job functionality is not required; monitor temporary directories for unexpected symlinks or suspicious activity; restrict local shell access and user accounts on production systems; evaluate migration from shared hosting to isolated infrastructure to minimize risk of local attacker access.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Related Vulnerabilities in Grav CMS Access Control and Traversal Flaws
View all 9Server-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-65210
GHSA-cpcf-vm8j-257x
NVD
CVE.org
EPSS
Exploit-DB