Vulnerability · Published May 17, 2022 · Assigned by mitre

CVE-2022-30688

High 7.8

In plain English

A high-severity security flaw in the needrestart package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.8High
Exploit odds (30 days)0.4%top 66.0% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12needrestart3.6-1DEBIAN-CVE-2022-30688
Debian:13needrestart3.6-1DEBIAN-CVE-2022-30688
Debian:14needrestart3.6-1DEBIAN-CVE-2022-30688
Ubuntu:22.04:LTSneedrestart3.5-5ubuntu2.1USN-5426-1
Ubuntu:22.04:LTSneedrestart3.5-5ubuntu2.1UBUNTU-CVE-2022-30688

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References