CVE-2021-21425

published 7 Apr 2021 · updated 3 Aug 2024

Unauthenticated Arbitrary YAML Write/Update leads to Code Execution

10.0CriticalCVSS 9.3EPSS 81%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 81%. No fixed version is recorded.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
getgrav<=1.10.7

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-21425 severity on Zeptric[![CVE-2021-21425](https://zeptric.io/badge/cve/CVE-2021-21425.svg)](https://zeptric.io/cve/CVE-2021-21425)