Article Details

Scrape Timestamp (UTC): 2024-11-20 09:18:55.663

Source: https://thehackernews.com/2024/11/decades-old-security-vulnerabilities.html

Original Article Text

Click to Toggle View

Decades-Old Security Vulnerabilities Found in Ubuntu's Needrestart Package. Multiple decade-old security vulnerabilities have been disclosed in the needrestart package installed by default in Ubuntu Server (since version 21.04) that could allow a local attacker to gain root privileges without requiring user interaction. The Qualys Threat Research Unit (TRU), which identified and reported the flaws early last month, said they are trivial to exploit, necessitating that users move quickly to apply the fixes. The vulnerabilities are believed to have existed since the introduction of interpreter support in needrestart 0.8, which was released on April 27, 2014. "These needrestart exploits allow Local Privilege Escalation (LPE) which means that a local attacker is able to gain root privileges," Ubuntu said in an advisory, noting they have been addressed in version 3.8. Needrestart is a utility that scans a system to determine the services that need to be restarted after applying shared library updates in a manner that avoids a complete system reboot. The five flaws are listed below - Successful exploitation of the aforementioned shortcomings could allow a local attacker to set specially crafted environment variables for PYTHONPATH or RUBYLIB that could result in the execution of arbitrary code pointing to the threat actor's environment when needrestart is run. "In CVE-2024-10224, [...] attacker-controlled input could cause the Module::ScanDeps Perl module to run arbitrary shell commands by open()ing a 'pesky pipe' (such as by passing 'commands|' as a filename) or by passing arbitrary strings to eval()," Ubuntu noted. "On its own, this is not enough for local privilege escalation. However, in CVE-2024-11003 needrestart passes attacker-controlled input (filenames) to Module::ScanDeps and triggers CVE-2024-10224 with root privilege. The fix for CVE-2024-11003 removes needrestart's dependency on Module::ScanDeps." While it's highly advised to download the latest patches, Ubuntu said users can disable interpreter scanners in needrestart the configuration file as a temporary mitigation and ensure that the changes are reverted after the updates are applied. "These vulnerabilities in the needrestart utility allow local users to escalate their privileges by executing arbitrary code during package installations or upgrades, where needrestart is often run as the root user," Saeed Abbasi, product manager of TRU at Qualys, said. "An attacker exploiting these vulnerabilities could gain root access, compromising system integrity and security."

Daily Brief Summary

MALWARE // Decade-Old Flaws in Ubuntu's Needrestart Allow Root Access

Security vulnerabilities identified in Ubuntu's needrestart package by Qualys Threat Research Unit; potential for local attackers to gain root privileges.

Needrestart, installed by default on Ubuntu Server since version 21.04, contains flaws dating back to its 2014 release.

The vulnerabilities can be exploited by setting specific environment variables or by manipulating the Module::ScanDeps Perl module.

Ubuntu has issued a fix for these flaws in needrestart version 3.8 and suggests immediate updating or disabling certain features as temporary mitigation.

The vulnerabilities specifically allow execution of arbitrary code during times when needrestart is run, commonly during package installations or upgrades.

The overall threat involves Local Privilege Escalation (LPE), enabling a significant elevation of privileges for local users on affected systems.

Users are advised to apply the patch immediately or adjust needrestart settings to prevent interpreter scans until updates are secured.