CVE-2021-40904 Code injection in n/a
An administrator can achieve remote code execution by exploiting a default misconfiguration in the embedded Dokuwiki component of CheckMK Raw Edition.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2021-40904?
CVE-2021-40904 is a high-severity code injection vulnerability in Checkmk Checkmk, published on 25 Mar 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
The web management console of CheckMK Raw Edition (versions 1.5.0 to 1.6.0) allows a misconfiguration of the web-app Dokuwiki (installed by default), which allows embedded php code. As a result, remote code execution is achieved. Successful exploitation requires access to the web management interface, either with valid credentials or with a hijacked session by a user with the role of administrator.
Weakness: CWE-276
Which versions are affected by CVE-2021-40904?
It affects 1 product.
Products include Checkmk Checkmk.
How do I fix CVE-2021-40904?
No fix has been published for CVE-2021-40904 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2021-40904 being exploited?
There is no known exploitation of CVE-2021-40904 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in Checkmk Checkmk
- CVE-2025-39666 omd: Local privilege escalation when executing omd commands as root
- CVE-2024-8606 Fix 2FA bypass via RestAPI
- CVE-2022-46836 PHP code injection in watolib
- CVE-2025-32919 Privilege Escalation in Windows License plugin for Checkmk Windows Agent
- CVE-2024-28827 Privilege escalation in Windows agent
Sources
Also known as GHSA-f6hf-q5rw-f57w, UBUNTU-CVE-2021-40904.