{"id":"GHSA-pwhf-7427-9vv2","summary":"Non-atomic writes in cgc","details":"# Multiple soundness issues in `Ptr` in cgc\n\nAffected versions of this crate have the following issues:\n\n1. `Ptr` implements `Send` and `Sync` for all types, this can lead to data\n   races by sending non-thread safe types across threads.\n\n2. `Ptr::get` violates mutable alias rules by returning multiple mutable\n   references to the same object.\n\n3. `Ptr::write` uses non-atomic writes to the underlying pointer. This means\n   that when used across threads it can lead to data races.","aliases":["CVE-2020-36466","CVE-2020-36467","CVE-2020-36468","GHSA-f3mq-99jr-ww4r","GHSA-f9xr-3m55-5q2v","RUSTSEC-2020-0148"],"modified":"2024-03-15T00:05:22.909466Z","published":"2021-08-25T20:56:57Z","database_specific":{"cwe_ids":["CWE-657"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2021-08-18T20:39:03Z","nvd_published_at":"2021-08-08T06:15:00Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36468"},{"type":"WEB","url":"https://github.com/playXE/cgc/issues/5"},{"type":"PACKAGE","url":"https://github.com/playXE/cgc"},{"type":"WEB","url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/cgc/RUSTSEC-2020-0148.md"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2020-0148.html"}],"affected":[{"package":{"name":"cgc","ecosystem":"crates.io","purl":"pkg:cargo/cgc"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.4.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-pwhf-7427-9vv2/GHSA-pwhf-7427-9vv2.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}