GHSA-wwq9-3cpr-mm53
JSON

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 packageVersionsReported by
hashbrown (crates.io)from 0.15.0 before 0.15.1GitHub Advisory Database, RustSec Advisory Database

Classification

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-wwq9-3cpr-mm53 changed 2026-09-10CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2024-0402 changed 2025-10-28CC0-1.0