Vulnerability · Published Nov 19, 2024 · Assigned by canonical
CVE-2024-48991
High 7.8
In plain English
A high-severity race condition in needrestart from needrestart. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 6.1% (higher than 93% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | needrestart | 3.6-4+deb12u2 | DEBIAN-CVE-2024-48991 |
| Debian:12 | needrestart | 3.6-4+deb12u2 | DSA-5815-1 |
| Debian:13 | needrestart | 3.7-3.1 | DEBIAN-CVE-2024-48991 |
| Debian:14 | needrestart | 3.7-3.1 | DEBIAN-CVE-2024-48991 |
| Ubuntu:22.04:LTS | libmodule-scandeps-perl | 1.31-1ubuntu0.1 | USN-7117-1 |
| Ubuntu:24.04:LTS | libmodule-scandeps-perl | 1.35-1ubuntu0.24.04.1 | USN-7117-1 |
| Ubuntu:22.04:LTS | needrestart | 3.5-5ubuntu2.2 | UBUNTU-CVE-2024-48991 |
| Ubuntu:22.04:LTS | needrestart | 3.5-5ubuntu2.2 | USN-7117-1 |
| Ubuntu:24.04:LTS | needrestart | 3.6-7ubuntu4.3 | USN-7117-1 |
| Ubuntu:24.04:LTS | needrestart | 3.6-7ubuntu4.3 | UBUNTU-CVE-2024-48991 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| needrestart | needrestart | 0 – before 3.8 |
Weakness: CWE-362 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://www.cve.org/CVERecord?id=CVE-2024-48991 issue-tracking
- https://github.com/liske/needrestart/commit/6ce6136cccc307c6b8a0f8cae12f9a22ac2aad59 patch
- https://github.com/liske/needrestart/commit/42af5d328901287a4f79d1f5861ac827a53fd56d patch
- https://www.qualys.com/2024/11/19/needrestart/needrestart.txt third-party-advisory
- http://www.openwall.com/lists/oss-security/2024/11/30/4
- https://www.openwall.com/lists/oss-security/2024/11/19/1
- http://seclists.org/fulldisclosure/2024/Nov/17
- https://lists.debian.org/debian-lts-announce/2024/11/msg00014.html