5.9medium
Multiple soundness issues in cgc
- Severity
- 5.9medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.98% (higher than 63% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-f3mq-99jr-ww4rGHSA-f9xr-3m55-5q2vGHSA-pwhf-7427-9vv2RUSTSEC-2020-0148
Description
An issue was discovered in the cgc crate through 2020-12-10 for Rust. Ptr::get returns more than one mutable reference to the same object.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| cgc (crates.io) | up to 0.4.0, from 0.0.0-0 | GitHub Advisory Database, RustSec Advisory Database |
| cgc_project cgc | up to 2020-12-10 | NVD |
All scores
| GitHub | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| RustSec Advisory Database | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
Classification
What each source says
CVE List
An issue was discovered in the cgc crate through 2020-12-10 for Rust. Ptr::get returns more than one mutable reference to the same object.
GitHub Advisory Database
Affected versions of this crate have the following issues:
-
PtrimplementsSendandSyncfor all types, this can lead to data races by sending non-thread safe types across threads. -
Ptr::getviolates mutable alias rules by returning multiple mutable references to the same object. -
Ptr::writeuses non-atomic writes to the underlying pointer. This means that when used across threads it can lead to data races.
GitHub Advisory Database
An issue was discovered in the cgc crate through 2020-12-10 for Rust. Ptr implements Send and Sync for all types
GitHub Advisory Database
Multiple soundness issues in Ptr in cgc
Affected versions of this crate have the following issues:
-
PtrimplementsSendandSyncfor all types, this can lead to data races by sending non-thread safe types across threads. -
Ptr::getviolates mutable alias rules by returning multiple mutable references to the same object. -
Ptr::writeuses non-atomic writes to the underlying pointer. This means that when used across threads it can lead to data races.
NVD (es)
Se ha detectado un problema en la crate cgc hasta el 10-12-2020 para Rust. La función Ptr::get devuelve más de una referencia mutable al mismo objeto
References
| https://rustsec.org/advisories/RUSTSEC-2020-0148.html | advisory, exploit, issue-tracking, patch, third-party-advisory, web | |
| https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/cgc/RUSTSEC-2020-0148.md | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-36467 | advisory | |
| https://github.com/playXE/cgc/issues/5 | report, web | |
| https://github.com/playXE/cgc | package | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-36466 | advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-36468 | advisory | |
| https://crates.io/crates/cgc | package | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-36467 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-f3mq-99jr-ww4r changed 2024-03-15 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-f9xr-3m55-5q2v changed 2024-03-15 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-pwhf-7427-9vv2 changed 2024-03-15 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2020-0148 changed 2024-03-15 | CC0-1.0 |
| NVD | CVE-2020-36467 changed 2026-06-17 | Public domain |