GHSA-2wq5-g96f-mv3v
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 package | Versions | Reported by |
|---|---|---|
| ouch (crates.io) | before 0.3.1, from 0.0.0-0 before 0.3.2-0 | GitHub Advisory Database, RustSec Advisory Database |
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-2wq5-g96f-mv3v changed 2025-10-28 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2024-0374 changed 2025-10-28 | CC0-1.0 |