module
Ubuntu needrestart Privilege Escalation
Disclosed | Created |
---|---|
2024-11-19 | 2025-01-10 |
Disclosed
2024-11-19
Created
2025-01-10
Description
Local attackers can execute arbitrary code as root by
tricking needrestart into running the Python interpreter with an
attacker-controlled PYTHONPATH environment variable.
Verified against Ubuntu 22.04 with needrestart 3.5-5ubuntu2.1
Attempted exploitation against Debian 12, expliotation failed
tricking needrestart into running the Python interpreter with an
attacker-controlled PYTHONPATH environment variable.
Verified against Ubuntu 22.04 with needrestart 3.5-5ubuntu2.1
Attempted exploitation against Debian 12, expliotation failed
Authors
h00die
makuga01
qualys
makuga01
qualys
Platform
Linux
Architectures
x86, x64
References
Module Options
To display the available options, load the module within the Metasploit console and run the commands ‘show options’ or ‘show advanced’:

NEW
Explore Exposure Command
Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.