{"id":"CVE-2022-30688","aliases":["CLSA-2025-1764324770","DEBIAN-CVE-2022-30688","DLA-3013-1","DSA-5137-1","EUVD-2022-52519","GHSA-6qgc-vw4g-mxw4","UBUNTU-CVE-2022-30688","USN-5426-1"],"status":"published","title":"needrestart 0.8 through 3.5 before 3.6 is prone to local privilege escalation. Regexes to detect...","description":"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.","severity":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.00396,"percentile":0.34167,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-269"],"published":"2022-05-17T00:00:00Z","modified":"2026-11-11T02:31:16Z","fixes":[{"ecosystem":"TuxCare:Ubuntu:16.04","package":"needrestart","fixed_in":["2.6-1+tuxcare.els2"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"needrestart","fixed_in":["3.6-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"needrestart","fixed_in":["3.6-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"needrestart","fixed_in":["3.6-1"],"sources":["osv"]},{"ecosystem":"Debian:9","package":"needrestart","fixed_in":["2.11-3+deb9u2"],"sources":["osv"]},{"ecosystem":"Debian:10","package":"needrestart","fixed_in":["3.4-5+deb10u1"],"sources":["osv"]},{"ecosystem":"Debian:11","package":"needrestart","fixed_in":["3.5-4+deb11u1"],"sources":["osv"]},{"ecosystem":"Ubuntu:18.04:LTS","package":"needrestart","fixed_in":["3.1-1ubuntu0.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:20.04:LTS","package":"needrestart","fixed_in":["3.4-6ubuntu0.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:22.04:LTS","package":"needrestart","fixed_in":["3.5-5ubuntu2.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"TuxCare:Ubuntu:16.04","package":"needrestart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6-1+tuxcare.els2"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"needrestart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"needrestart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"needrestart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6-1"}]}]},{"source":"osv","ecosystem":"Debian:9","package":"needrestart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.11-3+deb9u2"}]}],"versions":["2.11-3","2.11-3+deb9u1"]},{"source":"osv","ecosystem":"Debian:10","package":"needrestart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4-5+deb10u1"}]}],"versions":["3.4-5"]},{"source":"osv","ecosystem":"Debian:11","package":"needrestart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.5-4+deb11u1"}]}],"versions":["3.5-4"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"needrestart","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"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"needrestart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1-1ubuntu0.1"}]}],"versions":["2.11-4","3.0-1","3.1-1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"needrestart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4-6ubuntu0.1"}]}],"versions":["3.4-5","3.4-6"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"needrestart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.5-5ubuntu2.1"}]}],"versions":["3.5-4ubuntu2","3.5-5ubuntu1","3.5-5ubuntu2"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"needrestart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1-1ubuntu0.1"}]}],"versions":["2.11-4","3.0-1","3.1-1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"needrestart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4-6ubuntu0.1"}]}],"versions":["3.4-5","3.4-6"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"needrestart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.5-5ubuntu2.1"}]}],"versions":["3.5-4ubuntu2","3.5-5ubuntu1","3.5-5ubuntu2"]}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"needrestart_project","product":"needrestart"}],"references":[{"url":"https://github.com/liske/needrestart/releases/tag/v3.6","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","web"]},{"url":"https://github.com/liske/needrestart/commit/e6e58136e1e3c92296e2e810cb8372a5fe0dbd30","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://lists.debian.org/debian-security-announce/2022/msg00105.html","tags":["x_refsource_MISC","x_transferred","Mailing List","Third Party Advisory","web"]},{"url":"https://www.openwall.com/lists/oss-security/2022/05/17/9","tags":["x_refsource_MISC","x_transferred","Mailing List","Third Party Advisory","web"]},{"url":"http://www.openwall.com/lists/oss-security/2022/05/17/9","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","article"]},{"url":"https://www.debian.org/security/2022/dsa-5137","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Third Party Advisory","advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/05/msg00024.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","article"]},{"url":"http://seclists.org/fulldisclosure/2024/Nov/17","tags":["web"]},{"url":"http://seclists.org/fulldisclosure/2024/Nov/15","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-30688","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-6qgc-vw4g-mxw4"},{"url":"https://errata.tuxcare.com/els_os/ubuntu16.04els/CLSA-2025-1764324770.html","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/30xxx/CVE-2022-30688.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-30688","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-30688","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-5426-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-30688","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2022-30688","description":"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.","status":"published","published":"2022-05-17T18:58:09Z","modified":"2025-11-03T21:46:15.566Z","updated_at":"2026-11-02T14:34:31.184134Z"}],"euvd":[{"id":"EUVD-2022-52519","description":"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.","status":"published","published":"2022-05-17T18:58:09Z","modified":"2025-11-03T21:46:15Z","updated_at":"2026-11-02T19:49:31.25882Z"}],"ghsa":[{"id":"GHSA-6qgc-vw4g-mxw4","title":"needrestart 0.8 through 3.5 before 3.6 is prone to local privilege escalation. Regexes to detect...","description":"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.","status":"published","published":"2022-05-18T00:00:23Z","modified":"2025-11-04T00:31:37Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-269"],"updated_at":"2026-11-02T15:04:28.99549Z"}],"nvd":[{"id":"CVE-2022-30688","description":"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.","status":"published","published":"2022-05-17T19:15:08.743Z","modified":"2026-06-17T04:44:05.93Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":4.6,"vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:07:20.264424Z"}],"osv":[{"id":"DEBIAN-CVE-2022-30688","description":"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.","status":"published","published":"2022-05-17T19:15:08.743Z","modified":"2026-11-03T08:01:16.059357233Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T08:25:01.007408Z"},{"id":"UBUNTU-CVE-2022-30688","description":"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.","status":"published","published":"2022-05-17T15:00:00Z","modified":"2026-02-04T02:46:42.001454Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T16:53:53.899276Z"},{"id":"CLSA-2025-1764324770","title":"Fix CVE(s): CVE-2022-30688","description":"   * SECURITY UPDATE: insecure regex patterns for interpreter detection\n     - debian/patches/CVE-2022-30688.patch: prevent local privilege escalation by\n       anchoring interpreter regex patterns\n     - CVE-2022-30688","status":"published","published":"2025-11-28T10:12:54Z","modified":"2026-06-04T10:03:26.367925Z","updated_at":"2026-11-02T15:43:42.847264Z"},{"id":"CVE-2022-30688","description":"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.","status":"published","published":"2022-05-17T18:58:09Z","modified":"2026-11-11T02:31:16.706373332Z","updated_at":"2026-11-11T02:50:43.46164Z"},{"id":"DLA-3013-1","title":"needrestart - security update","status":"published","published":"2022-05-18T00:00:00Z","modified":"2026-03-09T01:20:26.643504Z","updated_at":"2026-11-02T15:46:11.189256Z"},{"id":"DSA-5137-1","title":"needrestart - security update","status":"published","published":"2022-05-17T00:00:00Z","modified":"2026-03-09T02:11:38.592873Z","updated_at":"2026-11-02T15:46:17.543497Z"},{"id":"USN-5426-1","title":"needrestart vulnerability","description":"Jakub Wilk discovered that needrestart incorrectly used some regular\nexpressions. A local attacker could possibly use this issue to execute\narbitrary code.\n","status":"published","published":"2022-05-17T16:24:55Z","modified":"2026-04-27T19:16:20.189691Z","updated_at":"2026-11-02T16:58:16.20937Z"}]}}
