CVE-2021-40904 Code injection in n/a

High 8.8 Published Updated

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.

All Checkmk Checkmk vulnerabilities

Sources

Also known as GHSA-f6hf-q5rw-f57w, UBUNTU-CVE-2021-40904.

Is CVE-2021-40904 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free