CVEfocus › CVE database › CVE-2024-48991

CVE-2024-48991

CVSS 7.8 HighEPSS 0.3% (higher than 13% 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 winning a race condition and tricking needrestart into running their own, fake Python interpreter (instead of the system's real Python interpreter). The initial security fix (6ce6136) introduced a regression which was subsequently resolved (42af5d3).

CWE-362

What to do

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-48991
Ubuntu 22.04needrestartFixed3.5-5ubuntu2.2UBUNTU-CVE-2024-48991
Ubuntu 20.04needrestartFix pending3.4-6ubuntu0.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2024-48991
Ubuntu 18.04needrestartFix pending3.1-1ubuntu0.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2024-48991
Ubuntu 16.04needrestartFix pending2.6-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-48991
Debian 14needrestartFixed3.7-3.1DEBIAN-CVE-2024-48991
Debian 13needrestartFixed3.7-3.1DEBIAN-CVE-2024-48991
Debian 12needrestartFixed3.6-4+deb12u2DEBIAN-CVE-2024-48991

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.