CVE-2022-30688 Affecting needrestart package, versions <3.6-1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.4% (36th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-NEEDRESTART-22587488
  • published18 Nov 2026
  • disclosed17 May 2022

Introduced: 17 May 2022

CVE-2022-30688  (opens in a new tab)

How to fix?

Upgrade Echo:latest needrestart to version 3.6-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream needrestart package and not the needrestart package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1