{"id":"GHSA-v935-pqmr-g8v9","aliases":[],"url":"https://o3.security/vulnerability/GHSA-v935-pqmr-g8v9","summary":"Unexpected panics in num-bigint","details":"### Impact\n\nTwo scenarios were reported where `BigInt` and `BigUint` multiplication may unexpectedly panic.\n\n- The internal `mac3` function did not expect the possibility of non-empty all-zero inputs, leading to an `unwrap()` panic.\n- A buffer was allocated with less capacity than needed for an intermediate result, leading to an assertion panic.\n\nRust 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.\n\n### Patches\nBoth problems were introduced in version 0.4.1, and are fixed in version 0.4.3.\n\n### For more information\nIf you have any questions or comments about this advisory, please open an issue in the [num-bigint](https://github.com/rust-num/num-bigint) repo.\n\n### Acknowledgements\nThanks to Guido Vranken and Arvid Norberg for privately reporting these issues to the author.\n\n### References\n* [GHSA-v935-pqmr-g8v9](https://github.com/rust-num/num-bigint/security/advisories/GHSA-v935-pqmr-g8v9)\n* [num-bigint#228](https://github.com/rust-num/num-bigint/pull/228)\n","published":"2021-11-03T17:36:04Z","modified":"2021-11-03T15:02:32Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"num-bigint","fixedVersion":"0.4.3"}],"fix":{"url":"https://github.com/rust-num/num-bigint/pull/228","label":"rust-num/num-bigint#228"},"references":[{"type":"WEB","url":"https://github.com/rust-num/num-bigint/security/advisories/GHSA-v935-pqmr-g8v9"},{"type":"WEB","url":"https://github.com/rust-num/num-bigint/pull/228"},{"type":"PACKAGE","url":"https://github.com/rust-num/num-bigint"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2021-11-03T15:02:32Z"}}