RUSTSEC-2022-0049

Source
https://rustsec.org/advisories/RUSTSEC-2022-0049
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2022-0049.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2022-0049
Aliases
Published
2022-08-15T12:00:00Z
Modified
2023-11-08T04:14:35.913675Z
Summary
Use after free in MacOS / iOS implementation
Details

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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / iana-time-zone

Package

Name
iana-time-zone
View open source insights on deps.dev
Purl
pkg:cargo/iana-time-zone

Affected ranges

Type
SEMVER
Events
Introduced
0.1.43
Fixed
0.1.45

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [
            "ios",
            "macos"
        ],
        "functions": [
            "iana_time_zone::get_timezone"
        ],
        "arch": []
    }
}

Database specific

{
    "cvss": null,
    "informational": "unsound",
    "categories": [
        "memory-exposure"
    ]
}