CVE-2024-38859
NoneCVSS
—
EPSS
0.4%
Published
Aug 26, 2024
CISA due date
—
Cloudanix analysis
A monitoring tool flaw lets someone with basic access hide harmful code in a dashboard column so that other people who copy the dashboard accidentally run that code and expose their information.
- Exploitation
- Requires User Interaction
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Other
- Component
- Application
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Cross-site scripting flaw allowing injection of arbitrary HTML and script content into the SLA column title of a monitoring view; the payload persists in the view definition and executes in the browser context of any user who clones the affected view.
Why it matters to the business
Attackers can run unauthorized code inside other users' monitoring sessions, risking theft of credentials, session tokens, or sensitive operational data displayed in dashboards; delayed patching leaves shared monitoring environments exposed to lateral movement or phishing.
How an attack unfolds
An authenticated low-privileged user creates or edits a view containing an SLA column, places malicious HTML and script in the column title, then waits for another user to clone the view; the script executes with the cloning user's permissions when the cloned view renders.
How to fix it
Upgrade Checkmk to version 2.3.0p14, 2.2.0p33, 2.1.0p47 or later; disable or remove untrusted custom views and SLA columns until patches are applied; enforce least-privilege access for view creation and cloning.
How to confirm the fix worked
Verify installed package version against the fixed releases listed above; review existing views for unexpected HTML or script content in SLA column titles; attempt a controlled clone operation after upgrade to confirm the payload no longer executes.
Typical attack path
- Obtain low-privileged authenticated access to Checkmk
- Create or modify a view and configure an SLA column with a malicious title containing script tags
- Share or make the view available for cloning
- Victim user clones the view and triggers execution of the injected script
- Script performs actions such as credential harvesting or data exfiltration within the monitoring interface
How to detect it
Search application and web-server logs for view creation or clone events containing HTML tags or script elements in column titles; inspect persisted view configurations for suspicious content in SLA-related fields; correlate clone operations with subsequent unexpected script execution or outbound requests.
What your security team should do
- Immediately schedule upgrades to the patched releases for all instances
- Audit existing custom views and SLA columns for suspicious content
- Restrict view creation and cloning privileges to trusted administrators
- Monitor user activity logs for unusual view cloning events
- Add the vulnerability to the organization's patch management backlog with high priority
The record
XSS in the view page with the SLA column configured in Checkmk versions prior to 2.3.0p14, 2.2.0p33, 2.1.0p47 and 2.0.0 (EOL) allowed malicious users to execute arbitrary scripts by injecting HTML elements into the SLA column title. These scripts could be executed when the view page was cloned by other users.
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-6542 Improper neutralization of livestatus command delimiters in mknotifyd in Checkmk <=… Also affects check-mk