CVE-2020-26235

    Dashboard / Vulnerabilities / CVE-2020-26235

    CVE-2020-26235

    Published: 24 Nov 2020Last Modified: 9 Jul 2026

    Summary:

    Details: 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 packages

    Package

    Name:

    Purl:

    Affected ranges

    Type: GIT

    Events:

    Introduced- 21048192e76dd5faa107af0e2ee5f6bd208c1f87

    Affected versions

    v0.2.22
    v0.2.21
    v0.2.20
    v0.2.19
    v0.2.18
    v0.2.17
    v0.2.16
    v0.2.15
    v0.2.14
    v0.2.13
    v0.2.12
    v0.2.11
    v0.2.10
    v0.2.9
    v0.2.8
    v0.2.7

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    CVE-2020-26235 | CVE-DB