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
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
Thin evidence
One scorer or none| CNA (canonical) | CVSS 3.1 | 7.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:HExploitation evidence
Disclosed: evidence found.
CVE published 19 Nov 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSneedrestartpkg:deb/ubuntu/needrestart?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSneedrestartpkg:deb/ubuntu/needrestart?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 20.04 LTSneedrestartpkg:deb/ubuntu/needrestart?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in
|
Ubuntu Pro 18.04 LTSneedrestartpkg:deb/ubuntu/needrestart?arch=source&distro=esm-apps/bionicOther threats | Affected
| Fixed in
|
Ubuntu Pro 16.04 LTSneedrestartpkg:deb/ubuntu/needrestart?arch=source&distro=esm-apps/xenialOther threats | Affected
| Fixed in
|
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
- ubuntu.com/security/CVE-2024-48991 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-48991 (opens in a new tab)
- qualys.com/2024/11/19/needrestart/needrestart.txt (opens in a new tab)
- ubuntu.com/security/notices/USN-7117-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7117-2 (opens in a new tab)
- github.com/liske/needrestart/issues/317 (opens in a new tab)