Ouch! allows a segmentation fault due to use of uninitialized memory
Moderate severity
GitHub Reviewed
Published
Sep 23, 2024
to the GitHub Advisory Database
•
Updated Sep 23, 2024
Description
Published to the GitHub Advisory Database
Sep 23, 2024
Reviewed
Sep 23, 2024
Last updated
Sep 23, 2024
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.
References