CVE-2020-36467
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
cgc (crates.io)up to 0.4.0, from 0.0.0-0GitHub Advisory Database, RustSec Advisory Database
cgc_project cgcup to 2020-12-10NVD

All scores

GitHub5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
RustSec Advisory Database5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD4.3medium CVSS:2.0AV: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:

  1. Ptr implements Send and Sync for all types, this can lead to data races by sending non-thread safe types across threads.

  2. Ptr::get violates mutable alias rules by returning multiple mutable references to the same object.

  3. Ptr::write uses 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:

  1. Ptr implements Send and Sync for all types, this can lead to data races by sending non-thread safe types across threads.

  2. Ptr::get violates mutable alias rules by returning multiple mutable references to the same object.

  3. Ptr::write uses 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

Related

Sources

SourceRecordLicence
CVE ListCVE-2020-36467 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-f3mq-99jr-ww4r changed 2024-03-15CC-BY-4.0
GitHub Advisory DatabaseGHSA-f9xr-3m55-5q2v changed 2024-03-15CC-BY-4.0
GitHub Advisory DatabaseGHSA-pwhf-7427-9vv2 changed 2024-03-15CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2020-0148 changed 2024-03-15CC0-1.0
NVDCVE-2020-36467 changed 2026-06-17Public domain