A team of security researchers has released an in-depth technical report on CVE-2025-32463, a critical local privilege escalation flaw in the widely used Linux sudo utility.
The vulnerability, which affects sudo versions 1.9.14 through 1.9.17, allows a local attacker with standard sudo access to gain full root privileges by abusing the tool’s –chroot feature.
At the heart of the issue is a logic error in the –chroot (or -R) option. Normally, chroot confines a process to a specified directory, but sudo applies this confinement before checking user permissions and before loading Name Service Switch (NSS) modules.
By placing a malicious /etc/nsswitch.conf file inside a user-controlled chroot directory, an attacker can force sudo to load a rogue shared library (.so) with root privileges via NSS’s dynamic module loading.
The flaw stems from the sequence of operations in sudo’s source code. After invoking chroot() on the target directory, sudo still runs as root.
It then calls functions like getpwuid() to verify user credentials. NSS reads the chrooted /etc/nsswitch.conf and, based on its contents, performs dlopen() on libraries such as libnss_malicious.so.2.
Because these modules load in the root context, an attacker’s specially crafted library can execute arbitrary root-level code in its constructor.
This method requires only local file write access and a writable directory like /tmp, making the attack both simple and devastating.
Researchers demonstrated the exploit in several steps:
Proof-of-concept code and detailed assembly-level analysis are available on GitHub, illustrating each stage from system call tracing with strace to the final shell spawn.
Affected systems include Ubuntu 24.04+, Red Hat 8/9, SUSE, Amazon Linux, and macOS Ventura/Sonoma when using vulnerable sudo releases.
The flaw is especially dangerous in containerized environments (Docker, Podman), where chroot escapes can lead to host compromise.
To defend against this attack:
CVE-2025-32463 highlights how seemingly protective features can introduce critical security gaps. System administrators are urged to apply updates and mitigations immediately to prevent unauthorized root access.
Continuous code reviews and responsible disclosure remain vital to securing essential system utilities.
Follow us on Google News, LinkedIn, and X to Get Instant Updates and Set GBH as a Preferred Source in Google.
Attackers abused compromised ConnectWise Cloud Backup credentials to access Microsoft 365 customer environments, prompting ConnectWise…
Anthropic says an internal Claude research model reconstructed how the National Security Agency generated seeds…
Two WordPress Core vulnerabilities can be chained to execute remote code without authentication, according to…
A newly disclosed OpenBSD kernel exploitation chain combines a shared memory accounting flaw with a…
GhostAction attackers have expanded their GitHub credential theft campaign with a second stage that disguises…
Indian authorities have warned that SideCopy hackers are targeting Indian organizations, including academic institutions, with…