CVE-2020-26235CWE-476

Segmentation fault in Rust time crate

Medium · published November 24, 2020

CVSS v3.1
5.3
EPSS
2%
Percentile
80.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.3 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.01965 · 80.2th percentile
Weakness
CWE-476 · NULL Pointer Dereference
Published
2020-11-24T21:20Z
EPSS history
Timeline
  • 24 NOV 21:20Z
    Segmentation fault in Rust time crate
    cvelistv5