CVE-2024-48990
Linux Debian vulnerability analysis and mitigation

Overview

Qualys discovered a critical vulnerability in needrestart (CVE-2024-48990) before version 3.8, which allows local attackers to execute arbitrary code as root. The vulnerability exists by tricking needrestart into running the Python interpreter with an attacker-controlled PYTHONPATH environment variable. This vulnerability has existed since the introduction of interpreter support in needrestart 0.8 in April 2014 (Qualys Advisory).

Technical details

The vulnerability occurs when needrestart processes Python interpreter instances. When determining whether a Python process needs to be restarted, needrestart extracts the PYTHONPATH environment variable from the process's /proc/pid/environ and sets this environment variable before executing Python. If a Python process belongs to a local attacker, needrestart executes Python with the attacker-controlled PYTHONPATH environment variable, enabling arbitrary code execution as root. The vulnerability has been assigned a CVSS v3.1 Base Score of 7.8 HIGH with vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability allows local attackers to gain root privileges on affected systems. This is particularly critical for Ubuntu Server installations since version 21.04, where needrestart is installed by default. The impact is heightened because the vulnerability can be exploited without user interaction through unattended-upgrades (Ubuntu Blog).

Mitigation and workarounds

The primary mitigation is to update to needrestart version 3.8 or later. If immediate updating is not possible, a temporary workaround is to disable the interpreter scanners by adding '$nrconf{interpscan} = 0;' to /etc/needrestart/needrestart.conf. However, this should only be applied as a last resort and the configuration should be restored once updates are applied (Ubuntu Blog).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61729HIGH7.5
  • DockerDocker
  • go
NoYesDec 02, 2025
CVE-2025-66293HIGH7.1
  • OpenJDK JDKOpenJDK JDK
  • java-17-openjdk-headless-slowdebug
NoNoDec 03, 2025
CVE-2025-39665MEDIUM6.9
  • Linux DebianLinux Debian
  • nagvis
NoNoDec 03, 2025
CVE-2025-61727MEDIUM6.5
  • DockerDocker
  • golang-1.24
NoYesDec 03, 2025
CVE-2025-66453MEDIUM5.5
  • JavaJava
  • org.mozilla:rhino
NoYesDec 03, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management