CVE-2021-21425
CVE-2021-21425 — Unauthenticated Arbitrary YAML Write/Update leads to Code Execution
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.
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Public exploit
exploit code published, no use observed
EPSS
81%
chance of exploitation in 30 days
CVSS base
9.3
CRITICAL
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 9.3 | CVSS 3.1 | CRITICAL | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-284
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1027.009Obfuscated Files or Information: Embedded Payloads
- T1546.004Event Triggered Execution: .bash_profile and .bashrc
- T1546.016Event Triggered Execution: Installer Packages
Public exploit
Capability, not use: code existing is a different claim from anyone running it.
Indexed by
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /admin.
References
4 on the record
- pentest.blog/unexpected-journey-7-gravcms-unauthenticated-arbitrary-yaml-write-update-leads-to-code-execution/
x_refsource_MISC
- github.com/getgrav/grav-plugin-admin/security/advisories/GHSA-6f53-6qgv-39pj
x_refsource_CONFIRM
- packetstormsecurity.com/files/162283/GravCMS-1.10.7-Remote-Command-Execution.html
x_refsource_MISC
- packetstormsecurity.com/files/162457/GravCMS-1.10.7-Remote-Command-Execution.html
x_refsource_MISC
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-137306 Grav Admin Plugin before 1.10.65 Password Reset Poisoning via Host HeaderCVSS 6.8
- CVE-2026-34908 Ubiquiti UniFi OS Improper Access Control VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2026-21962 Oracle HTTP Server and Oracle Weblogic Server Proxy Plug-in Improper Access Control VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2015-3306 ProFTPD Improper Access Control VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2013-0422 Oracle JRE Remote Code Execution VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2012-5076 Oracle Java SE Sandbox Bypass VulnerabilityCVSS 10.0 · CISA KEV
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.