GHSA-f3mq-99jr-ww4r

Suggest an improvement
Source
https://github.com/advisories/GHSA-f3mq-99jr-ww4r
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-f3mq-99jr-ww4r/GHSA-f3mq-99jr-ww4r.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-f3mq-99jr-ww4r
Aliases
Published
2021-08-25T20:56:16Z
Modified
2024-03-15T00:05:22.909466Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Multiple soundness issues in cgc
Details

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.

Database specific
{
    "nvd_published_at": "2021-08-08T06:15:00Z",
    "cwe_ids": [
        "CWE-657"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2021-08-18T21:11:39Z"
}
References

Affected packages

crates.io / cgc

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
0.4.0