Qualys discovered that needrestart, before version 3.8, allows local attackers to execute arbitrary code as root by tricking needrestart into running the Ruby interpreter with an attacker-controlled RUBYLIB environment variable.
Product
ubuntu/needrestart vulnerabilities
6 published CVES affecting ubuntu/needrestart, from public sources (CVE.org, NVD, CISA KEV, FIRST EPSS, OSV).
- Total
- 6
- Critical
- 0
- High
- 5
- Medium
- 0
- Low
- 0
- Unscored
- 1
- CISA KEV
- 0
Latest ubuntu/needrestart CVEs
Newest publication first
-
HighCVSS 7.8 EPSS 8.0%
-
HighCVSS 7.8 EPSS 6.1%
Qualys discovered that needrestart, before version 3.8, allows local attackers to execute arbitrary code as root by winning a race condition and tricking needrestart into running their own, fake Python interpreter (instead of the system's real Python interpreter). The initial sec...
-
HighCVSS 7.8 EPSS 29.2% Framework module
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.
-
HighCVSS 7.8 EPSS 12.0%
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.
-
HighCVSS 7.8 EPSS 0.40%
needrestart 0.8 through 3.5 before 3.6 is prone to local privilege escalation. Regexes to detect the Perl, Python, and Ruby interpreters are not anchored, allowing a local user to escalate privileges when needrestart tries to detect if interpreters are using old source files.
-
Unknown
needrestart does not properly validate process names and cgroup paths, allowing a local attacker to escalate privileges to root or inject arbitrary output.
Sources: CVE.org, NVD, CISA KEV, FIRST EPSS, OSV and public exploit-reference metadata. Product matching comes from the published CVE records. A proof-of-concept means public code exists; it is not evidence of exploitation.