cve.bz

CVE-2024-11003 needrestart project needrestart: OS Command Injection

7.8 highEPSS 12%Fix available

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

On this page
Qualys discovered that needrestart, before version 3.8, passes unsanitized data to a library (Modules::ScanDeps) which expects safe input. This could allow a local attacker to execute arbitrary shell commands. Please see the related CVE-2024-10224 in Modules::ScanDeps.

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
12% (unchanged from 12% a week ago; 12% 30 days ago) estimated probability of exploitation activity in the next 30 days; 96th 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-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
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-11003 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-11003?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-11003?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-11003 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-11003 DSA-5815-1
Debian13, 14needrestart3.7-3.1DEBIAN-CVE-2024-11003
Ubuntu22.04:LTSlibmodule-scandeps-perl1.31-1ubuntu0.1USN-7117-1
Ubuntu22.04:LTSneedrestart3.5-5ubuntu2.2UBUNTU-CVE-2024-11003 USN-7117-1
Ubuntu24.04:LTSlibmodule-scandeps-perl1.35-1ubuntu0.24.04.1USN-7117-1
Ubuntu24.04:LTSneedrestart3.6-7ubuntu4.3UBUNTU-CVE-2024-11003 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-11003 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-11003 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-11003 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.

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: 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.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

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

References

Check your stackJSON