Skip to content

CVE-2024-48991 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 Pytho...

HighCVSS 7.8 EPSS 6.1%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
UbuntuDebian

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

Upgrade path

7 packages: 7 fixed.

PackageAffectedFixed inStatus
debian/needrestart(Debian 12) < 3.6-4+deb12u2; = 3.6-4; = 3.6-4+deb12u1 3.6-4+deb12u2 Fixed
debian/needrestart(Debian 13) < 3.7-3.1 3.7-3.1 Fixed
debian/needrestart(Debian 14) < 3.7-3.1 3.7-3.1 Fixed
needrestart < 3.8 3.8 Fixed
needrestart project needrestart < 3.8 3.8 Fixed
ubuntu/needrestart(Ubuntu 22.04) < 3.5-5ubuntu2.2 3.5-5ubuntu2.2 Fixed
ubuntu/needrestart(Ubuntu 24.04) < 3.6-7ubuntu4.3 3.6-7ubuntu4.3 Fixed

Affected products

ProductAffected versionsFixed in
debian/needrestart(Debian:12) < 3.6-4+deb12u2 3.6-4+deb12u2
debian/needrestart(Debian:12) = 3.6-4 No fix listed
debian/needrestart(Debian:12) = 3.6-4+deb12u1 No fix listed
debian/needrestart(Debian:13) < 3.7-3.1 3.7-3.1
debian/needrestart(Debian:14) < 3.7-3.1 3.7-3.1
ubuntu/needrestart(Ubuntu:22.04) < 3.5-5ubuntu2.2 3.5-5ubuntu2.2
needrestart < 3.8 3.8
needrestart project needrestart < 3.8 3.8
ubuntu/needrestart(Ubuntu:24.04) < 3.6-7ubuntu4.3 3.6-7ubuntu4.3

References