Unexpected panics in num-bigint
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub.
Summary
### Impact Two scenarios were reported where `BigInt` and `BigUint` multiplication may unexpectedly panic. - The internal `mac3` function did not expect the possibility of non-empty all-zero inputs, leading to an `unwrap()` panic. - A buffer was allocated with less capacity than needed for an intermediate result, leading to an assertion 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](https://github.com/rust-num/num-bigint) repo. ### Acknowledgements Thanks to Guido Vranken and Arvid Norberg for privately reporting these issues to the author. ### References * [GHSA-v935-pqmr-g8v9](https://github.com/rust-num/num-bigint/security/advisories/GHSA-v935-pqmr-g8v9) * [num-bigint#228](https://github.com/rust-num/num-bigint/pull/228)
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | num-bigint (crates.io) | 0.4.1 to before 0.4.3 | 0.4.3 | Patch available | GHSA-v935-pqmr-g8v9 |
- num-bigint (crates.io) Vendor— Affected 0.4.1 to before 0.4.3 Fixed in 0.4.3 Patch available GHSA-v935-pqmr-g8v9
Remediation
- Fix · GHSA-v935-pqmr-g8v9 num-bigint (crates.io) Fixed in 0.4.3 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-v935-pqmr-g8v9
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences