# GHSA-3fg9-hcq5-vxrc: iana-time-zone vulnerable to use after free in MacOS / iOS implementation

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2022-08-15T12:00:00.000Z
- Modified: 2023-11-08T04:14:35.913Z
- Also known as: RUSTSEC-2022-0049
- Weaknesses: CWE-416

## Description

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.

(As written by GitHub Advisory Database.)

## Affected

- iana-time-zone (crates.io): from 0.1.43 before 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> (advisory, web)
- <https://crates.io/crates/iana-time-zone> (package)
- <https://github.com/strawlab/iana-time-zone/pull/50#discussion_r945353515> (web)

## Sources

- GitHub Advisory Database: [GHSA-3fg9-hcq5-vxrc](https://github.com/advisories/GHSA-3fg9-hcq5-vxrc), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2022-0049](https://rustsec.org/advisories/RUSTSEC-2022-0049.html), CC0-1.0, modified 2023-11-08

---

Page: https://cve.day/GHSA-3fg9-hcq5-vxrc · Whole record: https://cve.day/GHSA-3fg9-hcq5-vxrc.json · Rebuilt by cve.day 2026-11-25T22:56:43.107Z
