Skip to content
OpenAdvisories
Medium GHSA-2wq5-g96f-mv3v RUSTSEC-2024-0374

Ouch! allows a segmentation fault due to use of uninitialized memory

Published Sep 23, 2024 · Updated Oct 28, 2025 · Assigned by GHSA

Description

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.

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io ouch < 0.3.1 0.3.1 GHSA-2wq5-g96f-mv3v
crates.io ouch >= 0.0.0-0, < 0.3.2-0 0.3.2-0 RUSTSEC-2024-0374

References