
Cloud Vulnerability DB
A community-led vulnerabilities database
An issue was discovered in the dync crate before version 0.5.0 for Rust programming language. The vulnerability, identified as RUSTSEC-2020-0050 (CVE-2020-35903), was reported on September 27, 2020. The vulnerability affects the VecCopy implementation in the dync crate, which allows for misaligned element access due to improper handling of type alignments (RustSec Advisory, NVD).
The vulnerability stems from the VecCopy implementation where the backing storage is implemented using u8 (byte) type, but it doesn't properly handle types with different alignment requirements. This can lead to undefined behavior when accessing memory with incorrect alignment. The issue has been assigned a CVSS v3.1 base score of 5.5 (MEDIUM) with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).
The vulnerability can cause undefined behavior in programs using the dync crate when handling types with specific alignment requirements. This can potentially lead to program crashes or memory access violations. The impact is particularly concerning as it can be triggered through safe Rust code (GitHub Issue).
The vulnerability can be exploited through safe Rust code by instantiating a VecCopy with a type that has different alignment requirements from u8. A proof-of-concept demonstration using a type with 256-byte alignment requirements has been documented (GitHub Issue).
The vulnerability was fixed in version 0.5.0 of the dync crate. Users are advised to upgrade to this version or later to address the issue (RustSec Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."