CVE-2020-26235
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.
EPSS 0.50% · 66.2th percentile
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Ubuntu:22.04:LTS | rust-time | 0.1.42-1, 0.3.5-2, 0.3.5-3 |
| Ubuntu:20.04:LTS | rust-time | 0.1.42-1, 0 |
| Ubuntu:25.10 | rust-time | 0, 0.3.37-1, 0.3.39-1 |
| Ubuntu:24.04:LTS | rust-time | 0.3.23-2, 0.3.31-1ubuntu0.1, 0.3.31-1 |
Timeline
- Nov 18, 2020 CVE Published
- Apr 14, 2021 EPSS Score
- Jun 22, 2021 EPSS Score
- Aug 24, 2021 EPSS Score
- Dec 27, 2021 EPSS Score
- Jan 6, 2022 EPSS Score
- Feb 4, 2022 EPSS Score
- Feb 27, 2022 EPSS Score
- Apr 1, 2022 EPSS Score
- Jul 2, 2022 EPSS Score
- Sep 4, 2022 EPSS Score
- Nov 5, 2022 EPSS Score
References
- https://ubuntu.com/security/CVE-2020-26235 third-party-advisory
- https://github.com/time-rs/time/security/advisories/GHSA-wcg3-cvx6-7396 third-party-advisory
- https://rustsec.org/advisories/RUSTSEC-2020-0071.html third-party-advisory
- https://github.com/time-rs/time/issues/293 third-party-advisory
- https://www.cve.org/CVERecord?id=CVE-2020-26235 third-party-advisory