Vulnerability record · CVE-2021-21425 · published 7 April 2021
CVE-2021-21425: Grav Admin Plugin unauthenticated access control allows YAML write and RCE
Getgrav · Grav Plugin Admin
Grav Admin Plugin 1.10.7 and earlier lets an unauthenticated user invoke administrator controller methods without credentials. Those calls can create or modify arbitrary YAML files, changing site configuration and enabling further compromise. The flaw is fixed in 1.10.8.
Description
Grav Admin Plugin is an HTML user interface that provides a way to configure Grav and create and modify pages. In versions 1.10.7 and earlier, an unauthenticated user can execute some methods of administrator controller without needing any credentials. Particular method execution will result in arbitrary YAML file creation or content change of existing YAML files on the system. Successfully exploitation of that vulnerability results in configuration changes, such as general site information change, custom scheduler job definition, etc. Due to the nature of the vulnerability, an adversary can change some part of the webpage, or hijack an administrator account, or execute operating system command under the context of the web-server user. This vulnerability is fixed in version 1.10.8. Blocking access to the `/admin` path from untrusted sources can be applied as a workaround.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Automated analysis
critical priorityUnauthenticated network-reachable access control flaw with high confidentiality, integrity and availability impact and very high EPSS score.
What it is
Grav Admin Plugin 1.10.7 and earlier lets an unauthenticated user invoke administrator controller methods without credentials. Those calls can create or modify arbitrary YAML files, changing site configuration and enabling further compromise. The flaw is fixed in 1.10.8.
Impact
An attacker can alter site configuration, hijack an administrator account, or execute operating system commands as the web-server user.
Attack surface
Reachable over the network through the Grav Admin Plugin interface, with no authentication and no user interaction required per the CVSS vector. Blocking access to the /admin path from untrusted sources is noted as a workaround.
Exploitation
Not listed in CISA KEV, but EPSS is 0.806 (99.6th percentile) and public references include an exploit write-up and Packet Storm RCE postings, indicating active interest and available exploit detail.
What to do
- Upgrade Grav Admin Plugin to 1.10.8 or later.
- Block access to the /admin path from untrusted sources as an interim workaround.
- Restrict network exposure of the Grav admin interface to trusted management networks or VPN.
- Review and restore YAML configuration files for unauthorized changes after any suspected exposure.
- Rotate administrator credentials and review accounts for signs of hijacking.
Detection
- Monitor web logs for unauthenticated requests to /admin endpoints, especially administrator controller methods.
- Alert on unexpected creation or modification of YAML files under the Grav configuration directories.
- Look for suspicious scheduler job definitions or configuration changes in Grav.
- Hunt for web-server user processes spawning shell or command interpreters.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| http://packetstormsecurity.com/files/162283/GravCMS-1.10.7-Remote-Command-Execution.html | Third Party AdvisoryVDB Entry |
| http://packetstormsecurity.com/files/162457/GravCMS-1.10.7-Remote-Command-Execution.html | Third Party AdvisoryVDB Entry |
| https://github.com/getgrav/grav-plugin-admin/security/advisories/GHSA-6f53-6qgv-39pj | Third Party Advisory |
| https://pentest.blog/unexpected-journey-7-gravcms-unauthenticated-arbitrary-yaml-write-update-leads-to-code-execution/ | ExploitThird Party Advisory |
| http://packetstormsecurity.com/files/162283/GravCMS-1.10.7-Remote-Command-Execution.html | Third Party AdvisoryVDB Entry |
| http://packetstormsecurity.com/files/162457/GravCMS-1.10.7-Remote-Command-Execution.html | Third Party AdvisoryVDB Entry |
| https://github.com/getgrav/grav-plugin-admin/security/advisories/GHSA-6f53-6qgv-39pj | Third Party Advisory |
| https://pentest.blog/unexpected-journey-7-gravcms-unauthenticated-arbitrary-yaml-write-update-leads-to-code-execution/ | ExploitThird Party Advisory |
Track CVE-2021-21425 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-21425), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.