Intel

AIKIDO-2026-159223

gluonts is vulnerable to Insecure Deserialization

Insecure Deserialization Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Yesterday

78

High Risk

This Affects:

PYTHONgluonts
0.1.2 - 0.16.3
Fixed in 0.17.0
Are you affected? Scan for Free

TL;DR

The gluonts.core.serde module deserializes objects by locating a class from a fully qualified name in the payload and instantiating it. The decode function only rejects a small denylist of builtins (eval, exec, compile, open, input), so a crafted serialized document can name any other importable callable, such as subprocess.run, and have it invoked with attacker-supplied arguments. Loading an untrusted serialized model or predictor through APIs such as Predictor.deserialize therefore results in arbitrary code execution. The fix replaces the denylist with an allowlist that only instantiates types encode is known to produce and rejects any other class.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you deserialize a gluonts model or predictor from an untrusted or externally influenced source.

Background info

gluonts is vulnerable to Insecure Deserialization in versions 0.1.2 - 0.16.3.

How to fix this

Upgrade the gluonts library to the patch version.