Skip to main content

CVE-2025-6241: SysTrack LsiAgent.exe Privilege Escalation

CVE-2025-6241 is a privilege escalation vulnerability in Lakeside Software SysTrack LsiAgent.exe that exploits DLL search order hijacking to execute malicious code as SYSTEM. This article covers technical details, impact assessment, and mitigation strategies.

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-2025-6241 Overview

CVE-2025-6241 affects LsiAgent.exe, a component of SysTrack from Lakeside Software. The agent attempts to load several DLL files that are not present in the default installation. When a user-writable directory exists in the SYSTEM PATH environment variable, a local user can place a malicious DLL in that directory. Windows then loads the attacker-controlled DLL into LsiAgent.exe through the default dynamic-link library search order. The code executes as NT AUTHORITY\SYSTEM when the SysTrack service starts or restarts, producing local privilege escalation [CWE-427].

Critical Impact

A low-privileged local user can execute arbitrary code as NT AUTHORITY\SYSTEM by planting a DLL in a writable directory listed in the SYSTEM PATH.

Affected Products

  • Lakeside Software SysTrack Agent (LsiAgent.exe)
  • SysTrack Agent versions prior to the 10.10.0 Hotfix release
  • On-premises SysTrack deployments running the vulnerable agent on Windows

Discovery Timeline

  • 2025-07-27 - CVE-2025-6241 published to the National Vulnerability Database
  • 2026-06-17 - Last updated in the NVD database

Technical Details for CVE-2025-6241

Vulnerability Analysis

The SysTrack agent service LsiAgent.exe runs as NT AUTHORITY\SYSTEM. During startup, the process requests several DLLs that are not shipped with the default installation. Because the referenced libraries are absent, Windows walks the standard DLL search order to locate them. That search order includes every directory in the SYSTEM PATH environment variable.

If any PATH directory grants write access to standard users, an attacker can drop a crafted DLL whose name matches one of the DLLs the agent requests. The service loads the attacker's DLL on the next start or restart and executes its DllMain with SYSTEM privileges. Exploitation requires local access and relies on an administrator or scheduled event triggering a service restart, which maps to the UI:R component of the CVSS vector.

Root Cause

The root cause is unsafe DLL loading [CWE-427]. LsiAgent.exe does not specify fully qualified paths for its dependencies and does not call SetDefaultDllDirectories or LoadLibraryEx with LOAD_LIBRARY_SEARCH_SYSTEM32 to constrain the search. The agent therefore trusts the ambient PATH, which may contain non-privileged, user-writable directories inherited from third-party software installations.

Attack Vector

An attacker with standard user access enumerates directories listed in the SYSTEM PATH and identifies any entry that grants write permissions to the current user. The attacker then writes a malicious DLL using one of the file names that LsiAgent.exe attempts to load. When the SysTrack service restarts, through reboot, update, or administrative action, the planted DLL executes as SYSTEM. See the CERT Vulnerability Report #335798 for the complete list of targeted DLL names and a technical description of the load path.

Detection Methods for CVE-2025-6241

Indicators of Compromise

  • Unexpected DLLs appearing in directories listed in the SYSTEM PATH, particularly non-system paths added by third-party software.
  • LsiAgent.exe loading modules from paths outside C:\Program Files\ or C:\Windows\System32\.
  • New child processes spawned by LsiAgent.exe that run as NT AUTHORITY\SYSTEM and perform account creation, service installation, or credential access.

Detection Strategies

  • Enable Sysmon Event ID 7 (ImageLoaded) and alert on LsiAgent.exe loading DLLs from non-standard directories.
  • Audit the SYSTEM PATH across the fleet and flag entries whose ACLs allow write access to the Users or Authenticated Users groups.
  • Correlate SysTrack service restarts with new file creation events in writable PATH directories using a SIEM or data lake query.

Monitoring Recommendations

  • Monitor file-write events ending in .dll within writable PATH directories and alert on creation by non-administrative accounts.
  • Track Windows Service Control Manager events (7036) for the SysTrack service and review process ancestry after each restart.
  • Baseline the modules legitimately loaded by LsiAgent.exe and alert on deviations.

How to Mitigate CVE-2025-6241

Immediate Actions Required

  • Install the Lakeside Software SysTrack Agent 10.10.0 Hotfix or later on all endpoints running the agent.
  • Audit the SYSTEM PATH on every host and remove or restrict any directory writable by non-administrative users.
  • Tighten ACLs on remaining PATH directories so that only SYSTEM and Administrators can write new files.

Patch Information

Lakeside Software addressed the vulnerability in the SysTrack Agent 10.10.0 Hotfix. Deployment details and the full fix inventory are documented in the Lakeside Software Hotfix Release Notes. Administrators should validate agent versions after deployment and schedule a service restart to ensure the patched binary is loaded.

Workarounds

  • Remove user-writable directories from the SYSTEM PATH until the patched agent can be deployed.
  • Apply AppLocker or Windows Defender Application Control rules that block unsigned DLLs from loading into LsiAgent.exe.
  • Restrict the ability of standard users to restart the SysTrack service and limit scheduled tasks that could trigger a restart.
bash
# Enumerate SYSTEM PATH directories and report ACLs that grant write access to non-admin principals
powershell -Command "$env:Path -split ';' | ForEach-Object { if (Test-Path $_) { icacls $_ } }"

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.