Live threats

All CVEs / Time Project

CVE-2020-26235Time Project Time

Medium 5.3

Priority
32
CVSS 3.1
5.3
EPSS
2.0%
probability of exploitation in 30 days · percentile 81
Auth required
Yes
Published
Nov 24, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-476
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Time.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
crates.io time ≥ 0.1.0 < 0.2.23 0.2.23 cargo update -p time --precise 0.2.23
crates.io time ≥ 0.2.7 < 0.2.23 0.2.23 cargo update -p time --precise 0.2.23
crates.io time ≥ 0.0.0-0 < 0.2.0 0.2.0 cargo update -p time --precise 0.2.0
crates.io time ≥ 0.2.1-0 < 0.2.1 0.2.1 cargo update -p time --precise 0.2.1
crates.io time ≥ 0.2.2-0 < 0.2.2 0.2.2 cargo update -p time --precise 0.2.2
crates.io time ≥ 0.2.3-0 < 0.2.3 0.2.3 cargo update -p time --precise 0.2.3

Per OSV / GitHub Advisories (GHSA-wcg3-cvx6-7396, RUSTSEC-2020-0071). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
time_projecttime≥ 0.2.7 < 0.2.23

Official sources

References

Links published by the sources. Open them with care.