GHSA-2wq5-g96f-mv3v
MEDIUMOuch! allows a segmentation fault due to use of uninitialized memory
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.
- Published
- 22 Sep 2024
- Last modified
- 28 Oct 2025
- Also known as
- RUSTSEC-2024-0374
- Sources
- OSVJSONOSV RUSTSEC-2024-0374JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | ouch | < 0.3.1 | 0.3.1 |
| OSV | crates.io | ouch | >= 0.0.0-0, < 0.3.2-0 | 0.3.2-0 |
References
- https://github.com/ouch-org/ouch/issues/707 · WEB, REPORT
- https://github.com/ouch-org/ouch · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2024-0374.html · WEB, ADVISORY
- https://crates.io/crates/ouch · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 Sep 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 Sep 2024)