gluonts is vulnerable to Insecure Deserialization
78
High Risk
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.
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.
gluonts is vulnerable to Insecure Deserialization in versions 0.1.2 - 0.16.3.
Upgrade the gluonts library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant