Skip to main content
Vulnerability Database/CVE-2024-36358

CVE-2024-36358: Trend Micro Deep Security Privilege Escalation

CVE-2024-36358 is a link following privilege escalation flaw in Trend Micro Deep Security 20.x agents that allows local attackers to gain elevated privileges. This post explains its impact, affected versions, and mitigation steps.

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-36358 Overview

CVE-2024-36358 is a link following vulnerability in Trend Micro Deep Security Agent 20.x builds below 20.0.1-3180. The flaw allows a local, low-privileged attacker to escalate privileges on affected installations by abusing how the agent follows filesystem links [CWE-1106]. Successful exploitation yields high impact to confidentiality, integrity, and availability of the host. The weakness affects the agent across Windows, Linux, and UNIX deployments, meaning enterprise fleets running Deep Security broadly are in scope. An attacker must already hold the ability to run low-privileged code on the target before leveraging this issue.

Critical Impact

A local user can escalate to the privileges of the Deep Security Agent (typically SYSTEM or root), gaining full control of the endpoint and the security tool meant to defend it.

Affected Products

  • Trend Micro Deep Security Agent 20.x on Windows (builds below 20.0.1-3180)
  • Trend Micro Deep Security Agent 20.x on Linux (builds below 20.0.1-3180)
  • Trend Micro Deep Security Agent 20.x on UNIX (builds below 20.0.1-3180)

Discovery Timeline

  • 2024-06-10 - CVE-2024-36358 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-36358

Vulnerability Analysis

The vulnerability sits in file-handling logic within the Deep Security Agent. The agent performs privileged file operations without properly validating whether the target path is a symbolic link, junction, or hard link controlled by a lower-privileged user. An attacker who can run code as a standard user can plant a crafted link that redirects the agent's privileged write, delete, or ownership operation to a file the attacker should not be able to touch. The result is privilege escalation on the host where the agent runs with SYSTEM or root. Because the Deep Security Agent is the endpoint security component itself, successful exploitation also undermines the host's protective controls.

Root Cause

The root cause is improper handling of insufficient privileges during filesystem operations, classified under [CWE-1106]. The agent follows filesystem links to attacker-controlled destinations while running with elevated privileges rather than resolving and validating the final path against the invoking user's context.

Attack Vector

Exploitation requires local access and prior code execution as a low-privileged user. The attacker stages a symbolic link, directory junction, or hard link in a path the agent later operates on. When the agent writes, modifies, or removes the target, the operation is redirected to a sensitive file such as a privileged binary, service configuration, or protected registry hive, resulting in privilege escalation.

No verified exploit code is available for CVE-2024-36358.
See the Zero Day Initiative advisory ZDI-24-575 for additional
technical context on the link-following behavior.

Detection Methods for CVE-2024-36358

Indicators of Compromise

  • Unexpected symbolic links, hard links, or NTFS junctions created in directories read or written by the Deep Security Agent service.
  • Creation or modification of SYSTEM or root-owned files that trace back to a process running under a standard user context.
  • Deep Security Agent service writing to or deleting files outside its normal working directories.
  • New or modified privileged binaries, scheduled tasks, or services appearing shortly after low-privileged process activity.

Detection Strategies

  • Inventory Deep Security Agent versions across the fleet and flag any host running a 20.x build below 20.0.1-3180.
  • Monitor for file-system operations by the agent that resolve across link boundaries into protected directories.
  • Alert on local processes creating links whose source or target overlaps with Deep Security working paths or logs.
  • Correlate privilege-escalation signals, such as new SYSTEM processes spawned from user sessions, with recent Deep Security Agent file activity.

Monitoring Recommendations

  • Enable file integrity monitoring on Deep Security Agent install paths, log directories, and temp folders.
  • Collect Sysmon event IDs 11 (file create) and 1 (process create) from the agent's service account for review.
  • Audit symlink, link, and CreateSymbolicLink syscalls on servers where the agent runs.
  • Forward endpoint telemetry to a centralized data lake to hunt for the link-planting pattern across the fleet.

How to Mitigate CVE-2024-36358

Immediate Actions Required

  • Upgrade all Trend Micro Deep Security Agent 20.x installations to build 20.0.1-3180 or later.
  • Identify hosts where standard users can log in interactively and prioritize those systems first.
  • Review recent agent file operations on affected hosts for signs of exploitation before patching.
  • Restrict local logon rights on servers hosting the Deep Security Agent to only required administrators.

Patch Information

Trend Micro released a fixed build for Deep Security Agent 20.x. Any 20.x build at or above 20.0.1-3180 contains the fix. Refer to the Trend Micro Solution Overview and the Zero Day Initiative Advisory ZDI-24-575 for the official vendor guidance and advisory details.

Workarounds

  • No official vendor workaround is published; patching is the supported remediation path.
  • Where immediate patching is not possible, limit interactive and remote shell access on agent-protected hosts to trusted administrators only.
  • Enforce least privilege on service accounts and prevent standard users from writing to paths the agent operates on.
  • Monitor for link creation in sensitive directories and investigate anomalies promptly.
bash
# Verify Deep Security Agent build on Linux hosts
/opt/ds_agent/dsa_query -c GetAgentStatus | grep -i version

# Verify Deep Security Agent build on Windows (PowerShell)
Get-ItemProperty 'HKLM:\SOFTWARE\TrendMicro\Deep Security Agent' |
  Select-Object InstallationFolder, Version

# Target state: Version at or above 20.0.1-3180

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.