
CVE catalog
CVE-2022-30688
needrestart: CVE-2022-30688
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.39% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | needrestart | sid | 3.11-1 | fixed |
| Debian | needrestart | forky | 3.11-1 | fixed |
| Debian | needrestart | trixie | 3.11-1 | fixed |
| Debian | needrestart | bookworm | 3.6-4+deb12u3 | fixed |
| Debian | needrestart | bookworm-security | 3.6-4+deb12u3 | fixed |
| Ubuntu | needrestart | 18.04 | 2.11-4 | vulnerable |
| Ubuntu | needrestart | 18.04 | 3.0-1 | vulnerable |
| Ubuntu | needrestart | 18.04 | 3.1-1 | vulnerable |
| Ubuntu | needrestart | 18.04 | 3.1-1ubuntu0.1 | fixed |
| Ubuntu | needrestart | 20.04 | 3.4-5 | vulnerable |
| Ubuntu | needrestart | 20.04 | 3.4-6 | vulnerable |
| Ubuntu | needrestart | 20.04 | 3.4-6ubuntu0.1 | fixed |
| Ubuntu | needrestart | 22.04 | 3.5-4ubuntu2 | vulnerable |
| Ubuntu | needrestart | 22.04 | 3.5-5ubuntu1 | vulnerable |
| Ubuntu | needrestart | 22.04 | 3.5-5ubuntu2 | vulnerable |
| Ubuntu | needrestart | 22.04 | 3.5-5ubuntu2.1 | fixed |
| Ubuntu | needrestart | pro | 2.1-1 | vulnerable |
| Ubuntu | needrestart | pro | 2.3-2 | vulnerable |
| Ubuntu | needrestart | pro | 2.4-1 | vulnerable |
| Ubuntu | needrestart | pro | 2.5-1 | vulnerable |
| Ubuntu | needrestart | pro | 2.6-1 | vulnerable |
| Ubuntu | needrestart | pro | 2.6-1ubuntu0.1~esm1 | vulnerable |
| Ubuntu | needrestart | pro | 2.6-1ubuntu0.1~esm2 | vulnerable |
| Ubuntu | needrestart | pro | 2.6-1ubuntu0.1~esm3 | vulnerable |
| Ubuntu | needrestart | 18.04 | 2.11-4 | vulnerable |
| Ubuntu | needrestart | 18.04 | 3.0-1 | vulnerable |
| Ubuntu | needrestart | 18.04 | 3.1-1 | vulnerable |
| Ubuntu | needrestart | 18.04 | 3.1-1ubuntu0.1 | fixed |
| Ubuntu | needrestart | 20.04 | 3.4-5 | vulnerable |
| Ubuntu | needrestart | 20.04 | 3.4-6 | vulnerable |
| Ubuntu | needrestart | 20.04 | 3.4-6ubuntu0.1 | fixed |
| Ubuntu | needrestart | 22.04 | 3.5-4ubuntu2 | vulnerable |
| Ubuntu | needrestart | 22.04 | 3.5-5ubuntu1 | vulnerable |
| Ubuntu | needrestart | 22.04 | 3.5-5ubuntu2 | vulnerable |
| Ubuntu | needrestart | 22.04 | 3.5-5ubuntu2.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | needrestart | source | sid | 3.6-1 | not yet assigned | Not reported | [1011154] |
| Debian | needrestart | source | forky | 3.6-1 | not yet assigned | Not reported | [1011154] |
| Debian | needrestart | source | trixie | 3.6-1 | not yet assigned | Not reported | [1011154] |
| Debian | needrestart | source | bookworm | 3.6-1 | not yet assigned | Not reported | [1011154] |
| Ubuntu | needrestart | deb | 18.04 | 3.1-1ubuntu0.1 | Not reported | USN-5426-1 | Not reported |
| Ubuntu | needrestart | deb | 20.04 | 3.4-6ubuntu0.1 | Not reported | USN-5426-1 | Not reported |
| Ubuntu | needrestart | deb | 22.04 | 3.5-5ubuntu2.1 | Not reported | USN-5426-1 | Not reported |
| Ubuntu | needrestart | deb | 18.04 | 3.1-1ubuntu0.1 | Not reported | UBUNTU-CVE-2022-30688 | Not reported |
| Ubuntu | needrestart | deb | 20.04 | 3.4-6ubuntu0.1 | Not reported | UBUNTU-CVE-2022-30688 | Not reported |
| Ubuntu | needrestart | deb | 22.04 | 3.5-5ubuntu2.1 | Not reported | UBUNTU-CVE-2022-30688 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [needrestart]Fixed
Details (6)
3.6-4+deb12u3· all · bookwormFixed · Fixed:
3.6-1dsa · needrestart · debian · bookworm
3.6-4+deb12u3· all · bookwormFixed · Fixed:
3.6-1dsa · needrestart · debian · bookworm
3.8-2~bpo12+1· all · bookworm-backportsFixed · Fixed:
3.6-1dsa · needrestart · debian · bookworm
3.8-2~bpo12+1· all · bookworm-backportsFixed · Fixed:
3.6-1dsa · needrestart · debian · bookworm
3.6-4+deb12u3· all · bookworm-securityFixed · Fixed:
3.6-1dsa · needrestart · debian · bookworm
3.6-4+deb12u3· all · bookworm-securityFixed · Fixed:
3.6-1dsa · needrestart · debian · bookworm
Observed:
References
- [https://osv.dev/vulnerability/DLA-3013-1]
- [https://osv.dev/vulnerability/DSA-5137-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2022-30688]
- [https://osv.dev/vulnerability/USN-5426-1]
- [https://security-tracker.debian.org/tracker/CVE-2022-30688]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database]