Description (CNA)
Fujitsu Research's OneCompression library before 1.2.1 contains an unsafe deserialization vulnerability that allows attackers to execute arbitrary code by supplying a crafted model.pt checkpoint file, as QuantizedModelLoader.load_quantized_model_pt() unconditionally calls torch.load with weights_only=False, invoking Python's pickle machinery during deserialization. Attackers can embed malicious __reduce__ methods in a crafted model checkpoint to execute arbitrary Python code, including system commands, when the library loads the file from a caller-selected model directory.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Fujitsu Research / OneCompression | affected 0 before 1.2.1 |
CWE
CWE-502
References
- https://github.com/FujitsuResearch/OneCompression/blob/main/SECURITY.md
- https://pypi.org/project/onecomp/
- https://pypi.org/project/onecomp/1.2.1/
- https://www.vulncheck.com/advisories/fujitsu-onecompression-arbitrary-code-execution-via-torch-load-deserialization
ADP enrichment
No English description supplied.
No references supplied.