CVE-2020-26235

Segmentation fault in Rust time crate

MEDIUM
5.3
CVSS Score
Published: November 24, 2020 at 09:20 PM UTC
Updated: June 17, 2026 at 03:07 AM UTC
2 products affected across 2 vendorsTimeProject Time· also runs on 1 platform

Using time by time-rs?

Get instant alerts when new vulnerabilities affect time - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.3
Exploit prediction
EPSS 2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

0.2.7 ≤ v < 0.2.23
Affected range stops below 0.2.23, so it looks safe — our inference, not a vendor statement
microsoft-windows (environment)
v < 0.2.23
Affected range stops below 0.2.23, so it looks safe — our inference, not a vendor statement

Runs on — not affected

The affected product only carries this flaw when running on these platforms. The platforms themselves are not vulnerable.

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (3)

x_refsource_MISCRelease NotesVendor Advisory
https://crates.io/crates/time/0.2.23
x_refsource_MISCIssue TrackingThird Party Advisory
https://github.com/time-rs/time/issues/293

CVSS

5.3MEDIUMGitHub_M
Attack Vector
NETWORK
Complexity
HIGH
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card