RUSTSEC-2022-0049
MEDIUMiana-time-zone vulnerable to use after free in MacOS / iOS implementation
In iana-time-zone v0.1.43 a use-after-free bug in the MacOS / iOS implementation was introduced.
The copied system time zone was released before its name was copied.
If the system time zone was changed between the call of CFRelease and str::to_owned(),
random memory would be copied.
- Published
- 15 Aug 2022
- Last modified
- 8 Nov 2023
- Weakness
- CWE-416
- Also known as
- GHSA-3fg9-hcq5-vxrc
- Sources
- OSV GHSA-3fg9-hcq5-vxrcJSONOSVJSON
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | iana-time-zone | >= 0.1.43, < 0.1.45 | 0.1.45 |
References
- https://github.com/strawlab/iana-time-zone/pull/54 · WEB
- https://github.com/strawlab/iana-time-zone · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2022-0049.html · WEB, ADVISORY
- https://crates.io/crates/iana-time-zone · PACKAGE
- https://github.com/strawlab/iana-time-zone/pull/50#discussion_r945353515 · WEB
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 15 Aug 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 30 Aug 2022)