# GHSA-3FG9-HCQ5-VXRC: iana-time-zone vulnerable to use after free in MacOS / iOS implementation

- Database: GitHub
- Severity: medium (stated by ghsa, no CVSS score)
- Published: 2022-08-30
- Modified: 2023-11-08

## Also published as

- [RUSTSEC-2022-0049](https://cve.now/RUSTSEC-2022-0049.md) (RustSec)

## Affected versions

- iana-time-zone (crates.io): from 0.1.43, fixed in 0.1.45

## 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.

## References

- https://github.com/strawlab/iana-time-zone/pull/54
- https://github.com/strawlab/iana-time-zone
- https://rustsec.org/advisories/RUSTSEC-2022-0049.html

Page: https://cve.now/GHSA-3FG9-HCQ5-VXRC

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
