Loading...
Skip to main content

GHSA-wwq9-3cpr-mm53 — Vulnerability in hashbrown — Advisory Details

HIGH

Borsh serialization of HashMap is non-canonical

Published December 4, 2024Updated September 10, 2026Source: osv

Summary

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.

Advisory Timeline

  • First published December 4, 2024 (677 days ago).
  • Last revised September 10, 2026 — 644 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Cargo
Update hashbrown to 0.15.1 or later
cargo update -p hashbrown --precise 0.15.1

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: crates.io (1).

PackageEcosystemAffectedFixed In
hashbrown
crates.io
All versions0.15.1

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-502
    Deserialization of Untrusted DataMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

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

Frequently Asked Questions

What is GHSA-wwq9-3cpr-mm53?
Borsh serialization of HashMap is non-canonical This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.8/10).
How do I check if my project is affected by GHSA-wwq9-3cpr-mm53?
GHSA-wwq9-3cpr-mm53 affects hashbrown. Use GeekWala's free vulnerability scanner to check your dependencies against GHSA-wwq9-3cpr-mm53 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

RUSTSEC-2024-0402

Related CVEs

  • CVE-2026-93657
    HIGH

    hickory-resolver: Resolver::lookup() and Resolver::lookup_ip() APIs obscure DNSSEC validation failures

  • CVE-2026-18140
    HIGH

    aws-smithy-json: Uncontrolled recursion in the aws-smithy-json unknown-key skip path allows unauthenticated remote denial of service in smithy-rs generated servers

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies