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 for CVE-2024-48990 | Kitploit
Tools/GitHubGitHub/mr-dj/cve-2024-48990
Privilege EscalationVulnerability AnalysisExploitationPost-ExploitationPenetration TestingRed Teaming
GitHubmr-dj/cve-2024-48990

CVE-2024-48990

PoC for CVE-2024-48990

View Repository
19 months 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

PoC for CVE-2024-48990

CVE-2024-48990 is a local privilege escalation vulnerability found in the needrestart utility. The vuln exists in versions prior to 3.8. The service, which runs as root during events like package installations, insecurely scans all running processes. When it finds a Python process, it reads and trusts the PYTHONPATH environment variable from that process.

An unprivileged local attacker can hijack the PYTHONPATH on a "lure" process. When needrestart runs, it will find it, adopting the malicious path, and then execute the attacker's code with root privileges.

Usage

  1. Clone the repository in an attacker controlled directory:
root@kitploit:~
git clone https://github.com/Mr-DJ/CVE-2024-48990
cd CVE-2024-48990
  1. Make the exploit script executable:
root@kitploit:~
chmod +x exploit.sh
  1. Run the exploit. It will set the trap and wait till the SUID shell is detected(created when needrestart is executed by root), popping a root shell.

Mitigation

  • Patch: Update needrestart to version 3.8 or a patched version from your distribution
  • Harden Mounts: This exploit can also be mitigated by mounting user writable directories with the nosuid and noexec options.

References

  • CVE: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-48990

  • Original Advisory: Qualys - LPEs in needrestart

  • NIST: NVD-CVE-2024-48990

Download Tool