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 — My take on the needrestart Python CVE-2024-48990 | Kitploit
Tools/GitHubGitHub/cyb3rfr0g/cve-2024-48990-poc
Privilege EscalationVulnerability AnalysisExploitationPenetration TestingPayload Development
GitHubcyb3rfr0g/cve-2024-48990-poc

CVE-2024-48990-PoC

My take on the needrestart Python CVE-2024-48990

View Repository
21 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

This simple shell script should create all the required file for this vulnerability to work.

First it creates a randomly generated temporary file that will be used to compile the fake __init__.so file When the vulnerability is triggered. This file will execute and copy the bash binary to /tmp/ribbit and set the SUID bit. Next It creates the importlib directory in the current working directory It then compiles the temporary file created into __init__.so and puts it into the newly created directory Lastly it creates another randomly named temporary python file that sleeps and waits for the vulnerability to trigger. Once triggered it will execute the SUID set bash binary resulting in a root shell.

Once the python script is started. needrestart needs to execute with root permissions. This is typically done when apt-get is used.

Download Tool