×

Critical Sudo Vulnerabilities: CVE-2025-32462 and CVE-2025-32463

Staying informed about security vulnerabilities is crucial, especially those that can significantly impact systems. Recently, two significant vulnerabilities related to the sudo software have been disclosed under the identifiers CVE-2025-32462 and CVE-2025-32463. Sudo is a Unix/Linux program that allows a system administrator to delegate certain privileges to specific users, enabling them to execute commands as another user (often the root user).

CVE-2025-32462: Local Privilege Escalation via Sudo's Host Option

Description of CVE-2025-32462 Vulnerability

The CVE-2025-32462 vulnerability is a local privilege escalation (LPE) flaw affecting sudo prior to version 1.9.17p1. It occurs when the sudoers file (sudo's configuration file) specifies a host that is neither the current host nor ALL. In such specific and non-default configurations, listed users can execute commands on unintended machines. This flaw poses a risk to system security.

This sudo vulnerability is particularly concerning for environments that share a single sudoers configuration file across multiple machines or that use network-based user directories (like LDAP) to provide sudoers rules to a system. It can lead to a bypass of existing security measures.

Technical Impact and CVSS Score

  • Confidentiality: An attacker could bypass access restrictions to read sensitive data.
  • Integrity: An attacker could modify sensitive data or files.
  • Access Control / Privilege Escalation: An attacker could gain elevated privileges to execute unauthorized commands or code, leading to system compromise.

Although this is a local privilege escalation (requiring an authenticated account to exploit), the impact is considered Important because it allows an unprivileged attacker to execute arbitrary commands with elevated privileges in specific configurations. The associated CVSS v3.1 score is 2.8 (Low) according to Ubuntu, though Red Hat has a score of 7.8. The difference is due to vendor-specific factors, such as versions or build chain. Understanding these scores is essential for vulnerability analysis.

Systems Affected by CVE-2025-32462

This software vulnerability affects sudo versions prior to 1.9.17p1 and has been patched in that version. Many Linux distributions and Unix-based operating systems are impacted, including but not limited to:

  • Red Hat Enterprise Linux (RHEL) (specific versions)
  • Ubuntu (versions 25.04, 24.10, 24.04 LTS, 22.04 LTS, 20.04 LTS, etc.)
  • Debian (Bookworm, Bullseye, Trixie, etc. versions)
  • AlmaLinux
  • Oracle Linux
  • SUSE Linux Enterprise Server (SLES)
  • Slackware
  • FreeBSD
  • Alpine Linux
  • Gentoo
  • VMware (products using sudo)

Mitigation Measures and Patches for CVE-2025-32462

The primary mitigation measure is to update sudo to version 1.9.17p1 or later. This is the most effective way to patch the vulnerability.

For specific environments:

  • Using sudoers files: Remove rules defined in sudoers files that pertain to systems other than the local system.
  • Using LDAP: Use a restricted search path in the SSSD configuration so that rules not applicable to a system are not included in LDAP query results. These defense strategies are crucial.

CVE-2025-32463: Local Privilege Escalation via Sudo's `--chroot` Option

Description of CVE-2025-32463 Vulnerability

CVE-2025-32463 is a critical local privilege escalation vulnerability affecting sudo versions from 1.9.14 to 1.9.17. This flaw allows local users to gain root access even if they are not listed in the sudoers file. The vulnerability is due to a change introduced in sudo 1.9.14, where paths are resolved within the chrooted environment *before* the sudoers file is evaluated. This is a major security flaw.

An attacker can exploit this by creating a malicious /etc/nsswitch.conf file in a user-specified root directory. This malicious file can then force sudo to load arbitrary shared libraries (like libnss_/woot1337.so.2), allowing arbitrary code execution with root privileges. Such an RCE vulnerability (remote code execution, although local here) is extremely dangerous.

Technical Impact and CVSS Score

  • Critical Privilege Escalation: Any local user can execute arbitrary commands with root privileges, bypassing all security checks defined in the sudoers file.
  • Complete System Compromise: This vulnerability represents a major security breach as it allows full system compromise by local users, regardless of their assigned permissions.

This critical vulnerability has a CVSS v3.1 score of 9.3 (Critical), indicating a very high risk to cybersecurity.

Systems Affected by CVE-2025-32463

This vulnerability affects sudo versions from 1.9.14 to 1.9.17. It has been patched in version 1.9.17p1. Affected systems include, but are not limited to:

  • Ubuntu (versions 25.04, 24.10, 24.04 LTS)
  • Red Hat Enterprise Linux (RHEL) (specific versions)
  • Debian (certain versions like Sid, Trixie, but Bookworm and Bullseye are not affected as the vulnerable code was introduced later)
  • AlmaLinux
  • Oracle Linux
  • SUSE Linux Enterprise Server (SLES)
  • Slackware
  • FreeBSD
  • Alpine Linux
  • Gentoo
  • VMware (products using sudo)

Mitigation Measures and Patches for CVE-2025-32463

The most important solution is to update sudo to version 1.9.17p1 or later. This is the essential security patch to apply.

The fix for this vulnerability reverts changes made in version 1.9.14 and **completely deprecates the --chroot functionality**. The pivot_root() logic has been removed, making it impossible to call chroot() during command matching. This security update is non-negotiable.

General Recommendations and System Security

It is strongly recommended that all system administrators:

  • Check the version of sudo installed on their systems immediately.
  • Immediately apply available patches by updating sudo to version 1.9.17p1 or later. This is a top priority for IT security.
  • Follow security advisories from their respective operating system vendors (Red Hat, Ubuntu, Debian, SUSE, etc.) for specific update instructions. Stay informed about the latest security alerts.
  • Review sudoers configurations to ensure they do not contain problematic rules related to host options or the use of --chroot. Good configuration management is key.

These two critical vulnerabilities underscore the importance of keeping system software up-to-date, especially privilege management tools like sudo, which are prime targets for attackers seeking to gain root access on compromised systems. Infrastructure security relies on constant vigilance and swift action.

Mariama
Business Development
✕
What if we talked about your project?

Book a 30-minute conversation to understand how Saturne IA provides technical teams tailored to your growth challenges.

Tell us about your project
Powered by Saturne ia