gluonts is vulnerable to Insecure Deserialization
78
CVE Score
High
Insecure Deserialization
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).
Upgrade the gluonts library to the patch version.
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.
0.6.4 - 0.16.2
Fixed in 0.16.3gluonts is vulnerable to Insecure Deserialization in versions 0.6.4 - 0.16.2.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.