Sudo Vulnerabilities CVE-2025-32462 and CVE-2025-32463 Explained

CVE-2025-32462 and CVE-2025-32463 are two local privilege escalation flaws in sudo, the Linux and Unix tool that lets permitted users run commands as root. Disclosed on 30 June 2025 by Rich Mirch of Stratascale, the more serious one, CVE-2025-32463, abuses sudo's chroot option in versions 1.9.14 to 1.9.17 to let a local user gain root, and CISA later added it to its Known Exploited Vulnerabilities catalogue.

Jul 05, 2025 - 15:13
Updated: 
106.9k

Cyber Threats, Scams & Online Safety in Cybersecurity & Ethical Hacking · News & analysis

Linux Administration

Sudo Vulnerabilities CVE-2025-32462 and CVE-2025-32463 Explained

Quick answer: CVE-2025-32462 and CVE-2025-32463 are two local privilege escalation flaws in sudo, the Linux and Unix tool that lets permitted users run commands as root. Disclosed on 30 June 2025 by Rich Mirch of Stratascale, the more serious one, CVE-2025-32463, abuses sudo's chroot option in versions 1.9.14 to 1.9.17 to let a local user gain root, and CISA later added it to its Known Exploited Vulnerabilities catalogue. CVE-2025-32462 affects systems whose sudoers rules restrict commands to specific hosts. Both are fixed in sudo 1.9.17p1; install your distribution's patched package.

Key takeaways

  • Both flaws require local access; they turn a normal user into root.
  • CVE-2025-32463 affects sudo 1.9.14 to 1.9.17 and is in the CISA KEV catalogue.
  • CVE-2025-32462 matters mainly where sudoers uses host-specific rules shared across machines.
  • Upgrade to sudo 1.9.17p1 or your distribution's patched build.
  • The chroot option is deprecated and will be removed.

Table of Contents

What Are the Two Vulnerabilities?

CVEOptionAffected versionsFixed
CVE-2025-32463-R / --chroot1.9.14 to 1.9.171.9.17p1
CVE-2025-32462-h / --host1.8.8 to 1.8.32, 1.9.0 to 1.9.171.9.17p1

Details are in the sudo advisories for the chroot bug and the host option bug, and in Stratascale's research.

How Does CVE-2025-32463 Work?

Since 1.9.14, sudo resolved paths inside a user-specified chroot directory while still evaluating the sudoers policy. A local user could point sudo at a directory they control containing a crafted name service switch configuration, causing sudo to load attacker-supplied code as root. Notably, the user did not need any sudo rules granting them commands. The fix reverted this behaviour, and the chroot option is now deprecated.

How Does CVE-2025-32462 Work?

The host option is meant for listing privileges for another host. Due to a bug, it could also be used when running commands, so a user allowed to run commands on a different host in a shared sudoers file (common with LDAP or centrally managed sudoers) could run them on the current machine. Systems with simple sudoers files using only ALL as the host are not meaningfully affected.

How Do You Check Your Systems?

# Installed sudo version
sudo --version | head -1

# Debian/Ubuntu: confirm the package includes the security fix
apt-cache policy sudo

# RHEL/Rocky/Alma: check updates
dnf updateinfo list --security | grep -i sudo

# Look for host-specific rules in sudoers (CVE-2025-32462 exposure)
sudo grep -RhvE '^\s*(#|$)' /etc/sudoers /etc/sudoers.d/ | grep -vE '\sALL\s*='

Distributions often backport fixes without changing the version number, so check your vendor's advisory rather than the version alone.

How Do You Fix and Harden?

  1. Install your distribution's patched sudo package, or upstream 1.9.17p1 or later.
  2. Prioritise multi-user systems: shared servers, jump hosts, CI runners.
  3. Review sudoers for host-specific rules if you share files across machines.
  4. Monitor for unusual sudo use with options -R or -h in auditd logs.
  5. Track the CISA KEV catalogue for prioritisation.

Coverage such as Help Net Security summarised distribution responses. Related: Linux file permissions and another local privilege escalation flaw. WebAsha offers Linux security training.

References

Frequently Asked Questions

A sudo flaw in the chroot option, affecting versions 1.9.14 to 1.9.17, that lets a local user gain root privileges.

A sudo flaw in the host option that can let users run commands allowed only on other hosts in shared sudoers files.

Sudo 1.9.17p1 fixes both, and distributions have released patched packages, sometimes backported to older versions.

Rich Mirch of Stratascale’s Cyber Research Unit discovered both, and they were disclosed on 30 June 2025.

Yes. CISA added CVE-2025-32463 to its Known Exploited Vulnerabilities catalogue after exploitation was observed.

No. A local user without any sudo rules granting commands could exploit the chroot flaw on affected versions.

No. Both require local access, but they matter because attackers often gain a normal user account first.

Check sudo --version and your distribution’s security advisories, since patches are often backported without version changes.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Wow Wow 0
Sad Sad 0
Angry Angry 0
Vaishnavi

Vaishnavi is a skilled tech professional at the Ethical Hacking Training Institute in Pune, responsible for managing and optimizing the technical infrastructure that supports advanced cybersecurity education. With deep expertise in network security, backend operations, and system performance, she ensures that practical labs, online modules, and assessments run smoothly and securely. Her behind-the-scenes contributions play a vital role in delivering a seamless and secure learning experience for aspiring ethical hackers.