Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. ouch
  4. ›
  5. GHSA-2wq5-g96f-mv3v

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

September 23, 2024

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.

References

  • github.com/advisories/GHSA-2wq5-g96f-mv3v
  • github.com/ouch-org/ouch
  • github.com/ouch-org/ouch/issues/707
  • rustsec.org/advisories/RUSTSEC-2024-0374.html

Code Behaviors & Features

Detect and mitigate GHSA-2wq5-g96f-mv3v with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.3.1

Fixed versions

  • 0.3.1

Solution

Upgrade to version 0.3.1 or above.

Source file

cargo/ouch/GHSA-2wq5-g96f-mv3v.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 13 May 2025 00:14:47 +0000.