Skip to main content
CVE-2024-48991VulnerabilityPublished Updated

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)

Affects needrestartSource GCVE Database

0
Compare
Authoritative record:CVE-2024-48991· High 7.8

Not known to be exploited · CVSS 7.8 High · fixed in 2.6-1ubuntu0.1~esm1 : patch needrestart soon.

Data as of 24 Nov 2026, 19:40 UTC

CVSS 3.1 base score
7.8High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (canonical)CVSS 3.17.8
Patch
Available – fixed in 2.6-1ubuntu0.1~esm1, 3.1-1ubuntu0.1+esm1, 3.4-6ubuntu0.1+esm1 +2
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 19 Nov 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
Ubuntu 24.04 LTSneedrestartpkg:deb/ubuntu/needrestart?arch=source&distro=nobleOther threatsAffected
  • <3.6-7ubuntu4.3
Fixed in
  • 3.6-7ubuntu4.3
Ubuntu 22.04 LTSneedrestartpkg:deb/ubuntu/needrestart?arch=source&distro=jammyOther threatsAffected
  • <3.5-5ubuntu2.2
Fixed in
  • 3.5-5ubuntu2.2
Ubuntu Pro 20.04 LTSneedrestartpkg:deb/ubuntu/needrestart?arch=source&distro=esm-apps/focalOther threatsAffected
  • <3.4-6ubuntu0.1+esm1
Fixed in
  • 3.4-6ubuntu0.1+esm1
Ubuntu Pro 18.04 LTSneedrestartpkg:deb/ubuntu/needrestart?arch=source&distro=esm-apps/bionicOther threatsAffected
  • <3.1-1ubuntu0.1+esm1
Fixed in
  • 3.1-1ubuntu0.1+esm1
Ubuntu Pro 16.04 LTSneedrestartpkg:deb/ubuntu/needrestart?arch=source&distro=esm-apps/xenialOther threatsAffected
  • <2.6-1ubuntu0.1~esm1
Fixed in
  • 2.6-1ubuntu0.1~esm1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

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).

References

Community reviews

Loading reviews…