GHSA-wwq9-3cpr-mm53
high
Borsh serialization of HashMap is non-canonical
- Severity
- high CVSS:4.0 by GitHub
- Published
- Last changed
- Also known as
- RUSTSEC-2024-0402
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| hashbrown (crates.io) | from 0.15.0 before 0.15.1 | GitHub Advisory Database, RustSec Advisory Database |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-wwq9-3cpr-mm53 changed 2026-09-10 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2024-0402 changed 2025-10-28 | CC0-1.0 |