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 — Proof-of-concept exploit for CVE-2024-48990 demonstrating PYTHONPATH hijacking in needrestart to achieve local privilege escalation via SUID binary execution. | Kitploit
Tools/GitHubGitHub/nullbyte-7w7/cve-2024-48990
Privilege EscalationVulnerability AnalysisExploitationPenetration TestingPayload Development
GitHubnullbyte-7w7/cve-2024-48990

CVE-2024-48990

Proof-of-concept exploit for CVE-2024-48990 demonstrating PYTHONPATH hijacking in needrestart to achieve local privilege escalation via SUID binary execution.

View Repository
151 year agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2024-48990

introdution

This vulnerability takes advantage of the way in which needrestart manages the environment variable, to be more precise, PYTHONPATH can be hijacked by modifying the PYTHONPATH variable to a directory that contains a malicious library, thus executing and gaining access, we can have suid problems in some directories, so define in evil.c the following structure "sudo mount -o remount,suid /tmp" so we will be able to obtain root when executing /tmp/nullbyte -p.

Execution Exploit

root@kitploit:~
bash sysadmin_F.sh

now, wait sysadmin update system or execute needrestart version 3.7, remember target need have version 3.7 needrestart

POC

https://github.com/user-attachments/assets/f2fc821d-261f-484f-8e8f-3e53e43f3432

Download Tool