huggingface-hub is vulnerable to Insecure Deserialization
88
High Risk
serialization/_torch.py loads Torch checkpoint files through pickle based deserialization without restricting the objects that get unpickled by default. A checkpoint file from a source that is not fully trusted can embed pickle opcodes that execute code as soon as the checkpoint is loaded. The loader also skips validating certain shard/index values before loading, letting a crafted checkpoint reach an unsafe combination of loading options. The fix switches the default to safe/restricted loading, validates the indexes, and rejects unsafe option combinations.
You are affected if you are using a version that falls within the vulnerable range and you load a Torch checkpoint file that did not originate from a source you fully trust.
huggingface-hub is vulnerable to Insecure Deserialization in versions 0.27.0 - 1.31.0.
Upgrade the huggingface-hub 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
ISO 42001Compliant© All Intel data is openly available and commercially licensed.