VDB

CVE-2022-30688

CVE-2022-30688 PUBLISHED

Reported by mitre · Published May 17, 2022

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 versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
needrestartneedrestart_project3.6

Affected products

VendorProductVersions
n/an/an/a
n/an/a*

Timeline

  • May 17, 2022 CVE Published
  • May 18, 2022 EPSS Score (30 in total, the first dated here)
  • Nov 24, 2024 PoC Published
  • Nov 3, 2025 CVE Updated
  • Mar 10, 2026 Distribution Patch
  • Mar 10, 2026 Security Advisory (2 in total, the first dated here)
  • Jun 25, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-30688
vulnetix vdb fixes CVE-2022-30688

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-30688/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›