
Poc for easily exploit CVE-2024-11003
Qualys discovered that needrestart, before version 3.8, passes unsanitized data to a library (Modules::ScanDeps) which expects safe input. This could allow a local attacker to execute arbitrary shell commands. Please see the related CVE-2024-10224 in Modules::ScanDeps.
If needstart can be run with root priv, you can execute any command from root
Download exploit.conf on your vulnerable machine and use command:
sudo needrestart -c exploit.conf