patchminder
Weaponized · Metasploit CVE-2024-48990

Code executionin needrestart.

Published 19 Nov 2024 · Updated 3 Nov 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Weaponized: a Metasploit exploit is public.

Attack code is public
Severity
High 7.8
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1
Attack likelihood
High
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 29.2% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 3.8 or later
In plain words

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.

What to do now
  • Upgrade needrestart to 3.8 or later.
  • Can't upgrade today? Edit /etc/needrestart/needrestart.conf so that the following line appears after "# Disable interpreter scanners." and reboot: $nrconf{interpscan} = 0;
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
needrestart
before 3.8
3.8
CVE record

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 11 Oct 2024
    CVE ID reserved by canonical.
  2. 19 Nov 2024
    Published in the CVE List.
  3. 19 Nov 2024
    Metasploit module: Ubuntu needrestart Privilege Escalation.
  4. 20 Nov 2024
    First public proof of concept on GitHub.
  5. 3 Nov 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Weaponized (Metasploit). CISA assessment (SSVC): exploitation none.

Metasploit module
1 module
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
19 repositories
1 flagged suspicious
GitHubno warning signs foundmakuga01/CVE-2024-48990-PoC105 stars · created 20 Nov 2024PoC for CVE-2024-48990
GitHubno warning signs foundpentestfunctions/CVE-2024-48990-PoC-Testing27 stars · created 24 Nov 2024Testing POC for use cases
GitHubno warning signs foundSerner77/CVE-2024-48990-Automatic-Exploit9 stars · created 28 Oct 2025Automated local privilege escalation exploit for CVE-2024-48990 (needrestart v3.7), leveraging PYTHONPATH hijacking to gain root access.
GitHubno warning signs foundns989/CVE-2024-489905 stars · created 21 Nov 2024Exploit for CVE-2024-48990 (Local Privilege Escalation in needrestart < 3.8)
GitHubno warning signs foundally-petitt/CVE-2024-48990-Exploit5 stars · created 25 Nov 2024My exploit for CVE-2024-48990. Full details of how I made this are on my blog.
GitHubno warning signs foundCyb3rFr0g/CVE-2024-48990-PoC2 stars · created 24 Nov 2024My take on the needrestart Python CVE-2024-48990
GitHubno warning signs foundo-sec/CVE-2024-489902 stars · created 16 Dec 2025an exploit for CVE-2024-48990 ( Local Privilege Escalation ) in needrestart
GitHubno warning signs foundNullByte-7w7/CVE-2024-489901 stars · created 18 Dec 2024
GitHubno warning signs foundMr-DJ/CVE-2024-489901 stars · created 30 Oct 2025PoC for CVE-2024-48990
GitHubno warning signs found0x3bs/CVE-2024-489901 stars · created 1 Dec 2025i tried this in Conversor HTB machine
GitHubsuspicious, do not runmladicstefan/CVE-2024-48990No link: this repository shows warning signs. Do not run it.Why: advertises a ready-made exploit

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other needrestart vulnerabilities

Same weakness: Uncontrolled search path element

All CWE-427 vulnerabilities

References
Cite this page

Patchminder. CVE-2024-48990: Code execution in needrestart. https://patchminder.com/cve/cve-2024-48990/ (accessed 5 December 2026).