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.
Topic: Cyber Threats, Scams & Online Safety in Cybersecurity & Ethical Hacking · News & analysis
Also covers: Linux Administration
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?
- How Does CVE-2025-32463 Work?
- How Does CVE-2025-32462 Work?
- How Do You Check Your Systems?
- How Do You Fix and Harden?
- References
What Are the Two Vulnerabilities?
| CVE | Option | Affected versions | Fixed |
|---|---|---|---|
| CVE-2025-32463 | -R / --chroot | 1.9.14 to 1.9.17 | 1.9.17p1 |
| CVE-2025-32462 | -h / --host | 1.8.8 to 1.8.32, 1.9.0 to 1.9.17 | 1.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?
- Install your distribution's patched sudo package, or upstream 1.9.17p1 or later.
- Prioritise multi-user systems: shared servers, jump hosts, CI runners.
- Review sudoers for host-specific rules if you share files across machines.
- Monitor for unusual sudo use with options -R or -h in auditd logs.
- 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
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Wow
0
Sad
0
Angry
0