# CVE-2024-48991: Qualys discovered that needrestart, before version 3.8, allows local attackers to execute arbitrary code as root by winning a race conditio…

- Severity: High 7.8 (CVSS:3.1, scored by canonical) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 6.07%, higher than 93% of CVEs (2026-12-01)
- Published: 2024-11-19T17:38:15.691Z
- Modified: 2026-06-17T07:59:11.903Z
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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).

(As written by CVE List.)

## Affected

- needrestart: before 3.8
- needrestart_project needrestart: before 3.8

## References

- <https://www.cve.org/CVERecord?id=CVE-2024-48991> (issue-tracking, vdb-entry)
- <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> (mailing-list)
- <https://www.openwall.com/lists/oss-security/2024/11/19/1> (mailing-list)
- <http://seclists.org/fulldisclosure/2024/Nov/17>
- <https://lists.debian.org/debian-lts-announce/2024/11/msg00014.html>

## Sources

- CVE List: [CVE-2024-48991](https://www.cve.org/CVERecord?id=CVE-2024-48991), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2024-48991](https://nvd.nist.gov/vuln/detail/CVE-2024-48991), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-48991 · Whole record: https://cve.day/CVE-2024-48991.json · Rebuilt by cve.day 2026-11-25T22:58:48.773Z
