[https://nvbugs/6025330][fix] Use weights_only=True in LoRA manager torch.load#13391
Conversation
…le deserialization attacks The LoRA weight loading path in lora_manager.py used torch.load() without weights_only=True, allowing arbitrary code execution via malicious pickle payloads in LoRA adapter archives. This is a runtime serving path where the LoRA path can be user-controlled via API requests. Addresses NVBugs 6025330. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Yibin Li <109242046+yibinl-nvidia@users.noreply.github.com>
|
/bot run |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA single modification to the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
PR_Github #45226 [ run ] triggered by Bot. Commit: |
|
PR_Github #45226 [ run ] completed with state |
venkywonka
left a comment
There was a problem hiding this comment.
thank you for catching that! lgtm!
…orch.load (NVIDIA#13391) Signed-off-by: Yibin Li <109242046+yibinl-nvidia@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The LoRA weight loading path in lora_manager.py used torch.load() without weights_only=True, allowing arbitrary code execution via malicious pickle payloads in LoRA adapter archives. This is a runtime serving path where the LoRA path can be user-controlled via API requests.
Addresses NVBugs 6025330.
Summary by CodeRabbit
Description
Test Coverage
PR Checklist
Please review the following before submitting your PR:
PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.
PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.
Test cases are provided for new code paths (see test instructions)
Any new dependencies have been scanned for license and vulnerabilities
CODEOWNERS updated if ownership changes
Documentation updated as needed
Update tava architecture diagram if there is a significant design change in PR.
The reviewers assigned automatically/manually are appropriate for the PR.
Please check this after reviewing the above items as appropriate for this PR.
GitHub Bot Help
To see a list of available CI bot commands, please comment
/bot help.