CVE-2020-26235
Segmentation fault in Rust time crate
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 2.085% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 5.3 · published by GitHub_MCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Assessment source · checked 2026-11-19T12:55:32.182Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T12:55:32.182Z | CVE Program |
| epss | verified | 2026-11-19T16:04:28.415Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:41.971Z | OSV |
| affected | verified | 2026-11-19T12:55:32.182Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:55:32.182Z | CVE Program |
Affected versions and configuration
time-rs time; default status: unknown: >= 0.2.7, <0.2.23 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "time-rs",
"product": "time",
"versions": [
{
"status": "affected",
"version": ">= 0.2.7, <0.2.23"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/time-rs/time/security/advisories/GHSA-wcg3-cvx6-7396",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
},
{
"url": "https://github.com/time-rs/time/issues/293",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://crates.io/crates/time/0.2.23",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-04T15:56:03.095Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-wcg3-cvx6-7396",
"aliases": [
"CVE-2020-26235",
"RUSTSEC-2020-0071"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.1.0"
},
{
"fixed": "0.2.23"
}
]
}
],
"package": {
"name": "time",
"purl": "pkg:cargo/time",
"ecosystem": "crates.io"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-wcg3-cvx6-7396/GHSA-wcg3-cvx6-7396.json",
"last_known_affected_version_range": "< 0.2.0"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.2.7"
},
{
"fixed": "0.2.23"
}
]
}
],
"package": {
"name": "time",
"purl": "pkg:cargo/time",
"ecosystem": "crates.io"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-wcg3-cvx6-7396/GHSA-wcg3-cvx6-7396.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/time-rs/time/security/advisories/GHSA-wcg3-cvx6-7396",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-26235",
"type": "ADVISORY"
},
{
"url": "https://github.com/time-rs/time/issues/293",
"type": "WEB"
},
{
"url": "https://crates.io/crates/time/0.2.23",
"type": "WEB"
},
{
"url": "https://github.com/time-rs/time",
"type": "PACKAGE"
},
{
"url": "https://rustsec.org/advisories/RUSTSEC-2020-0071.html",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-476"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2020-11-24T22:15:00Z",
"github_reviewed_at": "2021-08-18T21:06:21Z"
}
}Archived source JSONOSV · osv · full conditions
{
"id": "RUSTSEC-2020-0071",
"aliases": [
"CVE-2020-26235",
"GHSA-wcg3-cvx6-7396"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.0.0-0"
},
{
"fixed": "0.2.0"
},
{
"introduced": "0.2.1-0"
},
{
"fixed": "0.2.1"
},
{
"introduced": "0.2.2-0"
},
{
"fixed": "0.2.2"
},
{
"introduced": "0.2.3-0"
},
{
"fixed": "0.2.3"
},
{
"introduced": "0.2.4-0"
},
{
"fixed": "0.2.4"
},
{
"introduced": "0.2.5-0"
},
{
"fixed": "0.2.5"
},
{
"introduced": "0.2.6-0"
},
{
"fixed": "0.2.6"
},
{
"introduced": "0.2.7-0"
},
{
"fixed": "0.2.23"
}
]
}
],
"package": {
"name": "time",
"purl": "pkg:cargo/time",
"ecosystem": "crates.io"
},
"versions": [],
"database_specific": {
"cvss": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"source": "https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2020-0071.json",
"categories": [
"code-execution",
"memory-corruption"
],
"informational": null
},
"ecosystem_specific": {
"affects": {
"os": [
"linux",
"redox",
"solaris",
"android",
"ios",
"macos",
"netbsd",
"openbsd",
"freebsd"
],
"arch": [],
"functions": [
"time::OffsetDateTime::now_local",
"time::OffsetDateTime::try_now_local",
"time::UtcOffset::current_local_offset",
"time::UtcOffset::local_offset_at",
"time::UtcOffset::try_current_local_offset",
"time::UtcOffset::try_local_offset_at",
"time::at",
"time::at_utc",
"time::now"
]
},
"affected_functions": null
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://crates.io/crates/time",
"type": "PACKAGE"
},
{
"url": "https://rustsec.org/advisories/RUSTSEC-2020-0071.html",
"type": "ADVISORY"
},
{
"url": "https://github.com/time-rs/time/issues/293",
"type": "REPORT"
}
],
"relatedGitRanges": [],
"database_specific": {
"license": "CC0-1.0"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | crates.io / package | time | Not a distribution channel | 0.2.23 | Official record |
| ecosystem-boundary | crates.io / package | time | Not a distribution channel | 0.2.0 | Official record |
| ecosystem-boundary | crates.io / package | time | Not a distribution channel | 0.2.1 | Official record |
| ecosystem-boundary | crates.io / package | time | Not a distribution channel | 0.2.2 | Official record |
| ecosystem-boundary | crates.io / package | time | Not a distribution channel | 0.2.3 | Official record |
| ecosystem-boundary | crates.io / package | time | Not a distribution channel | 0.2.4 | Official record |
| ecosystem-boundary | crates.io / package | time | Not a distribution channel | 0.2.5 | Official record |
| ecosystem-boundary | crates.io / package | time | Not a distribution channel | 0.2.6 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:41.971ZArchived source JSON
Source publication: 2021-08-25T20:56:46.000Z
Source modification: 2026-09-10T03:49:08.359ZDocument fingerprint
67e93ce13a916f8e647476fb2ad6578db5e1d1975d4df74e22b21ea2efee11bd - OSVConsulted: 2026-11-19T12:52:41.971ZArchived source JSON
Source publication: 2020-11-18T12:00:00.000Z
Source modification: 2026-02-04T02:31:56.682ZDocument fingerprint
67e93ce13a916f8e647476fb2ad6578db5e1d1975d4df74e22b21ea2efee11bd - CVE ProgramConsulted: 2026-11-19T12:55:32.182ZArchived source JSON
Source publication: 2020-11-24T21:20:14.000Z
Source modification: 2024-08-04T15:56:03.095ZDocument fingerprint
a4542cae25630bf9e4db43a7ef51f532ecf4cf8e333a62c523a4227338bcdfe8 - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:28.415ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
39bea3af22058b676b5ebbef9d577de9e9401bcbe0faa29a2491380e8c5f063c
Official status history
- UNKNOWN → PUBLISHED · · evidence