CVEfocus › CVE database › CVE-2024-48990

CVE-2024-48990

CVSS 7.8 HighEPSS 29.2% (higher than 98% of CVEs)Published 2024-11-19Updated 2025-11-03Assigner: canonical

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.

CWE-427

What to do

Likely to be exploited: EPSS gives a 29% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

5Fixed
3Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04needrestartFixed3.6-7ubuntu4.3UBUNTU-CVE-2024-48990
Ubuntu 22.04needrestartFixed3.5-5ubuntu2.2UBUNTU-CVE-2024-48990
Ubuntu 20.04needrestartFix pending3.4-6ubuntu0.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2024-48990
Ubuntu 18.04needrestartFix pending3.1-1ubuntu0.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2024-48990
Ubuntu 16.04needrestartFix pending2.6-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-48990
Debian 14needrestartFixed3.7-3.1DEBIAN-CVE-2024-48990
Debian 13needrestartFixed3.7-3.1DEBIAN-CVE-2024-48990
Debian 12needrestartFixed3.6-4+deb12u2DEBIAN-CVE-2024-48990

What the vendor says

As published in the CVE record by canonical, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: Edit /etc/needrestart/needrestart.conf so that the following line appears after "# Disable interpreter scanners." and reboot: $nrconf{interpscan} = 0;

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.