GHSA-wwq9-3cpr-mm53: Borsh serialization of HashMap is non-canonical
The borsh serialization of the HashMap did not follow the borsh specification. It potentially produced non-canonical encodings dependent on insertion order. It also did not perform canonicty checks on decoding. This can result in consensus splits and cause equivalent objects to be considered distinct. This was patched in 0.15.1.
Published Dec 4, 2024
Affected packages
hashbrown
- Ecosystem
- Rust (crates.io)
- Affected
- >= 0.15.0, < 0.15.1
- Fixed in
- 0.15.1
- Check
cargo tree -i hashbrown
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
The borsh serialization of the HashMap did not follow the borsh specification. It potentially produced non-canonical encodings dependent on insertion order. It also did not perform canonicty checks on decoding.
This can result in consensus splits and cause equivalent objects to be considered distinct.
This was patched in 0.15.1.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
