
CVE-2026-41091
Microsoft Defender Elevation of Privilege Vulnerability
RedSun is a local privilege escalation (LPE) technique (and associated PoC) abusing a link-following vulnerability in Microsoft Defender's Malware Protection Engine. It allows a low-privileged authenticated attacker to achieve SYSTEM privileges by tricking Defender's remediation and cloud file rollback mechanisms into writing attacker-controlled files to protected directories (e.g., C:\Windows\System32).
"When Windows Defender realizes that a malicious file has a cloud tag... the antivirus decides that it is a good idea to just rewrite the file... The PoC abuses this behaviour to overwrite system files." — Nightmare-Eclipse
RedSun leverages Defender's handling of Cloud Files API, oplocks, directory junctions, and remediation paths (especially in TieringEngineService.exe / real-time scan cleanup).
By placing a malicious file with cloud attributes and manipulating paths (junctions/symlinks), the exploit causes Defender (running as SYSTEM) to restore/rewrite the file into a privileged location, enabling arbitrary file write → code execution as SYSTEM.
Key Techniques:
Nightmare-Eclipse/RedSun).Update immediately — the vulnerability is actively exploited.
# Check current Defender engine version
Get-MpComputerStatus | Select-Object AMEngineVersion, AMProductVersion
# Force update
Update-MpEngine
Additional Recommendations:
C:\Windows\System32, Defender remediation logs, and unusual TieringEngineService.exe behavior.Requirements:
Impact:
Public PoC Repository: 0xBlackash/RedSun
⚠️ Note: This is for educational and defensive purposes only. Test in isolated environments.
Made with ❤️ for the security community
Last Updated: May 21, 2026
Copy and paste this directly into a `README.md` file. It includes badges, tables, code blocks, emojis, and clear sections for maximum GitHub aesthetics and readability.
| Metric | Value |
|---|
| CVSS v3.1 Score | 7.8 (High) |
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CWE | CWE-59 (Link Following) |
| Affected Engine | ≤ 1.1.26030.3008 |
| Fixed Engine | 1.1.26040.8 |
| Fixed Platform | 4.18.26040.7 |
| Known Exploited | Yes (CISA KEV - May 20, 2026) |