CVE-2024-28826
High · 8.8CVSS
8.8
EPSS
0.5%
Published
May 29, 2024
CISA due date
—
Cloudanix analysis
A problem in the monitoring tool lets people who can set up certain checks reach or change files they should not on the server, which could expose important data or let attackers take control.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Application
- Class
- Path Traversal
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Improper path restriction in check_sftp permits configured checks to perform arbitrary local file reads and writes on the Checkmk server via traversal sequences.
Why it matters to the business
Attackers can exfiltrate sensitive configuration or credential files and plant malicious content, enabling data breaches, configuration tampering, or escalation to full server compromise; prevalence across many monitoring deployments increases organizational exposure.
How an attack unfolds
An attacker with check-configuration rights crafts an SFTP check using path-traversal sequences to escape intended directories; when the check runs it reads or writes arbitrary files on the site server.
How to fix it
Upgrade Checkmk to 2.3.0p4 or newer, 2.2.0p27 or newer, or 2.1.0p44 or newer; migrate any 2.0.0 installations (EOL) to a supported release.
How to confirm the fix worked
Confirm running version matches or exceeds a listed fixed release; attempt to save an SFTP check containing traversal sequences and verify the configuration is rejected or sanitized.
Typical attack path
- Obtain permissions to create or edit monitoring checks
- Configure a check_sftp instance containing traversal payloads such as ../ sequences
- Trigger execution of the check via normal monitoring cycle
- Read sensitive files or write attacker-controlled content to achieve persistence or lateral movement
How to detect it
Search Checkmk configuration and log files for check_sftp entries containing .. or other traversal patterns; review audit logs for unexpected file reads or writes initiated by the check process.
- check_sftp
- ../
- ..\
- path traversal sequences in check configuration files
What your security team should do
- Apply the listed upgrades immediately to eliminate the path-traversal vector
- Audit all existing SFTP check definitions for suspicious path parameters
- Restrict check-configuration privileges to the smallest necessary user set
The record
Improper restriction of local upload and download paths in check_sftp in Checkmk before 2.3.0p4, 2.2.0p27, 2.1.0p44, and in Checkmk 2.0.0 (EOL) allows attackers with sufficient permissions to configure the check to read and write local files on the Checkmk site server.
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