Skip to content
OpenAdvisories
High GHSA-wwq9-3cpr-mm53 RUSTSEC-2024-0402

Borsh serialization of HashMap is non-canonical

Published Dec 4, 2024 · Updated Sep 10, 2026 · Assigned by GHSA

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 packages

EcosystemPackageAffectedFixedRecord
crates.io hashbrown >= 0.15.0, < 0.15.1 0.15.1 GHSA-wwq9-3cpr-mm53

References