Security mailing lists by PureSourceCode

GHSA-wwq9-3cpr-mm53

HIGH

Borsh 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV crates.io hashbrown >= 0.15.0, < 0.15.1 0.15.1

References

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.