Skip to content
OpenAdvisories
High · 7.8 CVE-2024-48991 EUVD-2024-43194GHSA-4696-66c4-2gvx

Qualys discovered that needrestart, before version 3.8, allows local attackers to execute arbitrary code as root by winning a race conditio…

Published Nov 19, 2024 · Updated Nov 3, 2025 · Assigned by canonical

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

Affected products

VendorProductAffectedFixed
needrestart needrestart < 3.8 3.8

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 needrestart 3.7-3.1 —
Debian 13 needrestart 3.7-3.1 —
Debian 12 needrestart 3.6-4+deb12u2 DSA-5815-1
Debian 11 needrestart 3.5-4+deb11u4 DLA-3957-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS libmodule-scandeps-perl 1.35-1ubuntu0.24.04.1 USN-7117-1
Ubuntu 24.04 LTS needrestart 3.6-7ubuntu4.3 USN-7117-1
Ubuntu 22.04 LTS libmodule-scandeps-perl 1.31-1ubuntu0.1 USN-7117-1
Ubuntu 22.04 LTS needrestart 3.5-5ubuntu2.2 USN-7117-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS libmodule-scandeps-perl 1.27-1ubuntu0.1~esm1 USN-7117-1
Ubuntu Pro 20.04 LTS needrestart 3.4-6ubuntu0.1+esm1 USN-7117-1
Ubuntu Pro 18.04 LTS libmodule-scandeps-perl 1.24-1ubuntu0.1~esm1 USN-7117-1
Ubuntu Pro 18.04 LTS needrestart 3.1-1ubuntu0.1+esm1 USN-7117-1
Ubuntu Pro 16.04 LTS libmodule-scandeps-perl 1.20-1ubuntu0.1~esm1 USN-7117-1
Ubuntu Pro 16.04 LTS needrestart 2.6-1ubuntu0.1~esm1 USN-7117-1

Advisories 3

References