# GHSA-2wq5-g96f-mv3v: Ouch! allows a segmentation fault due to use of uninitialized memory

- Severity: Medium (CVSS:4.0, scored by GitHub) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-09-22T12:00:00.000Z
- Modified: 2025-10-28T06:29:22.652Z
- 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.

(As written by GitHub Advisory Database.)

## Affected

- ouch (crates.io): before 0.3.1; from 0.0.0-0 before 0.3.2-0

## References

- <https://github.com/ouch-org/ouch/issues/707> (report, web)
- <https://github.com/ouch-org/ouch> (package)
- <https://rustsec.org/advisories/RUSTSEC-2024-0374.html> (advisory, web)
- <https://crates.io/crates/ouch> (package)

## Sources

- GitHub Advisory Database: [GHSA-2wq5-g96f-mv3v](https://github.com/advisories/GHSA-2wq5-g96f-mv3v), CC-BY-4.0, modified 2025-10-28
- RustSec Advisory Database: [RUSTSEC-2024-0374](https://rustsec.org/advisories/RUSTSEC-2024-0374.html), CC0-1.0, modified 2025-10-28

---

Page: https://cve.day/GHSA-2wq5-g96f-mv3v · Whole record: https://cve.day/GHSA-2wq5-g96f-mv3v.json · Rebuilt by cve.day 2026-11-25T22:56:43.216Z
