{"id":"CVE-2024-48991","state":"PUBLISHED","title":"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 t","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).","publishedAt":"2024-11-19T17:38:15.691Z","updatedAt":"2025-11-03T22:22:10.925Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"canonical"},"assigner":"canonical","products":["needrestart needrestart"],"affected":[{"vendor":"needrestart","product":"needrestart","packageName":"needrestart","versions":[{"version":"0","status":"affected","lessThan":"3.8","versionType":"semver"}],"repo":"https://github.com/liske/needrestart","platforms":["Linux"]}],"references":["https://www.cve.org/CVERecord?id=CVE-2024-48991","https://github.com/liske/needrestart/commit/6ce6136cccc307c6b8a0f8cae12f9a22ac2aad59","https://github.com/liske/needrestart/commit/42af5d328901287a4f79d1f5861ac827a53fd56d","https://www.qualys.com/2024/11/19/needrestart/needrestart.txt","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"],"weaknesses":["CWE-362"],"ingestedAt":"2026-10-29T20:07:56.516Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/48xxx/CVE-2024-48991.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-48991","state":"PUBLISHED","datePublished":"2024-11-19T17:38:15.691Z","dateUpdated":"2025-11-03T22:22:10.925Z","assignerShortName":"canonical","assignerOrgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc","dateReserved":"2024-10-11T16:13:54.153Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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":[{"vendor":"needrestart","product":"needrestart","packageName":"needrestart","versions":[{"version":"0","status":"affected","lessThan":"3.8","versionType":"semver"}],"repo":"https://github.com/liske/needrestart","platforms":["Linux"]}],"references":[{"url":"https://www.cve.org/CVERecord?id=CVE-2024-48991","tags":["issue-tracking"]},{"url":"https://github.com/liske/needrestart/commit/6ce6136cccc307c6b8a0f8cae12f9a22ac2aad59","tags":["patch"]},{"url":"https://github.com/liske/needrestart/commit/42af5d328901287a4f79d1f5861ac827a53fd56d","tags":["patch"]},{"url":"https://www.qualys.com/2024/11/19/needrestart/needrestart.txt","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV3_1":{"version":"3.1","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"}}],"providerMetadata":{"shortName":"canonical","orgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc","dateUpdated":"2024-11-26T20:18:39.638Z"},"workarounds":[{"lang":"en","value":"Edit /etc/needrestart/needrestart.conf so that the following line\nappears after \"# Disable interpreter scanners.\" and reboot:\n$nrconf{interpscan} = 0;"}],"credits":[{"lang":"en","type":"finder","value":"Qualys"},{"lang":"en","type":"remediation developer","value":"Thomas Liske"},{"lang":"en","type":"coordinator","value":"Mark Esler"},{"lang":"en","type":"remediation reviewer","value":"Salvatore Bonaccorso"},{"lang":"en","type":"remediation reviewer","value":"Ivan Kurnosov"}]},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"needrestart_project","product":"needrestart","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"3.8","versionType":"semver"}],"cpes":["cpe:2.3:a:needrestart_project:needrestart:-:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-11-19T19:36:17.501931Z","id":"CVE-2024-48991","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-362","type":"CWE","lang":"en","description":"CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-03-13T15:42:57.043Z"}},{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2024/11/30/4"},{"url":"https://www.openwall.com/lists/oss-security/2024/11/19/1"},{"url":"http://seclists.org/fulldisclosure/2024/Nov/17"},{"url":"https://lists.debian.org/debian-lts-announce/2024/11/msg00014.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T22:22:10.925Z"}}]}}}