What’s Vulnerable › Vulnerabilities
RUSTSEC-2020-0159: Potential segfault in `localtime_r` invocations
- Severity: unknown
- Exploited in the wild: not listed in CISA KEV
- Public exploit or detection template: none known
- Published: 2020-11-10 · updated 2026-02-04
Description
### Impact Unix-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. ### Workarounds No workarounds are known. ### References - [time-rs/time#293](https://github.com/time-rs/time/issues/293)
Affected products
- Crates.Io Chrono: from 0.0.0-0 before 0.4.20 — fixed in 0.4.20
How to fix
Upgrade to a fixed version: Crates.Io Chrono 0.4.20. Check the vendor advisory for mitigations.
References
- https://crates.io/crates/chrono
- https://rustsec.org/advisories/RUSTSEC-2020-0159.html
- https://github.com/chronotope/chrono/issues/499
Get alerted when RUSTSEC-2020-0159 or the next vulnerability affects your stack