# CVE-2022-30688: needrestart 0.8 through 3.5 before 3.6 is prone to local privilege escalation.

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 35% of CVEs (2026-12-01)
- Published: 2022-05-17T18:58:09.000Z
- Modified: 2026-06-17T04:44:05.930Z
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- needrestart_project needrestart: from 0.8 before 3.6
- debian debian_linux: 9.0; 10.0; 11.0

## Every score

- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 4.6 Medium `AV:L/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/liske/needrestart/releases/tag/v3.6> (release-notes, third-party-advisory)
- <https://github.com/liske/needrestart/commit/e6e58136e1e3c92296e2e810cb8372a5fe0dbd30> (patch, third-party-advisory)
- <https://lists.debian.org/debian-security-announce/2022/msg00105.html> (mailing-list, third-party-advisory)
- <https://www.openwall.com/lists/oss-security/2022/05/17/9> (mailing-list, third-party-advisory)
- <http://www.openwall.com/lists/oss-security/2022/05/17/9> (mailing-list, third-party-advisory)
- <https://www.debian.org/security/2022/dsa-5137> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/05/msg00024.html> (mailing-list, third-party-advisory)
- <http://seclists.org/fulldisclosure/2024/Nov/17>
- <http://seclists.org/fulldisclosure/2024/Nov/15>

## Sources

- CVE List: [CVE-2022-30688](https://www.cve.org/CVERecord?id=CVE-2022-30688), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2022-30688](https://nvd.nist.gov/vuln/detail/CVE-2022-30688), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-30688 · Whole record: https://cve.day/CVE-2022-30688.json · Rebuilt by cve.day 2026-11-25T22:58:11.768Z
