Skip to main content

CVE-2024-7229: Avast Cleanup Premium Privilege Escalation

CVE-2024-7229 is a privilege escalation vulnerability in Avast Cleanup Premium that allows local attackers to gain SYSTEM-level access through symbolic link exploitation. This article covers technical details, impact analysis, 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-2024-7229 Overview

CVE-2024-7229 is a local privilege escalation vulnerability in Avast Cleanup Premium. The flaw resides in the Avast Cleanup Service, which follows symbolic links during file deletion operations. A low-privileged local attacker can abuse the service to delete arbitrary files, ultimately gaining code execution in the context of SYSTEM on Windows. The issue was reported through the Zero Day Initiative as ZDI-CAN-22892 and published as advisory ZDI-24-1002. The weakness is classified under CWE-59 (Improper Link Resolution Before File Access).

Critical Impact

An authenticated low-privileged user can escalate to SYSTEM on Windows hosts running vulnerable Avast Cleanup Premium builds, enabling full compromise of the endpoint.

Affected Products

  • Avast Cleanup Premium 23.4 build 15592
  • Windows installations running the Avast Cleanup Service
  • Earlier builds exposing the same symbolic link handling behavior

Discovery Timeline

  • 2024-11-22 - CVE-2024-7229 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-7229

Vulnerability Analysis

The vulnerability exists in the Avast Cleanup Service, a privileged Windows service that performs file system cleanup operations on behalf of users. The service performs file deletions without properly validating whether the target path is a symbolic link or junction. A low-privileged attacker can plant a symbolic link that redirects a cleanup operation to a sensitive file owned by SYSTEM.

The primary impact is arbitrary file deletion as SYSTEM. Attackers routinely convert arbitrary file deletion primitives into arbitrary code execution on Windows by abusing installer rollback behavior and other documented techniques. This yields full control of the host.

Exploitation requires prior low-privileged code execution on the target. Successful exploitation grants full confidentiality, integrity, and availability impact at the SYSTEM level.

Root Cause

The root cause is improper link resolution before file access [CWE-59]. The Avast Cleanup Service opens or deletes target files without checking for reparse points, junctions, or symbolic links. Windows allows unprivileged users to create pseudo-symlinks and object manager junctions in writable directories such as %TEMP%, which attackers use to redirect privileged file operations.

Attack Vector

The attacker executes code as a standard user on the target machine. They then plant a symbolic link in a directory the Avast Cleanup Service processes, pointing to a file they could not otherwise delete. When the service runs cleanup, it follows the link and deletes the target under its SYSTEM token. The attacker chains this deletion into code execution by overwriting a privileged file path or triggering a repair or rollback operation.

See the Zero Day Initiative advisory ZDI-24-1002 for additional technical context.

Detection Methods for CVE-2024-7229

Indicators of Compromise

  • Creation of reparse points or NTFS junctions in directories enumerated by the Avast Cleanup Service, especially under %LOCALAPPDATA%\Temp and user profile cache paths.
  • Unexpected deletion of files owned by SYSTEM or TrustedInstaller immediately after Avast Cleanup Service activity.
  • Child processes spawned by SYSTEM shortly after the Avast Cleanup Service writes to or deletes paths outside standard cleanup locations.

Detection Strategies

  • Monitor Windows Security event ID 4663 for file delete operations performed by the Avast Cleanup Service account against unexpected paths.
  • Hunt for process creations where a low-privileged user process creates symbolic links or junctions using mklink, CreateSymbolicLink, or object manager APIs before service invocation.
  • Correlate Avast Cleanup Service file operations with subsequent integrity changes to protected system binaries or installer caches.

Monitoring Recommendations

  • Enable Sysmon FileCreate and FileDelete logging and alert on reparse point creation by non-administrative users.
  • Baseline the file paths that the Avast Cleanup Service touches and flag deviations.
  • Forward endpoint telemetry to a centralized analytics platform for correlation across process, file, and privilege events.

How to Mitigate CVE-2024-7229

Immediate Actions Required

  • Update Avast Cleanup Premium to the latest vendor-supplied build that remediates the symbolic link handling flaw.
  • Audit endpoints to inventory installed Avast Cleanup Premium versions and prioritize patching of version 23.4 build 15592 and earlier.
  • Restrict interactive logon on servers and shared workstations to reduce the local attacker surface required for exploitation.

Patch Information

Avast has not published a dedicated advisory URL in the referenced data. Administrators should consult the Zero Day Initiative advisory ZDI-24-1002 and apply the latest Avast Cleanup Premium release available through the vendor's update channel.

Workarounds

  • Disable or stop the Avast Cleanup Service on affected hosts until a patched build is deployed, if operational policy allows.
  • Remove Avast Cleanup Premium from multi-user systems where untrusted local users can execute code.
  • Apply application allowlisting to prevent low-privileged users from running tools that create arbitrary symbolic links in service-monitored directories.
bash
# Query installed Avast Cleanup Premium version on Windows endpoints
Get-WmiObject -Class Win32_Product -Filter "Name LIKE 'Avast Cleanup%'" | Select-Object Name, Version

# Stop and disable the Avast Cleanup Service as a temporary mitigation
Stop-Service -Name "Avast Cleanup Premium" -Force
Set-Service -Name "Avast Cleanup Premium" -StartupType Disabled

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.