Skip to main content

CVE-2024-7231: Avast Cleanup Premium Privilege Escalation

CVE-2024-7231 is a privilege escalation vulnerability in Avast Cleanup Premium that allows local attackers to gain SYSTEM privileges through symbolic link abuse. This article covers technical details, affected versions, 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-7231 Overview

CVE-2024-7231 is a local privilege escalation vulnerability in Avast Cleanup Premium. The flaw resides in the Avast Cleanup Service and stems from improper handling of symbolic links [CWE-59]. A low-privileged local attacker can abuse the service to delete arbitrary files, which can be leveraged to execute code in the context of SYSTEM. The issue was reported through Trend Micro's Zero Day Initiative and tracked as ZDI-CAN-22894.

Critical Impact

An authenticated local attacker can escalate from a low-privileged user account to SYSTEM, gaining full control of the affected Windows host.

Affected Products

  • Avast Cleanup Premium 23.4 (build 15592)
  • Windows installations running the Avast Cleanup Service
  • Earlier Avast Cleanup Premium builds exposing the same service component

Discovery Timeline

  • 2024-11-22 - CVE-2024-7231 published to the National Vulnerability Database
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-7231

Vulnerability Analysis

The vulnerability is a link-following flaw [CWE-59] in the Avast Cleanup Service, a Windows service that executes with SYSTEM privileges. The service performs file operations, including deletions, on paths that a low-privileged user can influence. Because the service does not safely resolve or validate file paths before acting on them, it follows symbolic links or junctions planted by an attacker. This allows the privileged service to operate on targets chosen by the unprivileged user.

Arbitrary file deletion as SYSTEM is a well-known primitive for Windows privilege escalation. Public techniques convert file deletion into arbitrary folder creation or DLL planting, which then yields code execution in a privileged context. The result is a full local privilege escalation to SYSTEM.

Root Cause

The root cause is insecure file handling inside the Avast Cleanup Service. The service does not verify whether a target path is a symbolic link, junction, or other reparse point before performing deletion. It also fails to impersonate the calling user when touching user-controlled paths. These missing checks allow the attacker-controlled filesystem artifact to redirect the privileged operation.

Attack Vector

Exploitation requires local, authenticated access with the ability to execute code at low privilege. The attacker creates a symbolic link that points from a path the Cleanup Service will act on to a sensitive file owned by SYSTEM. When the service performs its file operation, it follows the link and deletes the targeted file. The attacker then chains the deletion primitive with a standard Windows privilege-escalation technique to gain code execution as SYSTEM.

No public proof-of-concept exploit is listed in the enriched data, and the vulnerability is not present in the CISA Known Exploited Vulnerabilities catalog. Technical specifics are documented in the Zero Day Initiative Advisory ZDI-24-1001.

Detection Methods for CVE-2024-7231

Indicators of Compromise

  • Creation of symbolic links, junctions, or reparse points in directories accessed by the Avast Cleanup Service, particularly under user-writable temporary or cache paths.
  • Unexpected deletion of files in protected directories such as C:\Windows\System32 or C:\Program Files shortly after Cleanup Service activity.
  • New services, scheduled tasks, or DLLs appearing in system directories following Cleanup Service execution by a non-administrative user.

Detection Strategies

  • Monitor process activity for the Avast Cleanup Service performing file operations on paths outside its expected working directories.
  • Alert on mklink, CreateSymbolicLink, or CreateMountPoint operations originating from standard user sessions when the target resolves to system-owned files.
  • Correlate low-privileged user logons with subsequent SYSTEM-context process creation to surface local privilege-escalation chains.

Monitoring Recommendations

  • Enable Windows Sysmon Event IDs 1 (process creation), 11 (file create), and 23 (file delete) and forward them to a centralized analytics platform.
  • Audit filesystem reparse-point creation using Windows Advanced Audit Policy for Object Access and File System events.
  • Review Avast Cleanup Service logs for anomalous deletion patterns and failed privileged operations.

How to Mitigate CVE-2024-7231

Immediate Actions Required

  • Update Avast Cleanup Premium to the latest vendor-supplied version that remediates ZDI-24-1001.
  • Inventory endpoints running Avast Cleanup Premium 23.4 (build 15592) or earlier and prioritize patching on multi-user and administrator workstations.
  • Restrict interactive logon on sensitive systems to reduce the pool of accounts that can satisfy the local, low-privilege precondition.

Patch Information

Avast has addressed the vulnerability in an updated release of Cleanup Premium following coordinated disclosure through the Zero Day Initiative. Refer to the Zero Day Initiative Advisory ZDI-24-1001 for vendor remediation references. Apply the latest Avast Cleanup Premium build through the product's built-in updater or enterprise deployment tooling.

Workarounds

  • If patching is not immediately feasible, stop and disable the Avast Cleanup Service until an updated build can be installed.
  • Remove Avast Cleanup Premium from systems where its cleanup functionality is not required.
  • Enforce least privilege and application control policies to limit the ability of standard users to execute arbitrary binaries that create symbolic links.
bash
# Configuration example: disable the Avast Cleanup Service pending patch deployment
sc.exe stop "Avast Cleanup Premium Service"
sc.exe config "Avast Cleanup Premium Service" start= 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.