# RUSTSEC-2020-0159: Potential segfault in `localtime_r` invocations

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-11-10T12:00:00.000Z
- Modified: 2026-02-04T02:59:27.428Z
- Related: CVE-2020-26235, RUSTSEC-2020-0071

## 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)

(As written by RustSec Advisory Database.)

## Affected

- chrono (crates.io): from 0.0.0-0 before 0.4.20

## References

- <https://crates.io/crates/chrono> (package)
- <https://rustsec.org/advisories/RUSTSEC-2020-0159.html> (advisory)
- <https://github.com/chronotope/chrono/issues/499> (report)

## Sources

- RustSec Advisory Database: [RUSTSEC-2020-0159](https://rustsec.org/advisories/RUSTSEC-2020-0159.html), CC0-1.0, modified 2026-02-04

---

Page: https://cve.day/RUSTSEC-2020-0159 · Whole record: https://cve.day/RUSTSEC-2020-0159.json · Rebuilt by cve.day 2026-11-25T22:56:43.008Z
