Vulnerability DatabaseRUSTSEC-2020-0136

RUSTSEC-2020-0136
Rust vulnerability analysis and mitigation

Overview

A security vulnerability (RUSTSEC-2020-0136/CVE-2020-36456) was discovered in the toolshed crate for Rust, affecting versions through 2020-11-15. The issue involves the CopyCell implementation, where the Send trait lacks proper bounds on the contained type, potentially leading to unsafe concurrent operations (RustSec Advisory).

Technical details

The vulnerability stems from CopyCell implementing Send for any type that implements Copy, without proper bounds checking. This becomes problematic because non-mutable references implement the Copy trait, allowing for potential sharing of non-thread-safe types across threads. The vulnerability has been assigned a CVSS v3.1 base score of 8.1 (HIGH) with the vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability enables the sharing of non-thread-safe types (such as Cell) across multiple threads, which can lead to data races and undefined behavior in concurrent programs. This breaks Rust's thread safety guarantees and could potentially result in memory corruption or other concurrent access issues (GitHub Issue).

Exploitability

A proof-of-concept exploit has been demonstrated showing how the vulnerability can be triggered using simple Rust code. The exploit involves wrapping a Cell (a non-thread-safe type) in a CopyCell and accessing it from multiple threads, effectively bypassing Rust's thread safety mechanisms (GitHub Issue).

Mitigation and workarounds

Users should upgrade to a version newer than 2020-11-15 where the vulnerability has been addressed. If upgrading is not immediately possible, users should avoid using CopyCell with reference types or any other types that implement Copy but are not intended to be shared across threads (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

GHSA-5x78-73v4-xg6wHIGH8.7
  • Rust logoRust
  • postgres-protocol
NoYesAug 24, 2026
GHSA-fx4f-mhw4-qm7jMEDIUM6.9
  • Rust logoRust
  • vibeio-http
NoYesAug 24, 2026
GHSA-3gjw-f78c-vvpwMEDIUM6.9
  • Rust logoRust
  • tokio-postgres
NoYesAug 24, 2026
GHSA-rgqc-3x5p-6gwgMEDIUM6.9
  • Rust logoRust
  • postgres-protocol
NoYesAug 24, 2026
RUSTSEC-2026-0267NONEN/A
  • Rust logoRust
  • stable-vec
NoYesAug 24, 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