# CVE-2020-26235: Segmentation fault in Rust time crate

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2020-11-24 · Modified: 2024-08-04
- Aliases: UBUNTU-CVE-2020-26235, CGA-38j9-gp2h-5m8p, CGA-39c8-4fvx-v35q, CGA-4c47-wrhp-rrvh, CGA-5jvv-mqj2-3f6x, CGA-627p-h8jf-4v5v, CGA-7fgq-vjhh-885f, CGA-82v9-f7vm-2pmx, CGA-cj6c-mjvc-wf9c, CGA-fp9q-4f6w-g46r, CGA-j8cg-8vjw-w549, CGA-jc8j-42vw-j2v5, CGA-mcr7-r88f-8mhp, CGA-ppv7-fq92-745p, CGA-q848-gfgc-cww9, GHSA-wcg3-cvx6-7396, RUSTSEC-2020-0071, CGA-rmvr-9ccr-wjhw, ALPINE-CVE-2020-26235
- Record: https://cvemate.com/vulnerability/CVE-2020-26235 · JSON: https://cvemate.com/vulnerability/CVE-2020-26235/json

## Description

```text
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.
```

## Signals

- CVSS: 5.3 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 2.003%, percentile 81.477%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine newsboat (Alpine Linux): \< 2.30.1-r0
- chainguard berg (Chainguard): \< 0.4.7-r0
- chainguard pgcat (Chainguard): All versions (No fix recorded)
- chainguard pulumi-watch (Chainguard): \< 0.1.5-r5
- chainguard toda (Chainguard): \< 0.2.4-r4
- chainguard zellij (Chainguard): \< 0.41.2-r2
- chainguard zellij-bash-completion (Chainguard): \< 0.41.2-r2
- chainguard zellij-fish-completion (Chainguard): \< 0.41.2-r2
- chainguard zellij-zsh-completion (Chainguard): \< 0.41.2-r2
- wolfi berg (Wolfi): \< 0.4.7-r0
- wolfi pgcat (Wolfi): All versions (No fix recorded)
- wolfi pulumi-watch (Wolfi): \< 0.1.5-r5
- wolfi zellij (Wolfi): \< 0.41.2-r2
- wolfi zellij-bash-completion (Wolfi): \< 0.41.2-r2
- wolfi zellij-fish-completion (Wolfi): \< 0.41.2-r2
- wolfi zellij-zsh-completion (Wolfi): \< 0.41.2-r2
- Crates.Io time (Crates.Io): ≥ 0.1.0, \< 0.2.23 \| ≥ 0.2.7, \< 0.2.23 \| ≥ 0.2.7-0, \< 0.2.23
- ubuntu rust-time (Ubuntu): All versions (No fix recorded)
- time\_project time: ≥ 0.2.7, \< 0.2.23
- time-rs time: ≥ 0.2.7, \< 0.2.23

## References

- <https://github.com/time-rs/time/security/advisories/GHSA-wcg3-cvx6-7396>
- <https://github.com/time-rs/time/issues/293>
- <https://crates.io/crates/time/0.2.23>
- <https://ubuntu.com/security/CVE-2020-26235>
- <https://rustsec.org/advisories/RUSTSEC-2020-0071.html>
- <https://www.cve.org/CVERecord?id=CVE-2020-26235>
- <https://nvd.nist.gov/vuln/detail/CVE-2020-26235>
- <https://github.com/time-rs/time>
- <https://crates.io/crates/time>
- <https://security.alpinelinux.org/vuln/CVE-2020-26235>

---

Data as of 2026-12-05T07:13:34.759Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
