{"id":"CVE-2024-48992","published":"2024-11-19T17:38:22Z","modified":"2025-11-03T22:22:13Z","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 Ruby interpreter with an attacker-controlled RUBYLIB 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.07955,"percentile":0.94874,"provenance":"source"},"cwes":[{"id":"CWE-427","name":"Uncontrolled Search Path Element"}],"references":[{"url":"https://www.cve.org/CVERecord?id=CVE-2024-48992","tags":["issue-tracking"]},{"url":"https://github.com/liske/needrestart/commit/b5f25f6ec6e7dd0c5be249e4e45de4ee9ffe594f","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":24.4,"factors":[{"name":"EPSS percentile","points":18.97},{"name":"CVSS severity","points":5.46}]},"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:31:29.009180Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"The needrestart utility, before version 3.8, contains an uncontrolled search path flaw in how it launches the Ruby interpreter. A local attacker with low privileges and no user interaction can set a malicious RUBYLIB environment variable so that needrestart runs attacker-controlled code as root.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:37:04Z"},"euvd":{"id":"EUVD-2024-43160","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-needrestart-cve-2022-30688","parents":[{"from":"CVE-2022-30688","to":"CVE-2024-48992","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["perl/lib/NeedRestart/Interp/Ruby.pm"],"commits":["https://github.com/liske/needrestart/commit/e6e58136e1e3c92296e2e810cb8372a5fe0dbd30","https://github.com/liske/needrestart/commit/b5f25f6ec6e7dd0c5be249e4e45de4ee9ffe594f"],"basis":"rarely changed file"}]}]}}