Vulnerability DatabaseGHSA-wwq9-3cpr-mm53

GHSA-wwq9-3cpr-mm53
Rust vulnerability analysis and mitigation

Overview

A high severity vulnerability (GHSA-wwq9-3cpr-mm53) was discovered in the hashbrown Rust package, affecting version 0.15.0. The vulnerability relates to the borsh serialization of HashMap, which failed to follow the borsh specification by producing non-canonical encodings that were dependent on insertion order. The issue was discovered and reported on October 11, 2024, and was patched in version 0.15.1 (GitHub Advisory, RustSec Advisory).

Technical details

The vulnerability stems from the HashMap's borsh serialization implementation that violated the borsh specification's consistency requirements. The implementation encoded data by iterating over the HashMap without maintaining a consistent (sorted) order. Additionally, the decode function did not perform any order checks on the keys. The implementation also incorrectly serialized the hasher (not defined in the borsh spec) and used a usize for length instead of the specified u32, producing non-compliant encodings (GitHub Issue).

Impact

This vulnerability could lead to consensus splits and cause equivalent objects to be considered distinct, particularly impacting security-critical projects that rely on borsh's consistency guarantees. The issue is especially concerning in cryptocurrency applications where canonical encodings are used to prevent 'double-spends' and consensus splits (GitHub Issue).

Mitigation and workarounds

The vulnerability has been patched in hashbrown version 0.15.1. Users are advised to upgrade to this version or later. The borsh functionality has been removed from hashbrown, and users should instead rely on borsh's own implementation of HashMap/HashSet (GitHub Issue).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-2fjw-whxm-9v4qCRITICAL9.3
  • RustRust
  • nftnl
NoYesNov 25, 2025
CVE-2025-66017HIGH8.2
  • RustRust
  • cggmp21
NoYesNov 25, 2025
GHSA-mj73-j457-8x9qLOW2.7
  • RustRust
  • maxminddb
NoYesDec 02, 2025
GHSA-pq5v-rwp8-p7gmLOW2.7
  • RustRust
  • rtvm-interpreter
NoNoDec 02, 2025
RUSTSEC-2025-0132N/AN/A
  • RustRust
  • maxminddb
NoYesNov 28, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management