Repository navigation
Conversation
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The fix for CVE-2020-28975 shipped in scikit-learn 1.0.1 via PR #21336, merge commit
1bf13d5, which added a guard inBaseLibSVM._validate_for_predictthat rejects an altered_n_supportarray. The currentfixed: 0.24.dev0incorrectly 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.pypassesn_support/_n_supportdirectly tolibsvm.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 versions0.24.0,0.24.1,0.24.2,1.0to theversionslist.introduced: "0"is unchanged.References: