CVE-2021-40904
High · 8.8CVSS
8.8
EPSS
3.7%
Published
Mar 25, 2022
CISA due date
—
Cloudanix analysis
A flaw in certain older software versions could let attackers break in, so updating to newer releases is needed to stay protected.
- Exploitation
- Other
- Attacker needs
- Other
- Complexity
- Other
- Impact
- Other
- Component
- Other
- Class
- Other
- Remediation
- Other
- Effort
- Other
- Patch risk
- Other
What it actually does
The vulnerability permits exploitation of a flaw in affected php5 and checkmk components, enabling unauthorized actions at the technical level.
Why it matters to the business
Organizations using outdated versions face increased risk of compromise with moderate EPSS probability; the issue has been public for over four years with an available exploit, raising urgency for remediation in environments with high ecosystem prevalence.
How an attack unfolds
An attacker identifies instances of the vulnerable php5 or checkmk software, crafts inputs to trigger the flaw, and leverages the exploit to gain access or execute code.
How to fix it
Upgrade php5 (Debian:4.0) to 5.2.0-8+etch9 and checkmk/checkmk (GIT) to d5ccd5ecc956e665aca80f3c486f7fa46f409424 or later versions.
How to confirm the fix worked
Verify package versions match or exceed the fixed releases and test that the vulnerability is no longer reproducible.
Typical attack path
- Scan for affected php5 or checkmk installations
- Send malicious payload targeting the vulnerability
- Achieve initial access or code execution
- Escalate privileges or persist within the environment
How to detect it
Examine system logs and package inventories for signs of the vulnerable versions or post-exploitation activity related to the affected products.
What your security team should do
- Prioritize patching affected systems given exploit availability and publication age
- Monitor EPSS trends for any increase in exploitation likelihood
- Review downstream dependencies for similar exposures
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:18.04:LTS | check-mk | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | check-mk | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | check-mk | 0 | No fix |
Related vulnerabilities
- CVE-2024-47094 Insertion of Sensitive Information into Log File in Checkmk GmbH's Checkmk versions… Also affects check-mk
- CVE-2024-38863 Exposure of CSRF tokens in query parameters on specific requests in Checkmk GmbH's… Also affects check-mk
- CVE-2024-38862 Insertion of Sensitive Information into Log File in Checkmk GmbH's Checkmk versions… Also affects check-mk
- CVE-2024-6747 Information leakage in mknotifyd in Checkmk before 2.3.0p18, 2.2.0p36, 2.1.0p49 and in… Also affects check-mk
- CVE-2024-8606 Bypass of two factor authentication in RestAPI in Checkmk < 2.3.0p16 and < 2.2.0p34… Also affects check-mk
- CVE-2024-38860 Improper neutralization of input in Checkmk before versions 2.3.0p16 and 2.2.0p34 allows… Also affects check-mk
- CVE-2024-38858 Improper neutralization of input in Checkmk before version 2.3.0p14 allows attackers to… Also affects check-mk
- CVE-2024-38859 XSS in the view page with the SLA column configured in Checkmk versions prior to… Also affects check-mk