Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. zerocopy
  4. ›
  5. GHSA-3mv5-343c-w2qg

GHSA-3mv5-343c-w2qg: Ref methods into_ref, into_mut, into_slice, and into_slice_mut are unsound when used with cell::Ref or cell::RefMut

December 15, 2023 (updated February 12, 2024)

This advisory is also published as RUSTSEC-2023-0074.

The Ref methods into_ref, into_mut, into_slice, and into_slice_mut are unsound and may allow safe code to exhibit undefined behavior when used with Ref<B, T> where B is cell::Ref or cell::RefMut. Note that these methods remain sound when used with B types other than cell::Ref or cell::RefMut.

See https://github.com/google/zerocopy/issues/716 for a more in-depth analysis.

The current plan is to yank the affected versions soon. See https://github.com/google/zerocopy/issues/679 for more detail.

References

  • github.com/advisories/GHSA-3mv5-343c-w2qg
  • github.com/google/zerocopy
  • github.com/google/zerocopy/issues/679
  • github.com/google/zerocopy/issues/716
  • github.com/google/zerocopy/security/advisories/GHSA-3mv5-343c-w2qg
  • rustsec.org/advisories/RUSTSEC-2023-0074.html

Code Behaviors & Features

Detect and mitigate GHSA-3mv5-343c-w2qg 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 starting from 0.2.2 before 0.2.9, all versions starting from 0.3.0 before 0.3.2, all versions starting from 0.4.0 before 0.4.1, version 0.4.0, all versions starting from 0.5.0 before 0.5.2, all versions starting from 0.6.0 before 0.6.6, all versions starting from 0.7.0 before 0.7.31

Fixed versions

  • 0.2.9
  • 0.3.2
  • 0.4.1
  • 0.5.2
  • 0.6.6
  • 0.7.31

Solution

Upgrade to versions 0.2.9, 0.3.2, 0.4.1, 0.5.2, 0.6.6, 0.7.31 or above.

Source file

cargo/zerocopy/GHSA-3mv5-343c-w2qg.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:15:30 +0000.