Skip to content

feat: warn on vulnerable torch versions in fal run#962

Open
wennergr wants to merge 2 commits intomainfrom
feat/torch-vulnerability-warning
Open

feat: warn on vulnerable torch versions in fal run#962
wennergr wants to merge 2 commits intomainfrom
feat/torch-vulnerability-warning

Conversation

@wennergr
Copy link
Copy Markdown

@wennergr wennergr commented Apr 7, 2026

Adds a security warning in fal run when the app's requirements include a torch version <= 2.5, which has known serialization vulnerabilities allowing malicious model files to execute arbitrary code.

The warning also notes that a future release will automatically set weights_only=True on torch.load() calls for torch < 2.6 as a mitigation.

Adds a security warning in `fal run` when the app's requirements
include a torch version <= 2.5, which has known serialization
vulnerabilities allowing malicious model files to execute arbitrary code.

The warning also notes that a future release will automatically set
weights_only=True on torch.load() calls for torch < 2.6 as a mitigation.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@wennergr wennergr requested review from badayvedat and efiop April 7, 2026 21:36
@wennergr
Copy link
Copy Markdown
Author

wennergr commented Apr 7, 2026

Not convinced that this is the right place to put this warning (fal run)

╭─────────────────────────────── Security Warning ───────────────────────────────╮
│                                                                                │
│  Versions 2.5 and earlier of pytorch have a known serialization vulnerability  │
│  that may allow malicious model files to execute arbitrary code.               │
│                                                                                │
│  In a future release, fal will automatically set weights_only=True             │
│  on torch.load() calls for torch versions prior to 2.6 as a mitigation,        │
│  but upgrading to torch>=2.6 is strongly recommended.                          │
│                                                                                │
╰────────────────────────────────────────────────────────────────────────────────╯

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.

1 participant