Skip to content
RCE Advisory Advanced CVE-2025-26507

(Pwn2Own) HP LaserJet Pro MFP 3301fdw suidexec Command Injection Local Privilege Escalation Vulnerability

The suidexec executable on HP LaserJet Pro MFP 3301fdw printers fails to properly validate a user-supplied string before using it in a system call. A local attacker who can already run low-privileged code could exploit this to escalate to root and execute arbitrary commands.

Felipe Jacob Custodio Romero Follow

Originally disclosed on Zero Day Initiative

High 7.8 View original

This vulnerability allows local attackers to escalate privileges on affected installations of HP LaserJet Pro MFP 3301fdw printers. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability.

Felipe Jacob Custodio Romero, Neodyme AG, on the Zero Day Initiative

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 report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, the suidexec executable passes a user-supplied string to a system call without validating or sanitising it, allowing command injection.

Impact

A local attacker with low-privileged code execution could escalate to root and run arbitrary commands on the printer.

What the attacker needed

Local access to the printer; ability to run low-privileged code

The fix

HP issued an update to correct this vulnerability.

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 report has not been written yet. The Original tab links to the source.

This is a local privilege escalation bug in a printer's software. A program called suidexec takes input from a user and passes it to a system command without checking it properly. Someone who already has a low-level foothold on the printer could trick that program into running commands as the all-powerful root user.

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 Felipe Jacob Custodio Romero

View all

1 more disclosed report, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

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.