cve.bz

CVE-2024-48990 needrestart project needrestart: Uncontrolled Search Path Element

7.8 highExploitEPSS 29%Fix available

High (7.8) in needrestart project needrestart. EPSS 29% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
29% (unchanged from 29% a week ago; 21% 30 days ago) estimated probability of exploitation activity in the next 30 days; 98th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-11-19. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-427 Uncontrolled Search Path Element
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-48990 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-48990?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-48990?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-48990 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
needrestartbefore 3.8

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11needrestart3.5-4+deb11u4DLA-3957-1
Debian12needrestart3.6-4+deb12u2DEBIAN-CVE-2024-48990 DSA-5815-1
Debian13, 14needrestart3.7-3.1DEBIAN-CVE-2024-48990
Ubuntu22.04:LTSlibmodule-scandeps-perl1.31-1ubuntu0.1USN-7117-1
Ubuntu22.04:LTSneedrestart3.5-5ubuntu2.2UBUNTU-CVE-2024-48990 USN-7117-1
Ubuntu24.04:LTSlibmodule-scandeps-perl1.35-1ubuntu0.24.04.1USN-7117-1
Ubuntu24.04:LTSneedrestart3.6-7ubuntu4.3UBUNTU-CVE-2024-48990 USN-7117-1
UbuntuPro:16.04:LTSlibmodule-scandeps-perl1.20-1ubuntu0.1~esm1USN-7117-1
UbuntuPro:16.04:LTSneedrestart2.6-1ubuntu0.1~esm1UBUNTU-CVE-2024-48990 USN-7117-1
UbuntuPro:18.04:LTSlibmodule-scandeps-perl1.24-1ubuntu0.1~esm1USN-7117-1
UbuntuPro:18.04:LTSneedrestart3.1-1ubuntu0.1+esm1UBUNTU-CVE-2024-48990 USN-7117-1
UbuntuPro:20.04:LTSlibmodule-scandeps-perl1.27-1ubuntu0.1~esm1USN-7117-1
UbuntuPro:20.04:LTSneedrestart3.4-6ubuntu0.1+esm1UBUNTU-CVE-2024-48990 USN-7117-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Public exploits

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

  • o-sec/CVE-2024-48990 Harbor Check: matches CVE 2 stars, Shell, created
    an exploit for CVE-2024-48990 ( Local Privilege Escalation ) in needrestart
  • BLUEBERRYP1LL/CVE-2024-48990 Harbor Check: matches CVE 1 star, Shell, created
    needrestart < 3.8 Local Privilege Escalation via PYTHONPATH injection
  • sobbing333/CVE-2024-48990-POC Harbor Check: matches CVE 1 star, Shell, created
    Simple poc for CVE-2024-48990 privilege escalation vulnerability with needrestart.
  • 0x3bs/CVE-2024-48990 Harbor Check: matches CVE 1 star, Shell, created
    i tried this in Conversor HTB machine
  • grecosamuel/CVE-2024-48990 Harbor Check: matches CVE 0 stars, C, created
    PoC about CVE-2024-48990. Qualys discovered that needrestart, before version 3.8, allows local attackers to execute arbitrary code as root …

Attack patterns (CAPEC)

  • CAPEC-38 Leveraging/Manipulating Configuration File Search Paths Likelihood: High · Severity: Very High
  • CAPEC-471 Search Order Hijacking Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON