# CVE-2021-21425: Unauthenticated Arbitrary YAML Write/Update leads to Code Execution

- Severity: Critical 9.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 80.6%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2021-04-07T18:20:13.000Z
- Modified: 2026-06-17T03:35:33.067Z
- Weaknesses: CWE-284
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- getgrav grav-plugin-admin: <= 1.10.7; before 1.10.8

## Every score

- GitHub_M: CVSS:3.1 9.3 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://pentest.blog/unexpected-journey-7-gravcms-unauthenticated-arbitrary-yaml-write-update-leads-to-code-execution/> (exploit, third-party-advisory)
- <http://packetstormsecurity.com/files/162283/GravCMS-1.10.7-Remote-Command-Execution.html> (exploit, third-party-advisory, vdb-entry)
- <http://packetstormsecurity.com/files/162457/GravCMS-1.10.7-Remote-Command-Execution.html> (exploit, third-party-advisory, vdb-entry)
- <https://github.com/getgrav/grav-plugin-admin/security/advisories/GHSA-6f53-6qgv-39pj> (third-party-advisory)

## Sources

- CVE List: [CVE-2021-21425](https://www.cve.org/CVERecord?id=CVE-2021-21425), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-21425](https://nvd.nist.gov/vuln/detail/CVE-2021-21425), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21425 · Whole record: https://cve.day/CVE-2021-21425.json · Rebuilt by cve.day 2026-11-25T22:58:00.663Z
