Vulnerability DatabaseRUSTSEC-2020-0070

RUSTSEC-2020-0070
Rust vulnerability analysis and mitigation

Overview

The vulnerability RUSTSEC-2020-0070 affects the lock_api crate versions before 0.4.2 for Rust. This security issue involves multiple lock guard objects that can potentially cause data races due to unsoundness in their implementation. The vulnerability was discovered and disclosed in late 2020, affecting the core synchronization primitives in the Rust ecosystem (NVD).

Technical details

The vulnerability encompasses multiple CVEs (CVE-2020-35913, CVE-2020-35912, CVE-2020-35910) related to data races in different guard implementations. The issues specifically affect RwLockReadGuard, MappedRwLockWriteGuard, and MappedMutexGuard implementations. The CVSS v3.1 scores range from 4.7 to 5.5 (Medium severity), with vectors indicating local access requirements and high availability impact (NVD).

Impact

The vulnerability could lead to data races in concurrent applications using these lock guards, potentially causing memory corruption, program crashes, or undefined behavior. The primary impact is on application availability and data integrity, particularly in multi-threaded environments (NVD).

Exploitability

The vulnerability requires local access and specific conditions to exploit. It primarily affects applications using the lock_api crate's synchronization primitives in concurrent scenarios. The complexity of exploitation is considered high, as indicated by the CVSS metrics (NVD).

Mitigation and workarounds

The vulnerability was fixed in lock_api version 0.4.2. Users should upgrade to this version or later to mitigate the issue. The fix involves correcting the bounds on Send and Sync implementations for lock guards (GitHub PR).

Community reactions

The vulnerability was formally verified by security researchers, who confirmed the soundness of the fix. Notably, researchers Jacques-Henri Jourdan and Ralf Jung provided formal proof verification of the security implications and the correctness of the implemented fixes (GitHub PR).

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-2026-54788HIGH7.5
  • Rust logoRust
  • datadog-opentelemetry
NoYesAug 28, 2026
RUSTSEC-2026-0278HIGH7.3
  • Rust logoRust
  • zbus_polkit
NoYesAug 31, 2026
GHSA-2vh6-hw4j-32wwMEDIUM6.5
  • Rust logoRust
  • gix-packetline
NoYesAug 28, 2026
CVE-2026-53600MEDIUM6.3
  • Rust logoRust
  • zed
NoYesSep 02, 2026
RUSTSEC-2026-0272NONEN/A
  • Rust logoRust
  • stack_dst
NoYesAug 27, 2026

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