CVE-2024-48992 Privilege escalation in needrestart
Local attackers can execute arbitrary code as root by manipulating the RUBYLIB environment variable to trick needrestart into running the Ruby interpreter.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-48992?
CVE-2024-48992 is a high-severity vulnerability in needrestart, published on 19 Nov 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
Qualys discovered that needrestart, before version 3.8, allows local attackers to execute arbitrary code as root by tricking needrestart into running the Ruby interpreter with an attacker-controlled RUBYLIB environment variable.
Weakness: CWE-427
Which versions are affected by CVE-2024-48992?
It affects 1 product.
Products include Needrestart Project Needrestart.
How do I fix CVE-2024-48992?
Upgrade to a fixed version.
Is CVE-2024-48992 being exploited?
There is no known exploitation of CVE-2024-48992 in the wild and no public exploit code.
Other vulnerabilities in needrestart
Sources
Also known as CLSA-2024-1733429722, DEBIAN-CVE-2024-48992, GHSA-xmgx-2283-p55h, UBUNTU-CVE-2024-48992.