{"id":"RUSTSEC-2020-0159","aliases":["RUSTSEC-2020-0159"],"related":["CVE-2020-26235","RUSTSEC-2020-0071"],"kind":"vulnerability","state":"published","title":"Potential segfault in `localtime_r` invocations","summary":"### Impact\n\nUnix-like operating systems may segfault due to dereferencing a dangling pointer in specific circumstances. This requires an environment variable to be set in a different thread than the affected functions. This may occur without the user's knowledge, notably in a third-party library.\n\n### Workarounds\n\nNo workarounds are known.\n\n### References\n\n- [time-rs/time#293](https://github.com/time-rs/time/issues/293)","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"### Impact\n\nUnix-like operating systems may segfault due to dereferencing a dangling pointer in specific circumstances. This requires an environment variable to be set in a different thread than the affected functions. This may occur without the user's knowledge, notably in a third-party library.\n\n### Workarounds\n\nNo workarounds are known.\n\n### References\n\n- [time-rs/time#293](https://github.com/time-rs/time/issues/293)","format":"markdown","source":"rustsec"}],"published":"2020-11-10T12:00:00.000Z","modified":"2026-02-04T02:59:27.428Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.4.20"}],"ecosystem":"crates.io","package":"chrono","purl":"pkg:cargo/chrono","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/chrono","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0159.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/chronotope/chrono/issues/499","tags":["report"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2020-0159","url":"https://rustsec.org/advisories/RUSTSEC-2020-0159.html","licence":"CC0-1.0","modified":"2026-02-04T02:59:27.428Z"}],"updatedAt":"2026-11-25T22:56:43.008Z"}