{"id":"UBUNTU-CVE-2020-26235","details":"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.","modified":"2026-05-20T16:04:20.335283085Z","published":"2020-11-24T22:15:00Z","upstream":["CVE-2020-26235"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-26235"},{"type":"REPORT","url":"https://github.com/time-rs/time/security/advisories/GHSA-wcg3-cvx6-7396"},{"type":"REPORT","url":"https://rustsec.org/advisories/RUSTSEC-2020-0071.html"},{"type":"REPORT","url":"https://github.com/time-rs/time/issues/293"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2020-26235"}],"affected":[{"package":{"name":"rust-time","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/rust-time?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.1.42-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.1.42-1","binary_name":"librust-time+rustc-serialize-dev"},{"binary_name":"librust-time-dev","binary_version":"0.1.42-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-26235.json"}},{"package":{"name":"rust-time","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/rust-time?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.1.42-1","0.3.5-2","0.3.5-3"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-time-dev","binary_version":"0.3.5-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-26235.json"}},{"package":{"name":"rust-time","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/rust-time?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.3.23-2","0.3.31-1","0.3.31-1ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.3.31-1ubuntu0.1","binary_name":"librust-time-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-26235.json"}},{"package":{"name":"rust-time","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/rust-time?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.3.37-1","0.3.39-1"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-time-dev","binary_version":"0.3.39-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-26235.json"}},{"package":{"name":"rust-time","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/rust-time?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.3.39-1","0.3.44-1","0.3.47-1"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-time-dev","binary_version":"0.3.47-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-26235.json"}}],"schema_version":"1.7.5","severity":[{"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"}]}