{"id":"USN-7117-2","aliases":[],"status":"published","title":"needrestart regression","description":"USN-7117-1 fixed vulnerabilities in needrestart. The update introduced a\nregression in needrestart. This update fixes the problem.\n\nWe apologize for the inconvenience.\n\nOriginal advisory details:\n\n Qualys discovered that needrestart passed unsanitized data to a library \n (libmodule-scandeps-perl) which expects safe input. A local attacker could\n possibly use this issue to execute arbitrary code as root.\n (CVE-2024-11003)\n \n Qualys discovered that the library libmodule-scandeps-perl incorrectly \n parsed perl code. This could allow a local attacker to execute arbitrary\n shell commands. (CVE-2024-10224)\n \n Qualys discovered that needrestart incorrectly used the PYTHONPATH \n environment variable to spawn a new Python interpreter. A local attacker \n could possibly use this issue to execute arbitrary code as root. \n (CVE-2024-48990)\n \n Qualys discovered that needrestart incorrectly checked the path to the\n Python interpreter. A local attacker could possibly use this issue to win\n a race condition and execute arbitrary code as root. (CVE-2024-48991)\n \n Qualys discovered that needrestart incorrectly used the RUBYLIB\n environment variable to spawn a new Ruby interpreter. A local attacker\n could possibly use this issue to execute arbitrary code as root.\n (CVE-2024-48992)","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2024-11-26T09:29:32Z","modified":"2026-06-25T13:32:29Z","fixes":[{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"needrestart","fixed_in":["2.6-1ubuntu0.1~esm2"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"needrestart","fixed_in":["3.1-1ubuntu0.1+esm2"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"needrestart","fixed_in":["3.4-6ubuntu0.1+esm2"],"sources":["osv"]},{"ecosystem":"Ubuntu:22.04:LTS","package":"needrestart","fixed_in":["3.5-5ubuntu2.3"],"sources":["osv"]},{"ecosystem":"Ubuntu:24.04:LTS","package":"needrestart","fixed_in":["3.6-7ubuntu4.4"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"needrestart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6-1ubuntu0.1~esm2"}]}],"versions":["2.1-1","2.3-2","2.4-1","2.5-1","2.6-1","2.6-1ubuntu0.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"needrestart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1-1ubuntu0.1+esm2"}]}],"versions":["2.11-4","3.0-1","3.1-1","3.1-1ubuntu0.1","3.1-1ubuntu0.1+esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"needrestart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4-6ubuntu0.1+esm2"}]}],"versions":["3.4-5","3.4-6","3.4-6ubuntu0.1","3.4-6ubuntu0.1+esm1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"needrestart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.5-5ubuntu2.3"}]}],"versions":["3.5-4ubuntu2","3.5-5ubuntu1","3.5-5ubuntu2","3.5-5ubuntu2.1","3.5-5ubuntu2.2"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"needrestart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6-7ubuntu4.4"}]}],"versions":["3.6-5","3.6-6","3.6-7","3.6-7ubuntu3","3.6-7ubuntu4","3.6-7ubuntu4.1","3.6-7ubuntu4.3"]}],"references":[{"url":"https://ubuntu.com/security/notices/USN-7117-2","tags":["advisory"]},{"url":"https://launchpad.net/bugs/2089193","tags":["report"]}],"sources":{"osv":[{"id":"USN-7117-2","title":"needrestart regression","description":"USN-7117-1 fixed vulnerabilities in needrestart. The update introduced a\nregression in needrestart. This update fixes the problem.\n\nWe apologize for the inconvenience.\n\nOriginal advisory details:\n\n Qualys discovered that needrestart passed unsanitized data to a library \n (libmodule-scandeps-perl) which expects safe input. A local attacker could\n possibly use this issue to execute arbitrary code as root.\n (CVE-2024-11003)\n \n Qualys discovered that the library libmodule-scandeps-perl incorrectly \n parsed perl code. This could allow a local attacker to execute arbitrary\n shell commands. (CVE-2024-10224)\n \n Qualys discovered that needrestart incorrectly used the PYTHONPATH \n environment variable to spawn a new Python interpreter. A local attacker \n could possibly use this issue to execute arbitrary code as root. \n (CVE-2024-48990)\n \n Qualys discovered that needrestart incorrectly checked the path to the\n Python interpreter. A local attacker could possibly use this issue to win\n a race condition and execute arbitrary code as root. (CVE-2024-48991)\n \n Qualys discovered that needrestart incorrectly used the RUBYLIB\n environment variable to spawn a new Ruby interpreter. A local attacker\n could possibly use this issue to execute arbitrary code as root.\n (CVE-2024-48992)\n","status":"published","published":"2024-11-26T09:29:32Z","modified":"2026-06-25T13:32:29.898593159Z","updated_at":"2026-11-02T16:58:18.876384Z"}]}}
