{"id":"UBUNTU-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-01-30T02:36:05.500971Z","published":"2022-05-17T15:00:00Z","related":["USN-5426-1"],"upstream":["CVE-2022-30688"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-30688"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5426-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-30688"}],"affected":[{"package":{"name":"needrestart","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/needrestart@2.6-1ubuntu0.1~esm3?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1-1","2.3-2","2.4-1","2.5-1","2.6-1","2.6-1ubuntu0.1~esm1","2.6-1ubuntu0.1~esm2","2.6-1ubuntu0.1~esm3"],"ecosystem_specific":{"binaries":[{"binary_name":"needrestart","binary_version":"2.6-1ubuntu0.1~esm3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-30688.json"}},{"package":{"name":"needrestart","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/needrestart@3.1-1ubuntu0.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1-1ubuntu0.1"}]}],"versions":["2.11-4","3.0-1","3.1-1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"3.1-1ubuntu0.1","binary_name":"needrestart"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-30688.json"}},{"package":{"name":"needrestart","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/needrestart@3.4-6ubuntu0.1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4-6ubuntu0.1"}]}],"versions":["3.4-5","3.4-6"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"3.4-6ubuntu0.1","binary_name":"needrestart"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-30688.json"}},{"package":{"name":"needrestart","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/needrestart@3.5-5ubuntu2.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.5-5ubuntu2.1"}]}],"versions":["3.5-4ubuntu2","3.5-5ubuntu1","3.5-5ubuntu2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"needrestart","binary_version":"3.5-5ubuntu2.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-30688.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}