Vulnerabilites related to time-rs - time
CVE-2020-26235 (GCVE-0-2020-26235)
Vulnerability from cvelistv5
Published
2020-11-24 21:20
Modified
2024-08-04 15:56
Severity ?
VLAI Severity ?
EPSS score ?
CWE
- CWE-476 - NULL Pointer Dereference
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.
References
▼ | URL | Tags |
---|---|---|
https://github.com/time-rs/time/security/advisories/GHSA-wcg3-cvx6-7396 | x_refsource_CONFIRM | |
https://github.com/time-rs/time/issues/293 | x_refsource_MISC | |
https://crates.io/crates/time/0.2.23 | x_refsource_MISC |
{ "containers": { "adp": [ { "providerMetadata": { "dateUpdated": "2024-08-04T15:56:03.095Z", "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE" }, "references": [ { "tags": [ "x_refsource_CONFIRM", "x_transferred" ], "url": "https://github.com/time-rs/time/security/advisories/GHSA-wcg3-cvx6-7396" }, { "tags": [ "x_refsource_MISC", "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" } ], "title": "CVE Program Container" } ], "cna": { "affected": [ { "product": "time", "vendor": "time-rs", "versions": [ { "status": "affected", "version": "\u003e= 0.2.7, \u003c0.2.23" } ] } ], "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." } ], "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": { "dateUpdated": "2020-11-24T21:20:14", "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "shortName": "GitHub_M" }, "references": [ { "tags": [ "x_refsource_CONFIRM" ], "url": "https://github.com/time-rs/time/security/advisories/GHSA-wcg3-cvx6-7396" }, { "tags": [ "x_refsource_MISC" ], "url": "https://github.com/time-rs/time/issues/293" }, { "tags": [ "x_refsource_MISC" ], "url": "https://crates.io/crates/time/0.2.23" } ], "source": { "advisory": "GHSA-wcg3-cvx6-7396", "discovery": "UNKNOWN" }, "title": "Segmentation fault in Rust time crate", "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": "\u003e= 0.2.7, \u003c0.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" } } } }, "cveMetadata": { "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "assignerShortName": "GitHub_M", "cveId": "CVE-2020-26235", "datePublished": "2020-11-24T21:20:14", "dateReserved": "2020-10-01T00:00:00", "dateUpdated": "2024-08-04T15:56:03.095Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1" }