Skip to content

GHSA-wwq9-3cpr-mm53 Borsh serialization of HashMap is non-canonical

HighCVSS 8.9 PoC
Published
Updated
Exploit status
Proof-of-concept only

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
crates.io hashbrown(crates.io) >= 0.15.0, < 0.15.1 0.15.1 Fixed

Affected products

ProductAffected versionsFixed in
crates.io hashbrown(crates.io) >= 0.15.0, < 0.15.1 0.15.1

References