A File Extension Should Not Be a Code-Execution Trigger
labbench's read() and read_relational() functions dispatch to pandas.read_pickle based on file extension, so a malicious .pickle file executes arbitrary code when loaded. An attacker could run code with the victim's privileges by getting them to open a crafted data file.
Published on r3vpwnx.medium.com
How loading a data file in NIST’s lab-automation framework ran arbitrary code (CVE-2026–120833)
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
The software chose a dangerous deserialisation function (pandas.read_pickle) based solely on the file extension, without validating the file's content or warning the user.
Impact
An attacker could execute arbitrary code with the privileges of a labbench user who loads a malicious .pickle file, and such files are routinely shared in lab environments.
What the attacker needed
Victim loads a malicious .pickle file; file is shared or synced to the victim
The fix
The issue was fixed in version 0.46.1; more broadly, avoid dispatching to pickle-based loaders based on file extension.
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.
Some Python programs can save and load objects in a format called pickle. Unlike a plain data file, a pickle can contain instructions that run automatically when the file is opened. Here, the software decided to use pickle just because the file name ended in .pickle, so opening a shared data file could run an attacker's code.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.