GHSA-wwq9-3cpr-mm53
HIGHBorsh 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
- 11 Oct 2024
- Last modified
- 10 Sep 2026
- Weakness
- CWE-502
- Also known as
- RUSTSEC-2024-0402
- Sources
- OSVJSONOSV RUSTSEC-2024-0402JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | hashbrown | >= 0.15.0, < 0.15.1 | 0.15.1 |
References
- https://github.com/rust-lang/hashbrown/issues/576 · WEB, REPORT
- https://github.com/kayabaNerve/hashbrown-borsh-poc · WEB
- https://github.com/rust-lang/hashbrown · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2024-0402.html · WEB, ADVISORY
- https://crates.io/crates/hashbrown · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 11 Oct 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 4 Dec 2024)