(Pwn2Own) Lexmark MC3224i PJL Exposed Dangerous Function Remote Code Execution Vulnerability
The Lexmark MC3224i printer exposes a dangerous function in its handling of PJL commands, allowing an attacker to create arbitrary files. This can be leveraged to execute code as root.
NCC Group EDG (Alex Plaskett, Cedric Halbronn, Aaron Adams) Follow
Originally disclosed on Zero Day Initiative
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Lexmark MC3224i printers. Authentication is not required to exploit this vulnerability.
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 PJL command handler exposes a function that permits arbitrary file creation without proper access controls.
Impact
An attacker on the same network could execute arbitrary code as root on the printer.
What the attacker needed
Network-adjacent access to the printer
The fix
The vulnerability was fixed by the vendor in an update.
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.
A printer runs software that accepts commands over the network. A flaw in how it handles a specific command language lets an attacker create files on the printer, which can then be used to run their own code with full control.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.