GHSA-2wq5-g96f-mv3v Ouch! allows a segmentation fault due to use of uninitialized memory
MediumCVSS 5.1
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io ouch(crates.io) | < 0.3.1; >= 0.0.0-0, < 0.3.2-0 | 0.3.1, 0.3.2-0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io ouch(crates.io) | < 0.3.1 | 0.3.1 |
| crates.io ouch(crates.io) | >= 0.0.0-0, < 0.3.2-0 | 0.3.2-0 |
References
- github.com issue-tracking
- github.com product
- rustsec.org vendor-advisory
- crates.io product
- github.com