GitHub Advisoryadvisory · crates.io
GHSA-xp6v-qx65-4pp7 Data races in gfwx
HIGH
Official page ↗
- Aliases
- CVE-2020-36211
- Ecosystem
- crates.io
- Packages
- gfwx
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-662, CWE-787
- Reviewed
- 2021-08-19
Affected packages
• crates.io gfwx: < 0.3.0 → fixed in 0.3.0
Description
In the affected versions of this crate, ImageChunkMut unconditionally implements Send and Sync, allowing to create data races.
This can result in a memory corruption or undefined behavior when non thread-safe types are moved and referenced across thread boundaries.
The flaw was corrected in commit e7fb2f5 by adding T: Send bound to the Send impl and adding T: Sync bound to the Sync impl.
Related
Alias · CVE (1)
- CVE-2020-36211 An issue was discovered in the gfwx crate before 0.3.0 for Rust. vulnerability