{"id":"CVE-2020-26235","state":"PUBLISHED","title":"Segmentation fault in Rust time crate","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.","publishedAt":"2020-11-24T21:20:14.000Z","updatedAt":"2024-08-04T15:56:03.095Z","severity":{"score":5.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["time-rs time"],"affected":[{"vendor":"time-rs","product":"time","versions":[{"version":">= 0.2.7, <0.2.23","status":"affected"}]}],"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"],"weaknesses":["CWE-476"],"ingestedAt":"2026-10-29T19:47:08.370Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2020/26xxx/CVE-2020-26235.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2020-26235","state":"PUBLISHED","datePublished":"2020-11-24T21:20:14.000Z","dateUpdated":"2024-08-04T15:56:03.095Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2020-10-01T00:00:00.000Z"},"containers":{"cna":{"title":"Segmentation fault in Rust time crate","descriptions":[{"lang":"en","value":"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":[{"vendor":"time-rs","product":"time","versions":[{"version":">= 0.2.7, <0.2.23","status":"affected"}]}],"references":[{"url":"https://github.com/time-rs/time/security/advisories/GHSA-wcg3-cvx6-7396","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/time-rs/time/issues/293","tags":["x_refsource_MISC"]},{"url":"https://crates.io/crates/time/0.2.23","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-476","description":"CWE-476 NULL Pointer Dereference","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","dateUpdated":"2020-11-24T21:20:14.000Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa"},"source":{"advisory":"GHSA-wcg3-cvx6-7396","discovery":"UNKNOWN"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2020-26235","STATE":"PUBLIC","TITLE":"Segmentation fault in Rust time crate"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"time","version":{"version_data":[{"version_value":">= 0.2.7, <0.2.23"}]}}]},"vendor_name":"time-rs"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-476 NULL Pointer Dereference"}]}]},"references":{"reference_data":[{"name":"https://github.com/time-rs/time/security/advisories/GHSA-wcg3-cvx6-7396","refsource":"CONFIRM","url":"https://github.com/time-rs/time/security/advisories/GHSA-wcg3-cvx6-7396"},{"name":"https://github.com/time-rs/time/issues/293","refsource":"MISC","url":"https://github.com/time-rs/time/issues/293"},{"name":"https://crates.io/crates/time/0.2.23","refsource":"MISC","url":"https://crates.io/crates/time/0.2.23"}]},"source":{"advisory":"GHSA-wcg3-cvx6-7396","discovery":"UNKNOWN"}}},"adp":[{"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":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T15:56:03.095Z"}}]}}}