What’s Vulnerable › Vulnerabilities
CVE-2022-30688
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-05-17 · updated 2026-06-17
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.
Affected products
- Debian Linux: 9.0, 10.0, 11.0
- needrestart: from 0.8 before 3.6 — fixed in 3.6
How to fix
Upgrade to a fixed version: needrestart 3.6. Check the vendor advisory for mitigations.
References
- http://www.openwall.com/lists/oss-security/2022/05/17/9
- https://github.com/liske/needrestart/commit/e6e58136e1e3c92296e2e810cb8372a5fe0dbd30
- https://github.com/liske/needrestart/releases/tag/v3.6
- https://lists.debian.org/debian-lts-announce/2022/05/msg00024.html
- https://lists.debian.org/debian-security-announce/2022/msg00105.html
- https://www.debian.org/security/2022/dsa-5137
- https://www.openwall.com/lists/oss-security/2022/05/17/9
- http://seclists.org/fulldisclosure/2024/Nov/15
- http://seclists.org/fulldisclosure/2024/Nov/17
- http://www.openwall.com/lists/oss-security/2022/05/17/9
- https://github.com/liske/needrestart/commit/e6e58136e1e3c92296e2e810cb8372a5fe0dbd30
- https://github.com/liske/needrestart/releases/tag/v3.6
Get alerted when CVE-2022-30688 or the next vulnerability affects your stack