| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Fix unsafe .pt deserialization in model loaders (CWE-502) See merge request onecomp/onecomp-lab!90
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
load_quantized_model_pt() and Quantizer.load_results()/ResultLoader used torch.load(weights_only=False) unconditionally, allowing arbitrary code execution from a malicious checkpoint. Require an explicit allow_unsafe_deserialization=True opt-in and emit a strong warning before loading; the safetensors path (load_quantized_model) stays the safe default.
Add regression tests, update docs/example, and bump version to 1.2.1.