Exploit database Vulnerability
CVE-2024-48990 Vulnerability details
Score 7.8
Severity high CVSS 3.1 · canonical
Vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HDescription Qualys discovered that needrestart, before version 3.8, allows local attackers to execute arbitrary code as root by tricking needrestart into running the Python interpreter with an attacker-controlled PYTHONPATH environment variable.
CVE Program Catalog coverage Source choices 13 Preferred source Metasploit First published 2024-11-19 Preferred order is Exploit-DB, Metasploit, then GitHub repositories by observed stars. GitHub repositories are unofficial and unverified.
Exploit source choices 13 sources Ubuntu needrestart Privilege EscalationMSF-linux--local--ubuntu_needrestart_lpe Metasploit Linux / remote Preferred
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
2024-11-19 ubuntu_needrestart_lpe.rb
2024-11-20 4 files · 105 stars
2024-11-24 4 files · 27 stars
serner77/cve-2024-48990-automatic-exploitGH-5426cd39dbc519d5ebb57ed6c292b5f2 GitHub Unofficial GitHub source
Automated local privilege escalation exploit for CVE-2024-48990 (needrestart v3.7), leveraging PYTHONPATH hijacking to gain root access.
2025-10-28 3 files · 9 stars
ally-petitt/cve-2024-48990-exploitGH-e2fd7b216402c610cb86e8a1f36628a3 GitHub Unofficial GitHub source
My exploit for CVE-2024-48990. Full details of how I made this are on my blog.
2024-11-25 4 files · 5 stars
ns989/cve-2024-48990GH-51d37115cb5f0179b87d465842a35222 GitHub Unofficial GitHub source
Exploit for CVE-2024-48990 (Local Privilege Escalation in needrestart < 3.8)
2024-11-21 4 files · 5 stars
cyb3rfr0g/cve-2024-48990-pocGH-dfd7a5c18777f2dbc8c066cd56ae13f4 GitHub Unofficial GitHub source
My take on the needrestart Python CVE-2024-48990
2024-11-24 2 files · 2 stars
o-sec/cve-2024-48990GH-45ed67c660b13bff59ed22e1049efef9 GitHub Unofficial GitHub source
an exploit for CVE-2024-48990 ( Local Privilege Escalation ) in needrestart
2025-12-16 5 files · 2 stars
0x3bs/cve-2024-48990GH-e377e2ea14c675071a01afc6d7907a9f GitHub Unofficial GitHub source
i tried this in Conversor HTB machine
2025-12-01 3 files · 1 stars
blueberryp1ll/cve-2024-48990GH-6e297483aa4d82ef1fb5d7be5a23385d GitHub Unofficial GitHub source
needrestart < 3.8 Local Privilege Escalation via PYTHONPATH injection
2026-02-13 2 files · 1 stars
mr-dj/cve-2024-48990GH-0b20359b430dcf6c27f4b343957edbe8 GitHub Unofficial GitHub source
PoC for CVE-2024-48990
2025-10-30 2 files · 1 stars
nullbyte-7w7/cve-2024-48990GH-f7a8205e05665062603bdecead4122fa GitHub Unofficial GitHub source
nullbyte-7w7/cve-2024-48990 source repository
2024-12-18 4 files · 1 stars
sobbing333/cve-2024-48990-pocGH-f6c520958ec65cfec895aa848e18b5e5 GitHub Unofficial GitHub source
Simple poc for CVE-2024-48990 privilege escalation vulnerability with needrestart.
2025-12-21 2 files · 1 stars