FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix unsafe .pt deserialization in model loaders (CWE-502) by FKKimura · Pull Request #31 · FujitsuResearch/OneCompression · GitHub

Fix unsafe .pt deserialization in model loaders (CWE-502) - #31

Merged
FKKimura merged 2 commits into
mainfrom
develop/v1-2-1
Jul 6, 2026
Merged

Fix unsafe .pt deserialization in model loaders (CWE-502)#31
FKKimura merged 2 commits into
mainfrom
develop/v1-2-1

Conversation

FKKimura commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

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.

FKKimura added 2 commits July 6, 2026 03:25
Fix unsafe .pt deserialization in model loaders (CWE-502)

See merge request onecomp/onecomp-lab!90
FKKimura requested a review from aki916f July 6, 2026 03:35
FKKimura self-assigned this Jul 6, 2026

aki916f left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

FKKimura merged commit 70e8905 into main Jul 6, 2026
4 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL