Vulnerability DatabaseRUSTSEC-2023-0074

RUSTSEC-2023-0074
Rust vulnerability analysis and mitigation

Overview

RUSTSEC-2023-0074 is a vulnerability discovered in the Rust zerocopy crate affecting versions from 0.2.2 onwards. The vulnerability involves unsound implementations of Ref's methods (into_ref, into_mut, into_slice, and into_mut_slice) when used with specific Rust core cell types (GitHub Issue).

Technical details

The vulnerability stems from insufficient lifetime guarantees in the implementation of Ref::into_ref and related methods. While the code requires the buffer type B to satisfy lifetime 'a, this proves insufficient when B is core::cell::Ref<[u8]> or core::cell::RefMut<[u8]>. The issue arises because these types only require the underlying RefCell to live for lifetime 'a, while the CoreRef itself may be dropped sooner, leading to potential undefined behavior (GitHub Issue).

Impact

When exploited, this vulnerability can lead to undefined behavior in Rust programs. The impact is demonstrated through proof-of-concept code that shows how the vulnerability allows mutation of memory while a reference to that memory is still considered valid, violating Rust's memory safety guarantees (GitHub Issue).

Mitigation and workarounds

The issue has been fixed in version 0.7.32-1 and later releases. The fix implements a post-monomorphization check that causes code which could trigger this undefined behavior to fail compilation. The fix has been backported to all affected version trains, and affected versions have been yanked from the package registry (GitHub Issue).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22257HIGH8.8
  • RustRust
  • salvo
NoYesJan 08, 2026
CVE-2026-22698HIGH8.7
  • RustRust
  • sm2
NoNoJan 10, 2026
CVE-2026-22699HIGH7.5
  • RustRust
  • sm2
NoNoJan 10, 2026
GHSA-g59m-gf8j-gjf5LOW3.7
  • RustRust
  • aws-sdk-eventbridge
NoYesJan 08, 2026
GHSA-585q-cm62-757jLOW2
  • RustRust
  • mnl
NoNoJan 09, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management