Vulnerability in Needrestart
CVE-2024-48990
- CVSS v3
- 7.8 High
- Public exploits
- 26 repositories · 1 Metasploit module
- EPSS
- 0.292 · 98.2th percentile
- Published
- 2024-11-19
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.292, 98.2th percentile (last changed ); up from 0.213 30 days earlier. About EPSS.
EPSS over last 30 days · oldest: 0.213 · newest: 0.292 · change: +0.079
Affected products
- Needrestart — versions 0
- Needrestart Project
Weakness classification (CWE)
Public exploits and proof-of-concept code
Metasploit modules
26 public repositories with exploit or proof-of-concept code for this CVE:
- makuga01/CVE-2024-48990-PoC (105 stars, last pushed 2024-11-20): PoC for CVE-2024-48990
- pentestfunctions/CVE-2024-48990-PoC-Testing (26 stars, last pushed 2024-11-24): Testing POC for use cases
- Serner77/CVE-2024-48990-Automatic-Exploit (9 stars, last pushed 2025-10-29): Automated local privilege escalation exploit for CVE-2024-48990 (needrestart v3.7), leveraging PYTHONPATH hijacking to gain root access.
- czeti/CVE-2024-48990_needrestart (5 stars, last pushed 2025-02-16): Exploit for CVE-2024-48990 - Privilege Escalation in Needrestart 3.7-3. For eductional purposes only
- ally-petitt/CVE-2024-48990-Exploit (5 stars, last pushed 2024-11-25): My exploit for CVE-2024-48990. Full details of how I made this are on my blog.
- ns989/CVE-2024-48990 (5 stars, last pushed 2024-11-22): Exploit for CVE-2024-48990 (Local Privilege Escalation in needrestart < 3.8)
- o-sec/CVE-2024-48990 (2 stars, last pushed 2026-10-23): an exploit for CVE-2024-48990 ( Local Privilege Escalation ) in needrestart
- tahsinunluturk/needrestart-privesc-cve-2024-48990 (2 stars, last pushed 2025-12-19): Local privilege escalation exploit for needrestart (CVE-2024-48990)
- Cyb3rFr0g/CVE-2024-48990-PoC (2 stars, last pushed 2024-11-24): My take on the needrestart Python CVE-2024-48990
- BLUEBERRYP1LL/CVE-2024-48990 (1 star, last pushed 2026-02-13): needrestart < 3.8 Local Privilege Escalation via PYTHONPATH injection
16 more are listed on the interactive page.
Also mentioned in 5 other repositories (nomi-sec/PoC-in-GitHub, pawan-shivarkar/List-of-CVE-s-, pawan-shivarkar/pawan-shivarkar, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- www.cve.org/CVERecord (issue-tracking, VDB Entry)
- github.com/liske/needrestart/commit/fcc9a4401392231bef4ef5ed026a0d7a275149ab (Patch, patch)
- www.qualys.com/2024/11/19/needrestart/needrestart.txt (Third Party Advisory, third-party-advisory)
- seclists.org/fulldisclosure/2024/Nov/17
- lists.debian.org/debian-lts-announce/2024/11/msg00014.html
- www.openwall.com/lists/oss-security/2024/11/19/1 (Mailing List)
This CVE has public exploit evidence. See the latest CVEs with public exploits.