Skip to content
RCE Advisory Intermediate CVE-2025-33213

GHSL-2025-113: Insecure deserialization in NVIDIA-Merlin/Transformers4Rec could lead to RCE - CVE-2025-33213

The function load_model_trainer_states_from_checkpoint used torch.load to load several checkpoint files, which can execute arbitrary code when loading a malicious model. An attacker could achieve remote code execution by supplying a crafted checkpoint.

sylwia-budzynska Follow

Originally disclosed on GitHub Security Lab

NVIDIA-Merlin/Transformers4Rec v23.12.00 is affected by insecure deserialization in the loadmodeltrainerstatesfromcheckpoint function (GHSL-2025-113), which could allow an attacker to execute arbitrary code when loading malicious models.

sylwia-budzynska, on GitHub Security Lab

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

Impact

This issue may lead to remote code execution.

What the attacker needed

Attacker supplies a malicious checkpoint; victim loads the checkpoint

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.

Some Python libraries save and load objects in a format that can also run code when the file is opened. If a program loads a file from an untrusted source, an attacker can put harmful instructions inside it. Here, a machine-learning tool loaded model files this way, so a malicious model file could run the attacker's code on the victim's computer.

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 sylwia-budzynska

View all

27 more disclosed reports, best first.

More from GitHub Security Lab

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.