CVE-2025-32463
NixOS vulnerability analysis and mitigation

Overview

A critical vulnerability (CVE-2025-32463) was discovered in Sudo versions 1.9.14 through 1.9.17. The vulnerability allows local users to obtain root access by exploiting the --chroot option, where /etc/nsswitch.conf from a user-controlled directory is used. This vulnerability was discovered and reported by Rich Mirch from Stratascale Cyber Research Unit (CRU) in June 2025 (Oligo Security, OpenWall).

Technical details

The vulnerability stems from a change introduced in sudo 1.9.14 that allowed path resolution via chroot() using a user-specified root directory while the sudoers file was still being evaluated. An attacker could prepare a writable directory (for example under /tmp), place a fake /etc/nsswitch.conf and a malicious libnss_*.so library there, and then invoke sudo with the --chroot option. This would cause sudo to load the attacker's code with root privileges. The vulnerability has been assigned a Critical CVSS score of 9.3 (CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H) (NVD, Oligo Security).

Impact

The vulnerability allows local users to gain complete root access to affected systems, even if they are not listed in the sudoers file. This enables attackers to execute arbitrary commands with root privileges, potentially leading to complete system compromise. The impact is particularly severe as it requires no special privileges or user interaction to exploit (Oligo Security).

Mitigation and workarounds

The vulnerability has been fixed in sudo version 1.9.17p1. The fix involves reverting the change from sudo 1.9.14 and marking the chroot feature as deprecated. Major Linux distributions have released patches for their respective versions. System administrators are strongly advised to update to sudo 1.9.17p1 or apply the vendor-provided security patches. Additionally, it is recommended to disable the chroot feature by adding 'Defaults !use_chroot' to the sudoers configuration (OpenWall, Oligo Security).

Community reactions

The vulnerability has received significant attention from the security community due to its critical severity and widespread impact. Major Linux distributions including Ubuntu, Red Hat, SUSE, and Debian have issued security advisories and patches. The discovery has led to increased scrutiny of sudo's security features, particularly those involving directory manipulation and privilege escalation vectors (Ubuntu, SUSE).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management