Skip to content
OpenAdvisories
Unscored CVE-2022-30688 EUVD-2022-52519GHSA-6qgc-vw4g-mxw4

needrestart 0.8 through 3.5 before 3.6 is prone to local privilege escalation. Regexes to detect the Perl, Python, and Ruby interpreters ar…

Published May 17, 2022 · Updated Nov 3, 2025 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 needrestart 3.6-1 —
Debian 13 needrestart 3.6-1 —
Debian 12 needrestart 3.6-1 —
Debian 11 needrestart 3.5-4+deb11u1 DSA-5137-1
Debian 10 needrestart 3.4-5+deb10u1 DSA-5137-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 9 needrestart 2.11-3+deb9u2 DLA-3013-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS needrestart 3.5-5ubuntu2.1 USN-5426-1
Ubuntu 20.04 LTS needrestart 3.4-6ubuntu0.1 USN-5426-1
Ubuntu 18.04 LTS needrestart 3.1-1ubuntu0.1 USN-5426-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS needrestart No fix yet —

Advisories 3

References