NULL Pointer Dereference Affecting time package, versions >=0.2.7 <0.2.23


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.88% (77th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-TIME-1045353
  • published25 Nov 2020
  • disclosed25 Nov 2020
  • creditUnknown

Introduced: 25 Nov 2020

CVE-2020-26235  (opens in a new tab)
CWE-476  (opens in a new tab)

How to fix?

Upgrade time to version 0.2.23 or higher.

Overview

time is a time package for Rust.

Affected versions of this package are vulnerable to NULL Pointer Dereference. 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

References

CVSS Base Scores

version 3.1