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:H

Description

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

Exploit source choices

13 sources
Ubuntu needrestart Privilege Escalation
MSF-linux--local--ubuntu_needrestart_lpeMetasploitLinux / remotePreferred

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-19ubuntu_needrestart_lpe.rb
makuga01/cve-2024-48990-poc
GH-0d9d1a96797638c2490676565bc47902GitHubUnofficial GitHub source

PoC for CVE-2024-48990

2024-11-204 files · 105 stars
serner77/cve-2024-48990-automatic-exploit
GH-5426cd39dbc519d5ebb57ed6c292b5f2GitHubUnofficial GitHub source

Automated local privilege escalation exploit for CVE-2024-48990 (needrestart v3.7), leveraging PYTHONPATH hijacking to gain root access.

2025-10-283 files · 9 stars
ally-petitt/cve-2024-48990-exploit
GH-e2fd7b216402c610cb86e8a1f36628a3GitHubUnofficial GitHub source

My exploit for CVE-2024-48990. Full details of how I made this are on my blog.

2024-11-254 files · 5 stars
ns989/cve-2024-48990
GH-51d37115cb5f0179b87d465842a35222GitHubUnofficial GitHub source

Exploit for CVE-2024-48990 (Local Privilege Escalation in needrestart < 3.8)

2024-11-214 files · 5 stars
cyb3rfr0g/cve-2024-48990-poc
GH-dfd7a5c18777f2dbc8c066cd56ae13f4GitHubUnofficial GitHub source

My take on the needrestart Python CVE-2024-48990

2024-11-242 files · 2 stars
o-sec/cve-2024-48990
GH-45ed67c660b13bff59ed22e1049efef9GitHubUnofficial GitHub source

an exploit for CVE-2024-48990 ( Local Privilege Escalation ) in needrestart

2025-12-165 files · 2 stars
0x3bs/cve-2024-48990
GH-e377e2ea14c675071a01afc6d7907a9fGitHubUnofficial GitHub source

i tried this in Conversor HTB machine

2025-12-013 files · 1 stars
blueberryp1ll/cve-2024-48990
GH-6e297483aa4d82ef1fb5d7be5a23385dGitHubUnofficial GitHub source

needrestart < 3.8 Local Privilege Escalation via PYTHONPATH injection

2026-02-132 files · 1 stars
mr-dj/cve-2024-48990
GH-0b20359b430dcf6c27f4b343957edbe8GitHubUnofficial GitHub source

PoC for CVE-2024-48990

2025-10-302 files · 1 stars
nullbyte-7w7/cve-2024-48990
GH-f7a8205e05665062603bdecead4122faGitHubUnofficial GitHub source

nullbyte-7w7/cve-2024-48990 source repository

2024-12-184 files · 1 stars
sobbing333/cve-2024-48990-poc
GH-f6c520958ec65cfec895aa848e18b5e5GitHubUnofficial GitHub source

Simple poc for CVE-2024-48990 privilege escalation vulnerability with needrestart.

2025-12-212 files · 1 stars