Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2020-26235

MEDIUM 5.3EPSS 81%

Segmentation fault in Rust time crate

Also known as GHSA-wcg3-cvx6-7396, RUSTSEC-2020-0071

Mitigation

  • Upgrade time to one of 0.2.23, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6 (or later in the same release line).

Who should check

  • Projects that depend on crates.io package time (>= 0.1.0, < 0.2.23)
  • Anyone running time-rs time >= 0.2.7, <0.2.23

Vulnerability facts

Affected
time >= 0.1.0, < 0.2.23
Fixed in
0.2.23, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, login needed
CVSS
5.3 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: High
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
2.00% chance of exploitation in 30 days (percentile 81, 2026-11-26)
CWE
CWE-476
Published
Modified

Description

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 and fixed versions

Package / productAffectedFixedSource
crates.io time>= 0.1.0, < 0.2.230.2.23, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6osv
time-rs time>= 0.2.7, <0.2.23—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2020-26235. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2020-26235.md
Affected: time >= 0.1.0, < 0.2.23
Fixed in: 0.2.23, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6

Steps:
1. Search this machine and project for time (crates.io), time-rs time: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2020-26235 being exploited?

There is no confirmed exploitation: CVE-2020-26235 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.00% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2020-26235?

Medium: CVSS 5.3 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2020-26235?

time >= 0.1.0, < 0.2.23.

Is there a fix for CVE-2020-26235?

Yes. Fixed in 0.2.23, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6. Upgrade time to one of 0.2.23, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6 (or later in the same release line).

How do I check if I'm affected by CVE-2020-26235?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors