Advisory

RUSTSEC-2024-0374

Also known as: GHSA-2wq5-g96f-mv3v

Summary

Segmentation fault due to use of uninitialized memory

Details

When trying to decompress a file using "ouch", we can reach the function "ouch::archive::zip::convert_zip_date_time".
In the function, there is a unsafe function, "transmute". Once the "transmute" function is called to convert the type of "month" object,
the address of the object is changed to the uninitialized memory region.
After that, when other function tries to dereference "month", segmentation fault occurs.

Severity

Not rated by the source.

Dates

Published
2024-09-22 12:00 UTC
Modified
2025-10-28 06:29 UTC

Affected packages and fixes

ouch

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.3.2-0 (semver)

Fixed versions

0.3.2-0

Fix

  • Fixed version 0.3.2-0
    cargo update -p ouch --precise 0.3.2-0

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