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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| getgrav | grav-plugin-admin | <= 1.10.7 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
GravCMS Remote Command Execution
exploit/linux/http/gravcms_exec
Exploit-DB 1
- GravCMS 1.10.7 - Unauthenticated Arbitrary File Write (Metasploit) EDB-49788 · webapps · Apr 21, 2021 · verified
GitHub 6 repositories
-
CsEnox/CVE-2021-21425 ★ 12 · Jun 24, 2021
GravCMS Unauthenticated Arbitrary YAML Write/Update leads to Code Execution (CVE-2021-21425)
-
d4ytox/CVE-2021-21425 ★ 2 · Jun 13, 2026
GravCMS 1.10.7 Unauthenticated RCE via Scheduler. Improved exploit with CLI args and auto base64 encoding.
-
bluetoothStrawberry/cve-2021-21425 ★ 2 · Nov 13, 2024
working exploit for the old cve-2021-21425 grav cms 1.7.10 vuln
-
s1lentf00thold/CVE-2021-21425-RCE ★ 0 · Jun 23, 2026
-
afifudinmtop/CVE-2021-21425 ★ 0 · Jan 21, 2026
-
grey-master-a/GravCMS_Nmap_Script ★ 0 · Jan 19, 2022
It is a nmap script for GravCMS vulnerability (CVE-2021-21425)
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- https://pentest.blog/unexpected-journey-7-gravcms-unauthenticated-arbitrary-yaml-write-update-leads-to-code-execution/
- https://github.com/getgrav/grav-plugin-admin/security/advisories/GHSA-6f53-6qgv-39pj
- http://packetstormsecurity.com/files/162283/GravCMS-1.10.7-Remote-Command-Execution.html
- http://packetstormsecurity.com/files/162457/GravCMS-1.10.7-Remote-Command-Execution.html