{"id":"CVE-2020-36434","aliases":["CVE-2020-36434","GHSA-2f5j-3mhq-xv58","RUSTSEC-2020-0100"],"related":[],"kind":"vulnerability","state":"published","title":"Double free in sys-info","summary":"An issue was discovered in the sys-info crate before 0.8.0 for Rust. sys_info::disk_info calls can trigger a double free.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in the sys-info crate before 0.8.0 for Rust. sys_info::disk_info calls can trigger a double free.","source":"cvelist"},{"lang":"en","text":"Affected versions of sys-info use a static, global, list to store temporary disk information while running. The function that cleans up this list, DFCleanup, assumes a single threaded environment and will try to free the same memory twice in a multithreaded environment. This results in consistent double-frees and segfaults when calling sys_info::disk_info from multiple threads at once. The issue was fixed by moving the global variable into a local scope.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Affected versions of `sys-info` use a static, global, list to store temporary disk information while running. The function that cleans up this list,\n`DFCleanup`, assumes a single threaded environment and will try to free the same memory twice in a multithreaded environment.\n\nThis results in consistent double-frees and segfaults when calling `sys_info::disk_info` from multiple threads at once.\n\nThe issue was fixed by moving the global variable into a local scope.\n\n## Safer Alternatives:\n - [`sysinfo`](https://crates.io/crates/sysinfo)","format":"markdown","source":"rustsec"},{"lang":"es","text":"Se ha detectado un problema en la crate sys-info versiones anteriores a 0.8.0 para Rust. Las llamadas a la función  sys_info::disk_info pueden desencadenar una doble liberación","source":"nvd"}],"published":"2020-05-31T12:00:00.000Z","modified":"2026-06-17T03:15:29.050Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-415"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.8.0"}],"ecosystem":"crates.io","package":"sys-info","purl":"pkg:cargo/sys-info","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.8.0"}],"ecosystem":"crates.io","package":"sys-info","purl":"pkg:cargo/sys-info","source":"rustsec"},{"ranges":[{"status":"affected","fixed":"0.8.0"}],"vendor":"sys-info_project","product":"sys-info","cpe":"cpe:2.3:a:sys-info_project:sys-info:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0100.html","tags":["advisory","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/sys-info/RUSTSEC-2020-0100.md","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36434","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/FillZpp/sys-info-rs/issues/63","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/FillZpp/sys-info-rs","tags":["package"],"sources":["ghsa"]},{"url":"https://crates.io/crates/sys-info","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-36434","url":"https://www.cve.org/CVERecord?id=CVE-2020-36434","licence":"CVE Terms of Use","modified":"2024-08-04T17:30:08.077Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2f5j-3mhq-xv58","url":"https://github.com/advisories/GHSA-2f5j-3mhq-xv58","licence":"CC-BY-4.0","modified":"2023-11-08T04:03:44.601Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2020-0100","url":"https://rustsec.org/advisories/RUSTSEC-2020-0100.html","licence":"CC0-1.0","modified":"2023-11-08T04:03:44.601Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-36434","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36434","licence":"Public domain","modified":"2026-06-17T03:15:29.050Z"}],"updatedAt":"2026-11-25T22:57:58.282Z","epss":{"score":0.0123,"percentile":0.69772,"date":"2026-12-01T12:00:22.000Z"}}