cbcvebase.
CVE-2025-32462
published 2025-06-30

CVE-2025-32462: 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…

PriorityP259high8.8CVSS 3.1
AVLACLPRLUINSCCHIHAH
EXPLOIT
EPSS
3.31%
87.2th percentile
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.

Affected

18 ranges
VendorProductVersion rangeFixed in
applemacos_tahoe
debiansudo< sudo 1.9.13p3-1+deb12u2 (bookworm)sudo 1.9.13p3-1+deb12u2 (bookworm)
msrcazl3_sudo_1.9.17-1_on_azure_linux_3.0
msrccbl2_sudo_1.9.17-1_on_cbl_mariner_2.0
msrccm2_sudo_1.9.17-1_on_cbl_mariner_2.0
sudo_projectsudo< 1.9.171.9.17
sudo_projectsudo
sudo_projectsudo>= 0 < 1.9.5p2-3+deb11u21.9.5p2-3+deb11u2
sudo_projectsudo>= 0 < 1.9.13p3-1+deb12u21.9.13p3-1+deb12u2
sudo_projectsudo>= 0 < 1.9.16p2-31.9.16p2-3
sudo_projectsudo>= 0 < 1.9.16p2-31.9.16p2-3
sudo_projectsudo>= 0 < 1.9.9-1ubuntu2.51.9.9-1ubuntu2.5
sudo_projectsudo>= 0 < 1.9.15p5-3ubuntu5.24.04.11.9.15p5-3ubuntu5.24.04.1
sudo_projectsudo>= 0 < 1.8.9p5-1ubuntu1.5+esm81.8.9p5-1ubuntu1.5+esm8
sudo_projectsudo>= 0 < 1.8.16-0ubuntu1.10+esm31.8.16-0ubuntu1.10+esm3
sudo_projectsudo>= 0 < 1.8.21p2-3ubuntu1.6+esm11.8.21p2-3ubuntu1.6+esm1
sudo_projectsudo>= 0 < 1.8.31-1ubuntu1.5+esm11.8.31-1ubuntu1.5+esm1
sudo_projectsudo>= 1.8.8 < 1.9.17p11.9.17p1

Detection & IOCsextracted from sources · hover to see the quote

commandsudo -l -h dev.test.local
commandsudo -h dev.test.local -i
  • Monitor for sudo invocations that include the -h or --host flag combined with a non-list option (i.e., not -l/--list). This is the core exploit primitive: using -h <remote_host> without -l to bypass host restrictions and elevate privileges.
  • Alert on the specific error message 'a remote host may only be specified when listing privileges' appearing in sudo logs — this indicates the exploit attempt was made (the command still executed as root despite the warning).
  • In LDAP-managed sudoers environments, look for sudoRoles objects using sudoHost values that define privileges across multiple systems — these configurations are exploitable targets.
  • Flag any sudo command where the -h argument resolves to a hostname different from the local system hostname, especially when not paired with -l/--list, as this is the exploit pattern.
  • Audit sudoers files (local and LDAP-distributed) for rules that reference hostnames other than the local system or ALL — these are the prerequisite misconfiguration enabling exploitation.
  • ·Environments sharing a single sudoers file across multiple machines (e.g., via LDAP, Ansible, or Golden Images) are at elevated risk because cross-host rules are inherently present.
  • ·Affected versions span a wide range: Stable 1.9.0–1.9.17 and Legacy 1.8.8–1.8.32. Fixed version is 1.9.17p1.

CVSS provenance

nvdv3.18.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
osv8.8HIGH
vendor_debian2.8LOW
vendor_msrc2.8LOW
vendor_redhat2.8LOW
vendor_ubuntu2.8LOW
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.