Advisory

RUSTSEC-2022-0049

Also known as: GHSA-3fg9-hcq5-vxrc

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.

Severity

Not rated by the source.

Dates

Published
2022-08-15 12:00 UTC
Modified
2023-11-08 04:14 UTC

Affected packages and fixes

iana-time-zone

crates.io · All systems

Affected

  • introduced 0.1.43, fixed 0.1.45 (semver)

Fixed versions

0.1.45

Fix

  • Fixed version 0.1.45
    cargo update -p iana-time-zone --precise 0.1.45

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences