| Name | 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. |
| Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DLA-3013-1, DSA-5137-1 |
| Debian Bugs | 1011154 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| needrestart (PTS) | buster, buster (security) | 3.4-5+deb10u1 | fixed |
| bullseye | 3.5-4+deb11u3 | fixed | |
| bullseye (security) | 3.5-4+deb11u1 | fixed | |
| bookworm | 3.6-4 | fixed | |
| sid, trixie | 3.6-5 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| needrestart | source | stretch | 2.11-3+deb9u2 | DLA-3013-1 | ||
| needrestart | source | buster | 3.4-5+deb10u1 | DSA-5137-1 | ||
| needrestart | source | bullseye | 3.5-4+deb11u1 | DSA-5137-1 | ||
| needrestart | source | (unstable) | 3.6-1 | 1011154 |
https://github.com/liske/needrestart/commit/e6e58136e1e3c92296e2e810cb8372a5fe0dbd30 (v3.6)
https://www.openwall.com/lists/oss-security/2022/05/17/9