Skip to content

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

HighCVSS 7.8 EPSS 0.40%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebian

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.

Upgrade path

9 packages: 7 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/needrestart(Ubuntu Pro 16.04) = 2.1-1; = 2.3-2; = 2.4-1; = 2.5-1 +6 more No fix listed No fix yet
debian/needrestart(Debian 12) < 3.6-1 3.6-1 Fixed
debian/needrestart(Debian 13) < 3.6-1 3.6-1 Fixed
debian/needrestart(Debian 14) < 3.6-1 3.6-1 Fixed
needrestart project needrestart >= 0.8, < 3.6 3.6 Fixed
ubuntu/needrestart(Ubuntu 18.04) < 3.1-1ubuntu0.1; = 2.11-4; = 3.0-1; = 3.1-1 3.1-1ubuntu0.1 Fixed
ubuntu/needrestart(Ubuntu 20.04) < 3.4-6ubuntu0.1; = 3.4-5; = 3.4-6 3.4-6ubuntu0.1 Fixed
ubuntu/needrestart(Ubuntu 22.04) < 3.5-5ubuntu2.1; = 3.5-4ubuntu2; = 3.5-5ubuntu1; = 3.5-5ubuntu2 3.5-5ubuntu2.1 Fixed
debian linux = 9.0; = 10.0; = 11.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
ubuntu/needrestart(Ubuntu:22.04) < 3.5-5ubuntu2.1 3.5-5ubuntu2.1
needrestart project needrestart >= 0.8, < 3.6 3.6
debian linux = 9.0 No fix listed
debian linux = 10.0 No fix listed
debian linux = 11.0 No fix listed
debian/needrestart(Debian:12) < 3.6-1 3.6-1
debian/needrestart(Debian:13) < 3.6-1 3.6-1
debian/needrestart(Debian:14) < 3.6-1 3.6-1
ubuntu/needrestart(Ubuntu:Pro:16.04) All versions No fix listed
ubuntu/needrestart(Ubuntu:Pro:16.04) = 2.1-1 No fix listed
ubuntu/needrestart(Ubuntu:Pro:16.04) = 2.3-2 No fix listed
ubuntu/needrestart(Ubuntu:Pro:16.04) = 2.4-1 No fix listed
ubuntu/needrestart(Ubuntu:Pro:16.04) = 2.5-1 No fix listed
ubuntu/needrestart(Ubuntu:Pro:16.04) = 2.6-1 No fix listed
ubuntu/needrestart(Ubuntu:Pro:16.04) = 2.6-1ubuntu0.1~esm1 No fix listed
ubuntu/needrestart(Ubuntu:Pro:16.04) = 2.6-1ubuntu0.1~esm2 No fix listed
ubuntu/needrestart(Ubuntu:Pro:16.04) = 2.6-1ubuntu0.1~esm3 No fix listed
ubuntu/needrestart(Ubuntu:Pro:16.04) = 2.6-1ubuntu0.1~esm4 No fix listed
ubuntu/needrestart(Ubuntu:18.04) < 3.1-1ubuntu0.1 3.1-1ubuntu0.1
ubuntu/needrestart(Ubuntu:18.04) = 2.11-4 No fix listed
ubuntu/needrestart(Ubuntu:18.04) = 3.0-1 No fix listed
ubuntu/needrestart(Ubuntu:18.04) = 3.1-1 No fix listed
ubuntu/needrestart(Ubuntu:20.04) < 3.4-6ubuntu0.1 3.4-6ubuntu0.1
ubuntu/needrestart(Ubuntu:20.04) = 3.4-5 No fix listed
ubuntu/needrestart(Ubuntu:20.04) = 3.4-6 No fix listed
Show 3 more
ProductAffected versionsFixed in
ubuntu/needrestart(Ubuntu:22.04) = 3.5-4ubuntu2 No fix listed
ubuntu/needrestart(Ubuntu:22.04) = 3.5-5ubuntu1 No fix listed
ubuntu/needrestart(Ubuntu:22.04) = 3.5-5ubuntu2 No fix listed

References