Skip to content
RCE Write-up Intermediate

⚠️ CVE‑2025‑32463 & CVE‑2025‑32462 — Sudo Privilege Escalation Flaws in Linux

Two vulnerabilities in sudo were disclosed: CVE-2025-32463 allows local users to bypass security policies and execute arbitrary files with elevated privileges via wildcard rules in sudoers, and CVE-2025-32462 is a lower-severity memory cleanup bug that supports exploitation. An attacker with low privilege access could achieve root shell.

Aditya Bhatt Follow

Published on infosecwriteups.com

In July 2025, two newly disclosed vulnerabilities in the sudo utility — CVE-2025-32463 and CVE-2025-32462—have put numerous Linux distributions at risk. The more severe of the two, CVE‑2025‑32463, carries a CVSS score of 9.3, enabling local privilege escalation and potential full system compromise.

Aditya Bhatt, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely an unsafe path expansion and lack of input sanitization in the sudoers policy parsing logic when wildcards are used in command paths.

Impact

A local user could escalate privileges to root, leading to full system compromise.

What the attacker needed

Low privilege local access; misconfigured sudoers rule with wildcards

The fix

The vulnerabilities were fixed in sudo version 1.9.17p1; additionally, wildcard entries in sudoers should be avoided and explicit command paths used.

How it was found

  1. Identify a sudoers rule that uses wildcards in command paths.
  2. Craft a malicious binary.
  3. Trick sudo into executing the malicious binary via the wildcard.
  4. Achieve root shell.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Sudo is a program that lets users run commands as the administrator (root). A flaw in how sudo handles wildcard characters in its configuration allowed a normal user to trick sudo into running a malicious program as root, giving them full control of the system.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Aditya Bhatt

View all

25 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.