{"id":"CVE-2022-30688","details":"needrestart 0.8 through 3.5 before 3.6 is prone to local privilege escalation. Regexes to detect the Perl, Python, and Ruby interpreters are not anchored, allowing a local user to escalate privileges when needrestart tries to detect if interpreters are using old source files.","modified":"2026-04-10T04:47:39.879017Z","published":"2022-05-17T19:15:08.743Z","references":[{"type":"WEB","url":"http://seclists.org/fulldisclosure/2024/Nov/17"},{"type":"WEB","url":"http://seclists.org/fulldisclosure/2024/Nov/15"},{"type":"ADVISORY","url":"https://github.com/liske/needrestart/releases/tag/v3.6"},{"type":"ADVISORY","url":"https://www.debian.org/security/2022/dsa-5137"},{"type":"ADVISORY","url":"http://www.openwall.com/lists/oss-security/2022/05/17/9"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2022/05/msg00024.html"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-security-announce/2022/msg00105.html"},{"type":"ADVISORY","url":"https://www.openwall.com/lists/oss-security/2022/05/17/9"},{"type":"FIX","url":"https://github.com/liske/needrestart/commit/e6e58136e1e3c92296e2e810cb8372a5fe0dbd30"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/liske/needrestart","events":[{"introduced":"a890fd20a9f303db8f77830052794d54e19a79fc"},{"fixed":"baf5e5480f6dc30b7f4bcb7030677e63dbbfd0a9"},{"fixed":"e6e58136e1e3c92296e2e810cb8372a5fe0dbd30"}],"database_specific":{"versions":[{"introduced":"0.8"},{"fixed":"3.6"}]}}],"versions":["untagged-8041ea07bb5db92f7693","v0.8","v0.9","v1.0","v1.1","v1.2","v2.0","v2.1","v2.10","v2.2","v2.4","v2.5","v2.6","v2.7","v2.8","v2.9","v3.0","v3.1","v3.2","v3.3","v3.4","v3.5"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-30688.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"9.0"}]},{"events":[{"introduced":"0"},{"last_affected":"10.0"}]},{"events":[{"introduced":"0"},{"last_affected":"11.0"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}