Nssm224 Privilege Escalation Updated !!exclusive!! | iPhone |
An attacker could exploit this vulnerability by creating a specially crafted configuration file and placing it in a directory that NSSM reads from. When NSSM reads the configuration file, it could execute the attacker's malicious code with elevated privileges.
sc config nssm_managed_service binPath= "C:\temp\reverse_shell.exe"
If the attacker has permission to restart the service ( SERVICE_START / SERVICE_STOP ), they do so. If not, they wait for an automated reboot or for the service to crash and let NSSM's restart loop do the heavy lifting. 3. Advanced Context: NSSM 2.24 vs. 2.25
Because NSSM services often run critical backend processes, administrators may be forced to restart them regularly for maintenance, providing reliable triggers for the attack. nssm224 privilege escalation updated
| Product / Vendor | Affected Versions | Impact | |----------------|------------------|--------| | | Versions prior to 2025.3.1 | Privilege escalation via nssm.exe in the DAUM-WINDOWS-SERVICE | | IBM Robotic Process Automation | 21.0.0–21.0.7.17 and 23.0.0–23.0.18 | All files inherit parent directory permissions, allowing non‑privileged users to substitute any executable for nssm.exe | | Wowza Streaming Engine | Version 4.5.0 | nssm_x64.exe accessible to the Everyone group with full permissions; malicious replacement executes with LocalSystem privileges | | Apache CouchDB | Version 2.0.0 | nssm.exe (CouchDB service) can be replaced by a standard user; service runs as LocalSystem |
Even though NSSM 2.24 is an older version (last updated around 2018), it remains widely used. As of 2026, the exploitation methods have remained consistent, focusing on and path traversal . 1. Weak Permissions on the NSSM Wrapper
When Windows attempts to start a service, it parses the binary path in the registry. If a path contains spaces and lacks quotes, Windows interprets the spaces as command-line arguments rather than part of the path. An attacker could exploit this vulnerability by creating
Preventing privilege escalation via NSSM services requires implementing the principle of least privilege and strict directory hardening. 1. Enforce Strict Access Control Lists (ACLs)
A vulnerability was discovered in nssm 224 that allows a low-privileged user to elevate their privileges to those of a higher-privileged user, potentially leading to system compromise. The vulnerability is caused by an improper handling of certain commands and parameters, which can be exploited by an attacker to execute arbitrary code with elevated privileges.
The "NSSM-224" privilege escalation pattern typically stems from one of three common Windows configuration flaws: 1. Insecure File Permissions (Weak Binaries) If not, they wait for an automated reboot
Security is not a set-it-and-forget-it task. Organizations should use tools like BloodHound or specialized Endpoint Detection and Response (EDR) agents to routinely audit Modify and Full Control permissions across all application directories.
Each of these cases follows the same pattern: a third‑party product bundles NSSM 2.24 but fails to set restrictive NTFS permissions on the directory containing nssm.exe , allowing any authenticated user to replace the binary and escalate privileges when the associated service restarts.
or the service executable it wraps has weak permissions (e.g., "Everyone" has "Full Control"), an attacker can replace the legitimate binary with a malicious one. When the service restarts, the malicious code runs as a privileged service. Service Configuration Hijacking: Using the command nssm install nssm set AppParameters
: Continued updates to older vulnerabilities in Wowza Streaming Engine showed that the "Everyone" group was still being granted full access to nssm_x64.exe in certain configurations.