Segmentation fault in Rust time crate
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-476.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| time-rs | time | 0.2.7 to before 0.2.23 | 0.2.23 | Patch available | CNA |
| — | time (crates.io) | 0.1.0 to before 0.2.23 | 0.2.23 | Patch available | GHSA-wcg3-cvx6-7396 |
| — | time (crates.io) | 0.2.7 to before 0.2.23 | 0.2.23 | Patch available | GHSA-wcg3-cvx6-7396 |
- time Vendortime-rs Affected 0.2.7 to before 0.2.23 Fixed in 0.2.23 Patch available CNA
- time (crates.io) Vendor— Affected 0.1.0 to before 0.2.23 Fixed in 0.2.23 Patch available GHSA-wcg3-cvx6-7396
- time (crates.io) Vendor— Affected 0.2.7 to before 0.2.23 Fixed in 0.2.23 Patch available GHSA-wcg3-cvx6-7396
CPE configurations NVD · 2
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:time_project:time:*:*:*:*:*:*:*:* | 0.2.7 to before 0.2.23 | Vulnerable | Time Project |
| cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Microsoft |
- cpe:2.3:a:time_project:time:*:*:*:*:*:*:*:* Versions 0.2.7 to before 0.2.23 Vulnerable ·Time Project
- cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Microsoft
Remediation
- Fix · CNA time (time-rs) Fixed in 0.2.23
- Fix · GHSA-wcg3-cvx6-7396 time (crates.io) Fixed in 0.2.23 Advisory →
- Fix · GHSA-wcg3-cvx6-7396 time (crates.io) Fixed in 0.2.23 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2020-26235
- 2026-10-03 Alias added: GHSA-wcg3-cvx6-7396
References
Advisory 3
More Time Project Time vulnerabilities
- TI-2026-20796 time affected by a stack exhaustion denial of service attack CVSS 4.0MEDIUM 6.8
Sources
- CVE-2020-26235 · CVE Program
- CVE-2020-26235 · NVD
- FIRST EPSS
- GHSA-wcg3-cvx6-7396 · GitHub Advisory Database · CC BY 4.0
- CVE-2020-26235 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences