Miggo Logo

CVE-2020-26235: Segmentation fault in time

6.2

CVSS Score
3.1

Basic Information

EPSS Score
0.72799%
Published
8/25/2021
Updated
6/10/2024
KEV Status
No
Technology
TechnologyRust

Technical Details

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
timerust>= 0.2.7, < 0.2.230.2.23
timerust>= 0.1.0, < 0.2.00.2.23

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

### Imp**t Unix-lik* op*r*tin* syst*ms m*y s****ult *u* to **r***r*n*in* * **n*lin* point*r in sp**i*i* *ir*umst*n**s. T*is r*quir*s *n *nvironm*nt v*ri**l* to ** s*t in * *i***r*nt t*r*** t**n t** *****t** *un*tions. T*is m*y o**ur wit*out t** us*r

Reasoning

T** vuln*r**ility st*ms *rom unsyn**roniz** ****ss to *nvironm*nt v*ri**l*s (p*rti*ul*rly TZ) **ross t*r***s. *ll list** *un*tions *it**r *ir**tly int*r**t wit* *nvironm*nt v*ri**l*s t*rou** *'s `lo**ltim*_r` or **p*n* on *ompon*nts t**t *o. T** *xpl