{"id":"GHSA-3fg9-hcq5-vxrc","aliases":["RUSTSEC-2022-0049"],"status":"published","title":"iana-time-zone vulnerable to use after free in MacOS / iOS implementation","description":"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.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-416"],"published":"2022-08-15T12:00:00Z","modified":"2023-11-08T04:14:35Z","fixes":[{"ecosystem":"crates.io","package":"iana-time-zone","fixed_in":["0.1.45"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"iana-time-zone","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.1.43"},{"fixed":"0.1.45"}]}]},{"source":"osv","ecosystem":"crates.io","package":"iana-time-zone","ranges":[{"type":"SEMVER","events":[{"introduced":"0.1.43"},{"fixed":"0.1.45"}]}]},{"source":"osv","ecosystem":"crates.io","package":"iana-time-zone","ranges":[{"type":"SEMVER","events":[{"introduced":"0.1.43"},{"fixed":"0.1.45"}]}]}],"references":[{"url":"https://github.com/strawlab/iana-time-zone/pull/54","tags":["web"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2022-0049.html","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-3fg9-hcq5-vxrc"},{"url":"https://github.com/strawlab/iana-time-zone","tags":["package"]},{"url":"https://crates.io/crates/iana-time-zone","tags":["package"]},{"url":"https://github.com/strawlab/iana-time-zone/pull/50#discussion_r945353515","tags":["web"]}],"sources":{"ghsa":[{"id":"GHSA-3fg9-hcq5-vxrc","title":"iana-time-zone vulnerable to use after free in MacOS / iOS implementation","description":"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.\n","status":"published","published":"2022-08-30T19:55:41Z","modified":"2023-01-12T05:06:35Z","cwes":["CWE-416"],"updated_at":"2026-11-02T14:36:14.033357Z"}],"osv":[{"id":"GHSA-3fg9-hcq5-vxrc","title":"iana-time-zone vulnerable to use after free in MacOS / iOS implementation","description":"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.\n","status":"published","published":"2022-08-30T19:55:41Z","modified":"2023-11-08T04:14:35.913675Z","cwes":["CWE-416"],"updated_at":"2026-11-02T15:46:35.747385Z"},{"id":"RUSTSEC-2022-0049","title":"Use after free in MacOS / iOS implementation","description":"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.","status":"published","published":"2022-08-15T12:00:00Z","modified":"2023-11-08T04:14:35.913675Z","updated_at":"2026-11-02T15:53:39.971022Z"}]}}
