{"id":"CVE-2020-26235","published":"2020-11-24T21:20:14Z","modified":"2024-08-04T15:56:03Z","title":"Segmentation fault in Rust time crate","vendor":"time-rs","product":"time","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02003,"percentile":0.81293,"provenance":"source"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"references":[{"url":"https://github.com/time-rs/time/security/advisories/GHSA-wcg3-cvx6-7396","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/time-rs/time/issues/293","tags":["x_refsource_MISC"]},{"url":"https://crates.io/crates/time/0.2.23","tags":["x_refsource_MISC"]}],"priority":{"score":25.0,"factors":[{"name":"EPSS percentile","points":16.26},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.71}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-11-06","earliestUrl":"https://github.com/federiconbaez/cortex9-time-crate-env-race-interleaving-model","repos":[{"name":"federiconbaez/cortex9-time-crate-env-race-interleaving-model","url":"https://github.com/federiconbaez/cortex9-time-crate-env-race-interleaving-model","stars":0,"created":"2026-11-06"}]},"first":{"date":"2026-11-06","source":"PoC-in-GitHub","url":"https://github.com/federiconbaez/cortex9-time-crate-env-race-interleaving-model"},"provenance":"source"},"vendorSlug":"time-rs","affectedVersions":[{"vendor":"time-rs","product":"time","versions":[">= 0.2.7, <0.2.23"]}],"affected":[{"ecosystem":"crates.io","package":"time","vulnerableRanges":[">=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"],"patched":["0.2.23","0.2.0","0.2.1","0.2.2","0.2.3","0.2.4","0.2.5","0.2.6"],"from":["GHSA-wcg3-cvx6-7396","RUSTSEC-2020-0071"],"provenance":"source"}],"euvd":{"id":"EUVD-2021-1914","exploited":false,"provenance":"source"}}