
CVE Reproduction: cve-2024-49039-task_scheduler_eop_reproduction
CVE-2024-49039 is a Windows Task Scheduler Elevation of Privilege (EoP) vulnerability that allows an authenticated attacker to escape the AppContainer sandbox, elevating from Low integrity (AppContainer) to Medium integrity. Assigned a CVSS score of 8.8, this vulnerability has been actively exploited in the wild by the RomCom threat group.
The vulnerability resides in the Task Scheduler's RPC interface. The scheduler fails to properly authenticate RPC clients, allowing a process running at Low integrity level (e.g., within an AppContainer) to communicate with the Task Scheduler service as if it were a Medium integrity caller. This improper authentication check (CWE-287) enables the attacker to:
By creating or triggering a scheduled task that executes an arbitrary binary, the attacker can break out of browser sandboxes, containerized application environments, or any other AppContainer-based isolation.
All Windows versions prior to the November 2024 security update are affected, including:
The November 2024 Patch Tuesday (MSRC) addressed this vulnerability. Systems without the November 2024 or later cumulative updates remain vulnerable.
The RomCom group has been observed exploiting this vulnerability in targeted attacks. The attack chain typically involves:
This proof-of-concept is for authorized testing only. Steps:
The included exploit.py script demonstrates the vulnerability using Python's comtypes library to interact with the Task Scheduler COM interface.
Usage:
python exploit.py --command "cmd.exe /c whoami > C:\temp\output.txt"
| Product | Affected |
|---|
| Windows 10 (all versions) | Yes |
| Windows 11 (all versions) | Yes |
| Windows Server 2019 | Yes |
| Windows Server 2022 | Yes |
| Windows Server 2025 (if applicable) | Yes |
| Windows Server 2008–2016 | Yes |