CVE-2022-30688

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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
7.8 HIGH
LOCAL
LOW
LOW
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
mitreCNA
---
---
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 32%
VendorProductVersion
needrestart_projectneedrestart
0.8 ≤
𝑥
< 3.6
debiandebian_linux
9.0
debiandebian_linux
10.0
debiandebian_linux
11.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
needrestart
bullseye
3.5-4+deb11u3
fixed
bullseye (security)
3.5-4+deb11u1
fixed
bookworm
3.6-4+deb12u1
fixed
sid
3.7-3
fixed
trixie
3.7-3
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
needrestart
noble
not-affected
mantic
not-affected
lunar
not-affected
kinetic
not-affected
jammy
Fixed 3.5-5ubuntu2.1
released
impish
Fixed 3.5-4ubuntu2.1
released
focal
Fixed 3.4-6ubuntu0.1
released
bionic
Fixed 3.1-1ubuntu0.1
released
xenial
needs-triage