num-bigint
Affected
- introduced
0.4.1, fixed0.4.3(semver)
Fixed versions
0.4.3
Fix
- Fixed version
0.4.3cargo update -p num-bigint --precise 0.4.3
Advisory
Also known as: None
Unexpected panics in num-bigint
Impact
Two scenarios were reported where BigInt and BigUint multiplication may unexpectedly panic.
mac3 function did not expect the possibility of non-empty all-zero inputs, leading to an unwrap() panic.Rust panics can either cause stack unwinding or program abort, depending on the application configuration. In some settings, an unexpected panic may constitute a denial-of-service vulnerability.
Patches
Both problems were introduced in version 0.4.1, and are fixed in version 0.4.3.
For more information
If you have any questions or comments about this advisory, please open an issue in the num-bigint repo.
Acknowledgements
Thanks to Guido Vranken and Arvid Norberg for privately reporting these issues to the author.
References
Medium Basis: The source's own band: MODERATE
0.4.1, fixed 0.4.3 (semver)0.4.3
0.4.3cargo update -p num-bigint --precise 0.4.3Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0