Exploit database

Vulnerability

CVE-2021-21425

Unauthenticated Arbitrary YAML Write/Update leads to Code Execution

Vulnerability details

Score
9.3
Severity
critical

CVSS 3.1 · GitHub_M

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N

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.

CVE Program

Exploit source choices

6 sources
GravCMS Remote Command Execution
MSF-linux--http--gravcms_execMetasploitPHP / remote

This module exploits arbitrary config write/update vulnerability to achieve remote code execution. Unauthenticated users can execute a terminal command under the context of the web server user. 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.

2021-03-29gravcms_exec.rb
csenox/cve-2021-21425
GH-dd6c2f96838fc9bb0c9a47a21122b840GitHubUnofficial GitHub source

GravCMS Unauthenticated Arbitrary YAML Write/Update leads to Code Execution (CVE-2021-21425)

2021-06-242 files · 12 stars
bluetoothstrawberry/cve-2021-21425
GH-3644aeed40b0f8260a3fa4fd02a4597dGitHubUnofficial GitHub source

working exploit for the old cve-2021-21425 grav cms 1.7.10 vuln

2024-11-133 files · 2 stars
d4ytox/cve-2021-21425
GH-22fa78aa658cb217035e6c98ff7eda81GitHubUnofficial GitHub source

GravCMS 1.10.7 Unauthenticated RCE via Scheduler. Improved exploit with CLI args and auto base64 encoding.

2026-06-134 files · 2 stars
afifudinmtop/cve-2021-21425
GH-5479e36e435fb3e0c77a799d2cae808aGitHubUnofficial GitHub source

afifudinmtop/cve-2021-21425 source repository

2026-01-212 files · 0 stars