{"id":"RUSTSEC-2024-0402","revision":"9f6e690ef34c4960ba3233cb1ca91f35","records":[{"revision":"9f6e690ef34c4960ba3233cb1ca91f35","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2024-0402","aliases":["GHSA-wwq9-3cpr-mm53"],"title":"Borsh serialization of HashMap is non-canonical","description":"The borsh serialization of the HashMap did not follow the borsh specification.\nIt potentially produced non-canonical encodings dependent on insertion order.\nIt also did not perform canonicty checks on decoding.\n\nThis can result in consensus splits and cause equivalent objects to be\nconsidered distinct.\n\nThis was patched in 0.15.1.","state":0,"publishedAt":"2024-10-11T12:00:00+00:00","modifiedAt":"2025-10-28T06:29:26.595148+00:00","affected":[{"ecosystem":"crates.io","name":"hashbrown","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.15.0"},{"kind":"fixed","version":"0.15.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/hashbrown","https://rustsec.org/advisories/RUSTSEC-2024-0402.html","https://github.com/rust-lang/hashbrown/issues/576"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2024-0402","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2024-0402","identifiers":["RUSTSEC-2024-0402","GHSA-wwq9-3cpr-mm53"]},"retained":false,"historicalAffected":[]}],"coverage":[]}