# CVE-2020-26235: Segmentation fault in Rust time crate

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.00%, higher than 81% of CVEs (2026-12-01)
- Published: 2020-11-18T12:00:00.000Z
- Modified: 2026-09-10T03:49:08.359Z
- Also known as: GHSA-wcg3-cvx6-7396, RUSTSEC-2020-0071
- Related: RUSTSEC-2020-0159
- Weaknesses: CWE-476
- Assigned by: GitHub_M

## 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::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.

(As written by CVE List.)

## Affected

- time-rs time: >= 0.2.7, <0.2.23
- time (crates.io): from 0.1.0 before 0.2.23; from 0.2.7 before 0.2.23; from 0.0.0-0 before 0.2.0; from 0.2.1-0 before 0.2.1; from 0.2.2-0 before 0.2.2; from 0.2.3-0 before 0.2.3; from 0.2.4-0 before 0.2.4; from 0.2.5-0 before 0.2.5; from 0.2.6-0 before 0.2.6; from 0.2.7-0 before 0.2.23
- time_project time: from 0.2.7 before 0.2.23

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- RustSec Advisory Database: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:N/A:P`

## References

- <https://github.com/time-rs/time/security/advisories/GHSA-wcg3-cvx6-7396> (patch, third-party-advisory, web)
- <https://github.com/time-rs/time/issues/293> (issue-tracking, report, third-party-advisory, web)
- <https://crates.io/crates/time/0.2.23> (release-notes, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-26235> (advisory)
- <https://github.com/time-rs/time> (package)
- <https://rustsec.org/advisories/RUSTSEC-2020-0071.html> (advisory, web)
- <https://crates.io/crates/time> (package)

## Sources

- CVE List: [CVE-2020-26235](https://www.cve.org/CVERecord?id=CVE-2020-26235), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-wcg3-cvx6-7396](https://github.com/advisories/GHSA-wcg3-cvx6-7396), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2020-0071](https://rustsec.org/advisories/RUSTSEC-2020-0071.html), CC0-1.0, modified 2026-02-04
- NVD: [CVE-2020-26235](https://nvd.nist.gov/vuln/detail/CVE-2020-26235), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-26235 · Whole record: https://cve.day/CVE-2020-26235.json · Rebuilt by cve.day 2026-11-25T22:57:55.945Z
