Skip to content

FIX untrist SVMs due to out of bounds index issue - #567

Merged
adrinjalali merged 4 commits into
mainfrom
svm-untrusted
Nov 22, 2026
Merged

adrinjalali merged 4 commits into
mainfrom
svm-untrusted

Conversation

@adrinjalali

Copy link
Copy Markdown
Member

Remove them from trusted due to out of bound segfault issue.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues block the change tightening default trust for libsvm-backed SVMs.

No open issues 🎉

What changed in this PR

Tightens skops’ default loading policy for libsvm-backed SVMs to mitigate out-of-bounds memory risks from crafted model files, while preserving explicit-trust loading.

Changes:

  • Removes SVC, NuSVC, SVR, NuSVR, and OneClassSVM from default trust, with a version gate for future upstream validation.
  • Adds risk explanations and documents how to load files from trusted sources.
  • Adds tests for default rejection, version gating, and explicit-trust round trips.
File Description
skops/​io/​tests/​test_persist.py Tests SVM trust restrictions, diagnostic reasons, and explicit-trust loading.
skops/​io/​exceptions.py Adds shared risk explanations for the five affected estimators.
skops/​io/​_trusted_types.py Excludes libsvm estimators from default trust and introduces a validation-version gate.
docs/​changes.rst Documents the trust-policy change and explicit-trust override.

Review effort: Balanced

@adrinjalali
adrinjalali merged commit 91fa468 into main Nov 22, 2026
57 checks passed
@adrinjalali
adrinjalali deleted the svm-untrusted branch November 22, 2026 09:59
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