{"id":"CVE-2020-36466","aliases":["CVE-2020-36466","GHSA-f3mq-99jr-ww4r","GHSA-f9xr-3m55-5q2v","GHSA-pwhf-7427-9vv2","RUSTSEC-2020-0148"],"related":["CVE-2020-36467","CVE-2020-36468"],"kind":"vulnerability","state":"published","title":"Multiple soundness issues in cgc","summary":"An issue was discovered in the cgc crate through 2020-12-10 for Rust. Ptr implements Send and Sync for all types.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in the cgc crate through 2020-12-10 for Rust. Ptr implements Send and Sync for all types.","source":"cvelist"},{"lang":"en","text":"Affected 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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"An issue was discovered in the cgc crate through 2020-12-10 for Rust. Ptr implements Send and Sync for all types","format":"markdown","source":"ghsa"},{"lang":"en","text":"# 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se ha detectado un problema en la crate cgc hasta el 10-12-2020 para Rust. Ptr implementa Send y Sync para todos los tipos","source":"nvd"}],"published":"2020-12-10T12:00:00.000Z","modified":"2026-06-17T03:15:33.130Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-362","CWE-657"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.4.0"}],"ecosystem":"crates.io","package":"cgc","purl":"pkg:cargo/cgc","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.4.0"}],"ecosystem":"crates.io","package":"cgc","purl":"pkg:cargo/cgc","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.4.0"}],"ecosystem":"crates.io","package":"cgc","purl":"pkg:cargo/cgc","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected"}],"ecosystem":"crates.io","package":"cgc","purl":"pkg:cargo/cgc","source":"rustsec"},{"ranges":[{"status":"affected","lastAffected":"2020-12-10"}],"vendor":"cgc_project","product":"cgc","cpe":"cpe:2.3:a:cgc_project:cgc:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0148.html","tags":["advisory","exploit","issue-tracking","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/cgc/RUSTSEC-2020-0148.md","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36467","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/playXE/cgc/issues/5","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/playXE/cgc","tags":["package"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36466","tags":["advisory"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36468","tags":["advisory"],"sources":["ghsa"]},{"url":"https://crates.io/crates/cgc","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-36466","url":"https://www.cve.org/CVERecord?id=CVE-2020-36466","licence":"CVE Terms of Use","modified":"2024-08-04T17:30:08.119Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f3mq-99jr-ww4r","url":"https://github.com/advisories/GHSA-f3mq-99jr-ww4r","licence":"CC-BY-4.0","modified":"2024-03-15T00:05:22.909Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f9xr-3m55-5q2v","url":"https://github.com/advisories/GHSA-f9xr-3m55-5q2v","licence":"CC-BY-4.0","modified":"2024-03-15T00:05:22.909Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pwhf-7427-9vv2","url":"https://github.com/advisories/GHSA-pwhf-7427-9vv2","licence":"CC-BY-4.0","modified":"2024-03-15T00:05:22.909Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2020-0148","url":"https://rustsec.org/advisories/RUSTSEC-2020-0148.html","licence":"CC0-1.0","modified":"2024-03-15T00:05:22.909Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-36466","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36466","licence":"Public domain","modified":"2026-06-17T03:15:33.130Z"}],"updatedAt":"2026-11-25T22:57:58.294Z","epss":{"score":0.00978,"percentile":0.63177,"date":"2026-12-01T12:00:22.000Z"}}