Skip to content

PYSEC-2020-108: fix affected range — fixed: 0.24.dev0 → fixed: 1.0.1 - #411

Open
lorepirri wants to merge 1 commit into
pypa:mainfrom
lorepirri:lorepirri-PYSEC-2020-108
Open

lorepirri wants to merge 1 commit into
pypa:mainfrom
lorepirri:lorepirri-PYSEC-2020-108

Conversation

@lorepirri

Copy link
Copy Markdown

The fix for CVE-2020-28975 shipped in scikit-learn 1.0.1 via PR #21336, merge commit 1bf13d5, which added a guard in BaseLibSVM._validate_for_predict that rejects an altered _n_support array. The current fixed: 0.24.dev0 incorrectly clears versions 0.24.0 through 1.0.0. CVE-2020-28975 and GHSA-jxfp-4rvq-9h9m both correctly state the fix is at 1.0.1; PYSEC-2020-108 is the outlier.

introduced: "0" is correct and is left unchanged. The unvalidated code path exists in every PyPI release back to 0.9: sklearn/svm/_base.py passes n_support/_n_support directly to libsvm.predict, and the guard does not appear until 1.0.1. The 0.23.2 mentioned in issue #18891 is the reporter's test environment, not the introduction version.

Change: fixed: 0.24.dev0 → fixed: 1.0.1, and add the missing affected versions 0.24.0, 0.24.1, 0.24.2, 1.0 to the versions list. introduced: "0" is unchanged.

References:

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