weidai11 / cryptopp

free C++ class library of cryptographic schemes
https://cryptopp.com
Other
4.66k stars 1.47k forks source link

Validate p in ModularSquareRoot #1255

Open roadicing opened 6 months ago

roadicing commented 6 months ago

This fix issue#1249

gsantner commented 3 weeks ago

Hello @weidai11 , as far I can follow this is a way to fix CVE-2023-50981 / #1249.
Is there any other fix merged by chance already that fixed it otherwise, or are the PR changes a viable fix (to include)?