GHSA-2wq5-g96f-mv3v
JSON

medium

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

Severity
medium CVSS:4.0 by GitHub
Published
Last changed
Also known as
RUSTSEC-2024-0374

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

Product or packageVersionsReported by
ouch (crates.io)before 0.3.1, from 0.0.0-0 before 0.3.2-0GitHub Advisory Database, RustSec Advisory Database

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-2wq5-g96f-mv3v changed 2025-10-28CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2024-0374 changed 2025-10-28CC0-1.0