- Reported
-
- Issued
-
- Package
-
cgc
(crates.io)
- Type
-
Vulnerability
- Categories
-
- Keywords
-
#memory-safety
#aliasing
#concurrency
- Aliases
-
- References
-
- CVSS Score
- 5.9
MEDIUM
- CVSS Details
-
- Attack Vector
- Network
- Attack Complexity
- High
- Privileges Required
- None
- User Interaction
- None
- Scope
- Unchanged
- Confidentiality Impact
- None
- Integrity Impact
- None
- Availability Impact
- High
- CVSS Vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- Patched
-
no patched versions
Description
Affected versions of this crate have the following issues:
-
Ptr implements Send and Sync for all types, this can lead to data
races by sending non-thread safe types across threads.
-
Ptr::get violates mutable alias rules by returning multiple mutable
references to the same object.
-
Ptr::write uses non-atomic writes to the underlying pointer. This means
that when used across threads it can lead to data races.
Advisory available under CC0-1.0
license.