GHSA-2wq5-g96f-mv3v

Suggest an improvement
Source
https://github.com/advisories/GHSA-2wq5-g96f-mv3v
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/09/GHSA-2wq5-g96f-mv3v/GHSA-2wq5-g96f-mv3v.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-2wq5-g96f-mv3v
Published
2024-09-23T20:47:27Z
Modified
2024-09-23T20:47:27Z
Severity
  • 5.1 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
Ouch! allows a segmentation fault due to use of uninitialized memory
Details

When trying to decompress a file using "ouch", we can reach the function "ouch::archive::zip::convertzipdate_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

Affected packages

crates.io / ouch

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.3.1