{"id":"GHSA-3fg9-hcq5-vxrc","aliases":["GHSA-3fg9-hcq5-vxrc","RUSTSEC-2022-0049"],"related":[],"kind":"vulnerability","state":"published","title":"iana-time-zone vulnerable to use after free in MacOS / iOS implementation","summary":"In iana-time-zone v0.1.43 a use-after-free bug in the MacOS / iOS implementation was introduced.\n\nThe copied system time zone was released before its name was copied.\nIf the system time zone was changed between the call of `CFRelease` and `str::to_owned()`,\nrandom memory would be copied.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"In iana-time-zone v0.1.43 a use-after-free bug in the MacOS / iOS implementation was introduced.\n\nThe copied system time zone was released before its name was copied.\nIf the system time zone was changed between the call of `CFRelease` and `str::to_owned()`,\nrandom memory would be copied.","format":"markdown","source":"ghsa"}],"published":"2022-08-15T12:00:00.000Z","modified":"2023-11-08T04:14:35.913Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"semver","introduced":"0.1.43","status":"affected","fixed":"0.1.45"}],"ecosystem":"crates.io","package":"iana-time-zone","purl":"pkg:cargo/iana-time-zone","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.1.43","status":"affected","fixed":"0.1.45"}],"ecosystem":"crates.io","package":"iana-time-zone","purl":"pkg:cargo/iana-time-zone","source":"rustsec"}],"references":[{"url":"https://github.com/strawlab/iana-time-zone/pull/54","tags":["web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/strawlab/iana-time-zone","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2022-0049.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/iana-time-zone","tags":["package"],"sources":["rustsec"]},{"url":"https://github.com/strawlab/iana-time-zone/pull/50#discussion_r945353515","tags":["web"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3fg9-hcq5-vxrc","url":"https://github.com/advisories/GHSA-3fg9-hcq5-vxrc","licence":"CC-BY-4.0","modified":"2023-11-08T04:14:35.913Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2022-0049","url":"https://rustsec.org/advisories/RUSTSEC-2022-0049.html","licence":"CC0-1.0","modified":"2023-11-08T04:14:35.913Z"}],"updatedAt":"2026-11-25T22:56:43.107Z"}