Skip to main content

CVE-2024-0670: Checkmk Windows Agent Privilege Escalation

CVE-2024-0670 is a privilege escalation vulnerability in Checkmk Windows Agent plugin that allows local users to gain elevated system privileges. This article covers the technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-0670 Overview

CVE-2024-0670 is a local privilege escalation vulnerability in the Checkmk Windows agent plugin. The flaw affects Checkmk versions prior to 2.2.0p23 and 2.1.0p40, as well as the end-of-life 2.0.0 branch. A local authenticated user on a Windows host running the vulnerable agent can escalate privileges, gaining elevated access on the monitored system. The weakness is tracked under CWE-427: Uncontrolled Search Path Element, indicating that the agent plugin loads a resource from a path that lower-privileged users can influence.

Critical Impact

A low-privileged local user on a Windows system running the Checkmk agent can gain high-integrity code execution, resulting in full compromise of confidentiality, integrity, and availability on the host.

Affected Products

  • Checkmk versions prior to 2.2.0p23 (2.2.0 branch)
  • Checkmk versions prior to 2.1.0p40 (2.1.0 branch)
  • Checkmk 2.0.0 (End of Life) on Microsoft Windows

Discovery Timeline

  • 2024-03-11 - CVE-2024-0670 published to the National Vulnerability Database
  • 2024-03 - Full disclosure announcement published via the Full Disclosure mailing list (seclists.org entry)
  • 2026-06-17 - Last updated in the NVD database

Technical Details for CVE-2024-0670

Vulnerability Analysis

The Checkmk Windows agent plugin executes with elevated privileges to collect system telemetry. Due to an uncontrolled search path element [CWE-427], the plugin resolves a dependency or executable without pinning its location to a trusted, write-protected directory. A local user who can place a crafted file in a directory that falls within the agent's search path can have that file loaded by the privileged agent process. The result is code execution in the security context of the Checkmk agent, which runs with high privileges on Windows. See the vendor advisory in Checkmk Werk #16361 for the authoritative fix description.

Root Cause

The root cause is improper resolution of a search path within the Windows agent plugin. When Windows resolves a binary, DLL, or script by name rather than by absolute path, it walks a series of directories. If any of those directories is writable by non-privileged users, a planted file can be loaded in place of the intended resource. This class of flaw is commonly exploited through DLL search-order hijacking, binary planting, or script path hijacking.

Attack Vector

Exploitation requires local access and low-level privileges on the target Windows host. The attacker stages a malicious file in a directory the Checkmk agent searches before resolving the legitimate resource. When the privileged agent process next loads that resource, the attacker's payload executes with the agent's elevated token. No user interaction is required and the attack complexity is low. The vulnerability cannot be reached remotely without first obtaining a local foothold.

No verified public exploit code is available for CVE-2024-0670. Technical details are described in prose; readers seeking implementation specifics should consult the vendor advisory and the Full Disclosure announcement linked above.

Detection Methods for CVE-2024-0670

Indicators of Compromise

  • Unexpected executables, DLLs, or script files appearing in directories referenced by the Checkmk agent search path on Windows hosts
  • Child processes spawned by the Checkmk agent service (check_mk_agent.exe or related binaries) that are not part of standard monitoring workflows
  • New or modified files in agent plugin directories such as C:\ProgramData\checkmk\agent\plugins\ created by non-administrative users
  • Outbound network connections or process execution originating from the agent that do not match baseline monitoring activity

Detection Strategies

  • Inventory all Windows hosts running the Checkmk agent and compare installed versions against the fixed releases (2.2.0p23, 2.1.0p40)
  • Audit NTFS access control lists on Checkmk agent installation and plugin directories to identify locations writable by non-privileged users
  • Correlate process-creation telemetry for the Checkmk agent service with file-write events in agent-adjacent directories to surface planting activity
  • Hunt for anomalous DLL loads by the agent process using module-load telemetry

Monitoring Recommendations

  • Enable Windows Sysmon Event ID 7 (ImageLoad) and Event ID 11 (FileCreate) for Checkmk agent process paths
  • Forward endpoint telemetry to a centralized analytics platform and alert on new modules loaded by the agent that are not digitally signed by Checkmk GmbH
  • Baseline normal plugin activity so unauthorized plugin additions trigger investigation

How to Mitigate CVE-2024-0670

Immediate Actions Required

  • Upgrade Checkmk to version 2.2.0p23, 2.1.0p40, or later on all Windows monitoring targets
  • Retire or isolate any hosts still running Checkmk 2.0.0, which is end-of-life and will not receive a fix
  • Restrict interactive logon on monitored Windows systems to reduce the local attacker population
  • Review and tighten NTFS permissions on Checkmk agent installation and plugin directories so only administrators can write to them

Patch Information

Checkmk addressed CVE-2024-0670 in Werk #16361. The fix is included in Checkmk 2.2.0p23 and 2.1.0p40. Refer to the Checkmk Patch Note #16361 for upgrade instructions and version-specific guidance. The 2.0.0 branch is end-of-life; migration to a supported branch is required.

Workarounds

  • If immediate upgrade is not possible, remove write permissions for non-administrative users from every directory in the Checkmk agent plugin search path
  • Enforce application control (such as Windows Defender Application Control or AppLocker) to block execution of unsigned binaries from agent-adjacent directories
  • Temporarily disable optional agent plugins that are not required for monitoring to reduce the attack surface until the patch is deployed
bash
# Example: verify installed Checkmk agent version on Windows (PowerShell)
Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*" |
    Where-Object { $_.DisplayName -like "*Check*MK*Agent*" } |
    Select-Object DisplayName, DisplayVersion, InstallLocation

# Example: audit ACLs on the agent plugin directory
Get-Acl "C:\ProgramData\checkmk\agent\plugins" | Format-List

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.