Affected versions
Ubuntu18.04:LTS/needrestart
- Affected versions
- <3.1-1ubuntu0.1
- Fixed version
- 3.1-1ubuntu0.1
Ubuntu20.04:LTS/needrestart
- Affected versions
- <3.4-6ubuntu0.1
- Fixed version
- 3.4-6ubuntu0.1
Ubuntu22.04:LTS/needrestart
- Affected versions
- <3.5-5ubuntu2.1
- Fixed version
- 3.5-5ubuntu2.1
- Affected versions
- *
- Fixed version
- Not reported
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.

