rust-time — security advisory
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.
- Products
- rust-time
- Affected versions
- 0.1.42-1, 0.3.23-2, 0.3.31-1, 0.3.31-1ubuntu0.1, 0.3.37-1, 0.3.39-1, 0.3.44-1, 0.3.47-1, 0.3.5-2, 0.3.5-3, 0.3.54-1
- Fixed versions
- Not specified
- CVEs
- CVE-2020-26235
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:51 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2020-26235
rust-time
Fixed versions: Not specified
rust-time
Fixed versions: Not specified
rust-time
Fixed versions: Not specified
rust-time
Fixed versions: Not specified
rust-time
Fixed versions: Not specified
rust-time
Fixed versions: Not specified
Complete source record
{
"id": "87c653e7827fb0ae5e2120f77b59f9ba634359665c5b302a4d761d0a82660e4e",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2020-26235",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2020-26235",
"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.",
"evidence": "osv:UBUNTU-CVE-2020-26235",
"products": [
{
"name": {
"value": "rust-time",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.1.42-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "rust-time",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.1.42-1",
"evidence": "/affected/1/versions"
},
{
"value": "0.3.5-2",
"evidence": "/affected/1/versions"
},
{
"value": "0.3.5-3",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "rust-time",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.3.23-2",
"evidence": "/affected/2/versions"
},
{
"value": "0.3.31-1",
"evidence": "/affected/2/versions"
},
{
"value": "0.3.31-1ubuntu0.1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "rust-time",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.3.37-1",
"evidence": "/affected/3/versions"
},
{
"value": "0.3.39-1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "rust-time",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.3.47-1",
"evidence": "/affected/4/versions"
},
{
"value": "0.3.54-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "rust-time",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.3.39-1",
"evidence": "/affected/5/versions"
},
{
"value": "0.3.44-1",
"evidence": "/affected/5/versions"
},
{
"value": "0.3.47-1",
"evidence": "/affected/5/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2020-26235",
"aliases": [
"UBUNTU-CVE-2020-26235"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-time",
"purl": "pkg:deb/ubuntu/rust-time?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"0.1.42-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-26235.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-time+rustc-serialize-dev",
"binary_version": "0.1.42-1"
},
{
"binary_name": "librust-time-dev",
"binary_version": "0.1.42-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-time",
"purl": "pkg:deb/ubuntu/rust-time?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"0.1.42-1",
"0.3.5-2",
"0.3.5-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-26235.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-time-dev",
"binary_version": "0.3.5-3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-time",
"purl": "pkg:deb/ubuntu/rust-time?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"0.3.23-2",
"0.3.31-1",
"0.3.31-1ubuntu0.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-26235.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-time-dev",
"binary_version": "0.3.31-1ubuntu0.1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-time",
"purl": "pkg:deb/ubuntu/rust-time?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"0.3.37-1",
"0.3.39-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-26235.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-time-dev",
"binary_version": "0.3.39-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-time",
"purl": "pkg:deb/ubuntu/rust-time?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"0.3.47-1",
"0.3.54-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-26235.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-time-dev",
"binary_version": "0.3.54-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-time",
"purl": "pkg:deb/ubuntu/rust-time?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"0.3.39-1",
"0.3.44-1",
"0.3.47-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-26235.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-time-dev",
"binary_version": "0.3.47-1"
}
]
}
}
],
"modified": "2026-10-17T12:56:13.090208995Z",
"provider": "osv",
"upstream": [
"CVE-2020-26235"
],
"references": [
"https://ubuntu.com/security/CVE-2020-26235",
"https://github.com/time-rs/time/security/advisories/GHSA-wcg3-cvx6-7396",
"https://rustsec.org/advisories/RUSTSEC-2020-0071.html",
"https://github.com/time-rs/time/issues/293",
"https://www.cve.org/CVERecord?id=CVE-2020-26235"
]
},
"related_cves": [
{
"value": "CVE-2020-26235",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 354961,
"published_at": "2020-11-24T22:15:00+00:00"
}