oliver-giersch/conquer-once · Security
Data races in conquer-once
- GHSA ID
- GHSA-3jc5-5hc5-33gj
- CVE ID
- CVE-2020-36208
- Severity
- high
- Published
- Updated
- CVSS
- 7.8 · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 7.8 · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Description
Affected versions of conquer-once implements Sync for its OnceCell type without restricting it to Sendable types.
This allows non-Send but Sync types such as MutexGuard to be sent across threads leading to undefined behavior and memory corruption in concurrent programs.
The issue was fixed by adding a Send constraint to OnceCell.
CWEs
- CWE-662 · Improper Synchronization
- CWE-787 · Out-of-bounds Write