{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2020-26235","id":"CVE-2020-26235","title":"Segmentation fault in Rust time crate","description":"In Rust time crate from version 0.2.7 and before version 0.2.23, unix-like operating systems may segfault due to dereferencing a dangling pointer in specific circumstances. This requires the user to set any environment variable in a different thread than the affected functions. The affected functions are time::UtcOffset::local_offset_at, time::UtcOffset::try_local_offset_at, time::UtcOffset::curre","descriptionLong":"In Rust time crate from version 0.2.7 and before version 0.2.23, unix-like operating systems may segfault due to dereferencing a dangling pointer in specific circumstances. This requires the user to set any environment variable in a different thread than the affected functions. The affected functions are time::UtcOffset::local_offset_at, time::UtcOffset::try_local_offset_at, time::UtcOffset::current_local_offset, time::UtcOffset::try_current_local_offset, time::OffsetDateTime::now_local and time::OffsetDateTime::try_now_local. Non-Unix targets are unaffected. This includes Windows and wasm. The issue was introduced in version 0.2.7 and fixed in version 0.2.23.","published":"2020-11-24T21:20:14.000Z","updated":"2026-10-20T10:52:56.956184671Z","reserved":"2020-10-01T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"github.com"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"},{"version":"3.1","score":6.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub"},{"version":"3.1","score":6.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"},{"version":"2.0","score":3.5,"vector":"AV:N/AC:M/Au:S/C:N/I:N/A:P","rating":"low","source":"NVD"}],"rating":"medium","products":["time-rs time"],"affectedProducts":[{"vendor":"time-rs","product":"time","defaultStatus":null,"versions":[{"status":"affected","version":">= 0.2.7, <0.2.23"}],"platforms":[]}],"packages":[{"ecosystem":"crates.io","name":"time","purl":"pkg:cargo/time","ranges":[">=0.1.0 <0.2.23",">=0.2.7 <0.2.23",">=0.0.0-0 <0.2.0",">=0.2.1-0 <0.2.1",">=0.2.2-0 <0.2.2",">=0.2.3-0 <0.2.3",">=0.2.4-0 <0.2.4",">=0.2.5-0 <0.2.5",">=0.2.6-0 <0.2.6",">=0.2.7-0 <0.2.23"],"fixed":["0.2.23","0.2.0","0.2.1","0.2.2","0.2.3","0.2.4","0.2.5","0.2.6"],"advisory":"GHSA-wcg3-cvx6-7396"}],"cwes":["CWE-476"],"aliases":["GHSA-wcg3-cvx6-7396","RUSTSEC-2020-0071"],"references":[{"url":"https://github.com/time-rs/time/security/advisories/GHSA-wcg3-cvx6-7396","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/time-rs/time/issues/293","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://crates.io/crates/time/0.2.23","tags":["x_refsource_MISC","x_transferred","Release Notes","Vendor Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26235","tags":["advisory"]},{"url":"https://github.com/time-rs/time","tags":["package"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0071.html","tags":["web","advisory"]},{"url":"https://crates.io/crates/time","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.02085,"epssPercentile":0.81978,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2020-26235","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26235","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2020-26235","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-wcg3-cvx6-7396","ok":true,"note":"GHSA-wcg3-cvx6-7396"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2020-26235","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}