CVE-2020-26235: Segmentation fault in time
6.2
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.72799%
CWE
Published
8/25/2021
Updated
6/10/2024
KEV Status
No
Technology
Rust
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| time | rust | >= 0.2.7, < 0.2.23 | 0.2.23 |
| time | rust | >= 0.1.0, < 0.2.0 | 0.2.23 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unsynchronized access to environment variables (particularly TZ) across threads. All listed functions either directly interact with environment variables through C's localtime_r or depend on components that do. The explicit advisory lists these functions as affected, and their purpose of determining local time offsets makes them inherently susceptible to the described race condition between setenv and time calculation functions. Patches specifically target these functions' behavior, confirming their vulnerability.