CVE-2026-144468: NGINX Unit 1.29.0 through 1.35.0 and FreeUnit before 1.37.2 Local Privilege Escalation via setup-unit Spoofed unitd Process Title
NGINX Unit 1.29.0 through 1.35.0 and the FreeUnit fork before 1.37.2 contain an OS command injection vulnerability in the tools/setup-unit helper, where unitcmd() takes the unitd command line from the bracketed text in the title of any process whose ps output contains 'unit: main', without checking who owns that process. unitsockfind() and unitctlwelcome() run that text as a command, and from 1.31.0 unitrestart() passes it to eval. Local unprivileged users can start a process titled like the unitd main process, so that an administrator who runs setup-unit as root, for example 'setup-unit ctl' without -s, 'sock find' or 'restart', executes a program or shell commands chosen by the attacker as root.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
A local unprivileged user can exploit it by starting a process with a title that resembles the Unit main process. Exploitation requires an administrator to subsequently run a vulnerable setup-unit operation as root.
Which administrator actions can trigger execution of attacker-controlled commands?
The affected helper can be triggered through setup-unit ctl when used without -s, as well as through the sock find and restart operations. The helper obtains a command from process-list output without verifying that the matching process is owned by the legitimate service.
What should be done if an update cannot be installed immediately?
Avoid running the affected setup-unit operations as root on systems where untrusted local users can create processes. In particular, do not rely on process-title discovery to identify the unitd process.
Which releases are affected?
NGINX Unit versions 1.29.0 through 1.35.0 are affected. FreeUnit releases before 1.37.2 are affected; updating FreeUnit to 1.37.2 or later addresses the affected version range.