Vulnerability DatabaseGHSA-77h3-w9rx-hj3q

GHSA-77h3-w9rx-hj3q
Rust vulnerability analysis and mitigation

Overview

The vulnerability (GHSA-77h3-w9rx-hj3q) affects the scratchpad crate versions 1.3.1 and earlier, discovered and disclosed on August 14, 2025. The issue involves the public trait scratchpad::Tracking, specifically its get and set methods, which interact with unsafe code regions while not being marked as unsafe themselves. This oversight allows users to implement the trait safely while potentially causing memory corruption (GitHub Advisory, RustSec Advisory).

Technical details

The vulnerability stems from the Tracking trait's methods (get and set) that influence the computation of raw pointer addresses within unsafe code regions. The trait's implementation can affect bufferend calculations and memory allocations in the Marker::allocatearrayuninitialized method, which is called by Marker::allocateslice_copy. The vulnerability has been assigned a CVSS v4.0 score of 5.5 (Moderate) with the vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P (GitHub Advisory).

Impact

When exploited, this vulnerability can lead to heap buffer overflows and arbitrary memory access, even through seemingly safe implementations of the Tracking trait. The impact primarily affects the availability of the system, with potential for memory corruption (GitHub Advisory, RustSec Advisory).

Mitigation and workarounds

Currently, there are no patched versions available. The crate is in maintenance mode awaiting a cleanup to reduce the unsafe code area. The suggested fix is to mark the Tracking trait as unsafe, since the library's internal unsafe code relies on the correctness of its implementations (RustSec Advisory).

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

CVE-2025-66627HIGH8.4
  • RustRust
  • wasmi
NoYesDec 09, 2025
GHSA-xrv8-2pf5-f3q7MEDIUM6
  • RustRust
  • nitro-tpm-pcr-compute
NoYesDec 05, 2025
CVE-2025-67487MEDIUM5.5
  • RustRust
  • static-web-server
NoYesDec 09, 2025
CVE-2025-66622LOW1.3
  • RustRust
  • matrix-sdk-base
NoYesDec 09, 2025
RUSTSEC-2025-0135N/AN/A
  • RustRust
  • matrix-sdk-base
NoYesDec 08, 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