CVE-2025-32462

LOW

sudo < 1.9.17p1 - Incorrect Authorization via Host Specification Bypass

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 12 public exploits for CVE-2025-32462. PoCs published by Rich Mirch, CryingN, 0p5cur.

AI-analyzed exploit summary This exploit leverages a misconfiguration in Sudo's Host_Alias handling, allowing a low-privilege user to bypass restrictions by specifying a remote host rule via the -h option, granting unauthorized root access. The vulnerability arises from Sudo incorrectly validating remote host rules for local execution.

Description

Sudo before 1.9.17p1, when used with a sudoers file that specifies a host that is neither the current host nor ALL, allows listed users to execute commands on unintended machines.

Exploits (12)

exploitdb WORKING POC
by Rich Mirch · textlocallinux
https://www.exploit-db.com/exploits/52354

This exploit leverages a misconfiguration in Sudo's Host_Alias handling, allowing a low-privilege user to bypass restrictions by specifying a remote host rule via the -h option, granting unauthorized root access. The vulnerability arises from Sudo incorrectly validating remote host rules for local execution.

Classification
Working Poc 100%
Attack Type
Lpe
Complexity
Trivial
Reliability
Reliable
Target: Sudo 1.9.0 - 1.9.17, 1.8.8 - 1.8.32
Auth required
Prerequisites: Access to a user account with restricted sudo rules · Presence of a misconfigured Host_Alias in /etc/sudoers
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 10 stars
by CryingN · poc
https://github.com/CryingN/CVE-2025-32462

This repository contains a PoC script for CVE-2025-32462, a sudo privilege escalation vulnerability. The script checks for users with NOPASSWD:ALL privileges in /etc/sudoers and attempts to escalate privileges by switching to the identified user.

Classification
Working Poc 90%
Attack Type
Lpe
Complexity
Trivial
Reliability
Reliable
Target: sudo versions 1.8.8 to 1.9.17
Auth required
Prerequisites: Access to a system with vulnerable sudo version · Presence of a user with NOPASSWD:ALL privileges in /etc/sudoers
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 8 stars
by 0p5cur · poc
https://github.com/0p5cur/CVE-2025-32462-POC

This repository contains a functional exploit PoC for CVE-2025-32462, a privilege escalation vulnerability in sudo versions ≤ 1.9.17. The exploit leverages the `-h` option to bypass RunAs restrictions and execute commands as root.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Trivial
Reliability
Reliable
Target: sudo ≤ 1.9.17
Auth required
Prerequisites: sudoers misconfiguration (e.g., (ALL, !root) NOPASSWD: ALL) · sudo version ≤ 1.9.17
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec WORKING POC 5 stars
by MAAYTHM · poc
https://github.com/MAAYTHM/CVE-2025-32462_32463-Lab

This repository contains a functional PoC for two sudo vulnerabilities: CVE-2025-32462 (host matching logic bypass) and CVE-2025-32463 (chroot NSS library escape). The PoC includes a Docker-based lab environment and scripts to demonstrate privilege escalation.

Classification
Working Poc 100%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: sudo 1.9.16p2
Auth required
Prerequisites: Access to a vulnerable sudo version · Ability to modify /etc/sudoers for CVE-2025-32462 · Ability to compile C code for CVE-2025-32463
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 3 stars
by SpongeBob-369 · poc
https://github.com/SpongeBob-369/cve-2025-32462

This PoC exploits a vulnerability in sudo (CVE-2025-32462) where the `-h/--host` option does not enforce host-based restrictions in non-`-l` scenarios, allowing privilege escalation via misconfigured sudoers rules. The exploit leverages Docker to demonstrate how an attacker can escalate privileges by bypassing host-specific sudoers restrictions.

Classification
Working Poc 90%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: sudo (versions affected by CVE-2025-32462)
Auth required
Prerequisites: Authenticated user access · Non-default sudoers configuration with host-specific rules
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 1 stars
by yonathanpy · poc
https://github.com/yonathanpy/CVE-2025-32462-CVE-2025-32463-PoC-Lab

This repository contains a functional PoC for CVE-2025-32462 and CVE-2025-32463, demonstrating sudo host validation bypass and NSS library injection for privilege escalation. It includes a Docker-based lab environment, exploit code, and detailed technical analysis.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: sudo 1.9.16p2
Auth required
Prerequisites: vulnerable sudo version · ability to modify /etc/sudoers · ability to create a chroot environment
devstral-2 · analyzed Mar 05, 2026 Full analysis →
nomisec WORKING POC 1 stars
by j3r1ch0123 · poc
https://github.com/j3r1ch0123/CVE-2025-32462

This exploit leverages CVE-2025-32462 to bypass sudo's host restrictions, allowing privilege escalation on Linux systems where sudo is configured with NOPASSWD rights for the -h option. It provides a pseudo-root shell by abusing the sudo -h command to execute arbitrary commands.

Classification
Working Poc 90%
Attack Type
Lpe
Complexity
Trivial
Reliability
Reliable
Target: sudo (affected versions)
Auth required
Prerequisites: sudo configured with NOPASSWD for the -h option · target host alias defined in the script
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 1 stars
by cybersentinelx1 · poc
https://github.com/cybersentinelx1/CVE-2025-32462-Exploit

This repository contains a functional exploit for CVE-2025-32462, demonstrating a local privilege escalation vulnerability in sudo versions < 1.9.17. The exploit bypasses hostname-based restrictions by using the `-h` flag to spoof a whitelisted hostname, allowing restricted users to gain root access.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: sudo < 1.9.17
Auth required
Prerequisites: Local user access · Sudo version < 1.9.17 · Hostname-based sudo restrictions configured
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WRITEUP
by OffSecPlaybook · poc
https://github.com/OffSecPlaybook/CVE-2025-32462-

This repository contains a detailed writeup and proof-of-concept for CVE-2025-32462, a local privilege escalation vulnerability in sudo that allows bypassing hostname-restricted sudo rules. The PoC demonstrates how a low-privileged user can execute commands as root by exploiting the flawed handling of the `-h` option in vulnerable sudo versions.

Classification
Writeup 100%
Attack Type
Lpe
Complexity
Trivial
Reliability
Reliable
Target: sudo ≤ 1.9.13
Auth required
Prerequisites: Low-privileged user account · Hostname-restricted sudo rule · Vulnerable sudo version
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec SCANNER
by toohau · poc
https://github.com/toohau/CVE-2025-32462-32463-Detection-Script-

This repository contains detection scripts for CVE-2025-32462 and CVE-2025-32463, which are vulnerabilities in sudo. The scripts check the installed version of sudo and potential misuse of specific options (-h and --chroot).

Classification
Scanner 90%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: sudo before 1.9.17p1
Auth required
Prerequisites: access to a system with sudo installed · permissions to run sudo commands
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by mylovem313 · poc
https://github.com/mylovem313/CVE-2025-32462

This PoC exploits CVE-2025-32462, a sudo -h bypass vulnerability, allowing arbitrary command execution as root. It constructs a sudo command with user-provided input and executes it via system().

Classification
Working Poc 90%
Attack Type
Lpe
Complexity
Trivial
Reliability
Reliable
Target: sudo (version not specified)
Auth required
Prerequisites: Access to a system with vulnerable sudo version · User privileges to execute sudo
devstral-2 · analyzed Feb 16, 2026 Full analysis →

Scores

CVSS v3 2.8
EPSS 0.3001
EPSS Percentile 96.8%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:N

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-863
Status published
Products (2)
sudo_project/sudo 1.9.17
sudo_project/sudo < 1.9.17
Published Jun 30, 2025
Tracked Since Feb 18, 2026