Intel

AIKIDO-2026-136658

gluonts is vulnerable to Insecure Deserialization

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Aug 5, 2026
August 5, 2026

78

CVE Score

High

Insecure Deserialization

Are you affected? Scan for Free

TL;DR

The PyTorch predictor in gluonts.torch restores a saved model by calling torch.load on prediction-net-state.pt without setting weights_only. Because torch.load uses pickle by default, loading a maliciously crafted state file executes arbitrary code embedded in the pickle stream during unpickling. A user who deserializes an untrusted saved predictor through PyTorchPredictor.deserialize is exposed to arbitrary code execution. The fix passes weights_only=True so only tensor weights are unpickled. This fix first shipped in the 0.16.3 backport release (and is also present in 0.17.0).

How do I fix this?

Upgrade the gluonts library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you load a PyTorch predictor saved by an untrusted or externally influenced source.

Package

Versions

0.6.4 - 0.16.2

Fixed in 0.16.3

Background info

gluonts is vulnerable to Insecure Deserialization in versions 0.6.4 - 0.16.2.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea