CVE-2025-32462: Sudo Host Restriction Bypass via --host
- Vendor
- Sudo
CVE-2025-32462 is an authorization flaw in Sudo's enforcement of sudoers host restrictions, affecting versions 1.8.8 through 1.8.32 and 1.9.0 through 1.9.17. The -h/--host option, intended to support listing privileges for another host, is also accepted during command execution. A local user can supply a hostname matching a sudoers rule and execute commands on the current machine even when that rule authorizes execution only on a different host. This can permit local privilege escalation to root, subject to the rule's command and target-user permissions.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
An attacker controlling an account covered by an applicable host-restricted sudoers rule can cross the intended host authorization boundary. Commands authorized only on another machine may execute locally with elevated privileges, including root. Depending on the commands permitted, exploitation can compromise system confidentiality, integrity, and availability. The flaw does not inherently grant unrestricted command execution or bypass sudo authentication.
Mitigation
If you can’t patch tonight, do this now.
Until patched, remove sudoers rules for other hosts from the policy available on each affected machine, retaining only locally applicable, least-privilege rules. In LDAP/SSSD environments, narrow the sudo-rule search scope so irrelevant rules for other machines are not returned. Restrict access to Sudo where operationally feasible. Do not replace host restrictions with ALL as a workaround, because doing so broadens authorization.
Remediation
Patch, then assume compromise.
Upgrade Sudo to version 1.9.17p1 or later, or install the operating-system vendor's package containing the backported fix for CVE-2025-32462. For products bundling Sudo, deploy the corresponding vendor security update or fixed image.
Exploits
8 exploits validated by Mallory's analysis. Hidden: 5 rejected by Mallory's analysis as not a working exploit; 3 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-32462 exploited in the wild?
- As of Nov 27, 2026, Mallory has no reports of CVE-2025-32462 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-32462?
- Yes. Mallory tracks 8 public exploits or proofs of concept for CVE-2025-32462, the earliest disclosed Jul 3, 2025.
- Is there a patch for CVE-2025-32462?
- Upgrade Sudo to version 1.9.17p1 or later, or install the operating-system vendor's package containing the backported fix for CVE-2025-32462. For products bundling Sudo, deploy the corresponding vendor security update or fixed image.
- What products are affected by CVE-2025-32462?
- Sudo.
- How severe is CVE-2025-32462?
- CVE-2025-32462 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 4.9% (93rd percentile) as of Nov 27, 2026.
Recent activity
81 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.