{"id":"CVE-2024-48990","published":"2024-11-19T17:38:07Z","modified":"2025-11-03T22:22:08Z","title":"Qualys discovered that needrestart, before version 3.8, allows local attackers to execute arbitrary code as root by…","vendor":"needrestart","product":"needrestart","tier":"tail","description":{"text":"Qualys discovered that needrestart, before version 3.8, allows local attackers to execute arbitrary code as root by tricking needrestart into running the Python interpreter with an attacker-controlled PYTHONPATH environment variable.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.29202,"percentile":0.98215,"provenance":"source"},"cwes":[{"id":"CWE-427","name":"Uncontrolled Search Path Element"}],"references":[{"url":"https://www.cve.org/CVERecord?id=CVE-2024-48990","tags":["issue-tracking"]},{"url":"https://github.com/liske/needrestart/commit/fcc9a4401392231bef4ef5ed026a0d7a275149ab","tags":["patch"]},{"url":"https://www.qualys.com/2024/11/19/needrestart/needrestart.txt","tags":["third-party-advisory"]},{"url":"https://www.openwall.com/lists/oss-security/2024/11/19/1","tags":[]},{"url":"http://seclists.org/fulldisclosure/2024/Nov/17","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/11/msg00014.html","tags":[]}],"priority":{"score":30.1,"factors":[{"name":"EPSS percentile","points":19.64},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.46}]},"exploitSources":{"pocGithub":{"count":17,"skipped":2,"earliest":"2024-11-20","earliestUrl":"https://github.com/makuga01/CVE-2024-48990-PoC","repos":[{"name":"makuga01/CVE-2024-48990-PoC","url":"https://github.com/makuga01/CVE-2024-48990-PoC","stars":105,"created":"2024-11-20"},{"name":"pentestfunctions/CVE-2024-48990-PoC-Testing","url":"https://github.com/pentestfunctions/CVE-2024-48990-PoC-Testing","stars":26,"created":"2024-11-24"},{"name":"Serner77/CVE-2024-48990-Automatic-Exploit","url":"https://github.com/Serner77/CVE-2024-48990-Automatic-Exploit","stars":9,"created":"2025-10-28"},{"name":"ns989/CVE-2024-48990","url":"https://github.com/ns989/CVE-2024-48990","stars":5,"created":"2024-11-21"},{"name":"ally-petitt/CVE-2024-48990-Exploit","url":"https://github.com/ally-petitt/CVE-2024-48990-Exploit","stars":5,"created":"2024-11-25"}]},"metasploit":[{"name":"Ubuntu needrestart Privilege Escalation","module":"exploit/linux/local/ubuntu_needrestart_lpe","type":"exploit","disclosureDate":"2024-11-19","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/ubuntu_needrestart_lpe.rb"}],"first":{"date":"2024-11-19","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/ubuntu_needrestart_lpe.rb"},"provenance":"source"},"vendorSlug":"needrestart","affectedVersions":[{"vendor":"needrestart","product":"needrestart","versions":["< 3.8"]}],"workarounds":{"items":["Edit /etc/needrestart/needrestart.conf so that the following line appears after \"# Disable interpreter scanners.\" and reboot: $nrconf{interpscan} = 0;"],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-11-19T19:47:39.271392Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-43193","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-needrestart-cve-2022-30688","parents":[{"from":"CVE-2022-30688","to":"CVE-2024-48990","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["perl/lib/NeedRestart/Interp/Python.pm"],"commits":["https://github.com/liske/needrestart/commit/e6e58136e1e3c92296e2e810cb8372a5fe0dbd30","https://github.com/liske/needrestart/commit/fcc9a4401392231bef4ef5ed026a0d7a275149ab"],"basis":"rarely changed file"}]}]}}