Nssm224 Privilege Escalation Updated 💯 Fast
REM Step 4: Trigger escalation C:\Users\Public\nssm.exe restart VulnService
CVE‑2025‑41686 is a local privilege escalation vulnerability with a . The flaw stems from improper file permissions on the nssm.exe executable within the installation directories of various software products that bundle NSSM. A low‑privileged local attacker can exploit these overly permissive permissions to replace the legitimate nssm.exe with a malicious executable. When the associated Windows service (which often runs with SYSTEM privileges) is restarted — either by an administrator, a scheduled task, or a system reboot — the attacker’s payload executes with administrative rights, granting full control over the compromised machine.
Until then, variants will continue to appear in red team toolkits. The responsibility falls squarely on defenders to audit service permissions and restrict NSSM execution. nssm224 privilege escalation updated
If standard users have Write permissions to the folder containing the nssm.exe binary, they can replace it.
If the output reveals BUILTIN\Users:(M) or NT AUTHORITY\Authenticated Users:(I)(F) , the file structure is vulnerable to overwriting. REM Step 4: Trigger escalation C:\Users\Public\nssm
: An attacker with write access to the root directory could place a malicious file at C:\Program.exe . When the service tries to start, Windows may execute C:\Program.exe instead of the intended file deep in the Program Files 3. Persistence via NSSM Beyond escalation, threat actors frequently use NSSM for persistence
Provide to scan for vulnerable NSSM services. When the associated Windows service (which often runs
accesschk.exe -kvuq "HKLM\SYSTEM\CurrentControlSet\Services\TargetService" Use code with caution. Step 2: Crafting the Payload
An attacker with low-level access (e.g., a standard user or a compromised service account) scans the system for vulnerable NSSM instances:
The most sophisticated variant uses NSSM to restart a service that runs under a PPL-protected account (e.g., WinDefend ). Since NSSM invokes ChangeServiceConfig via RPC, and the RPC call does not validate the caller’s medium integrity level against the target service’s SecurityDescriptor in the same way as a local API call, an attacker with SeImpersonatePrivilege (e.g., from a LOCAL SERVICE breach) can pivot.