Vulnerability DatabaseRUSTSEC-2024-0002

RUSTSEC-2024-0002
Rust vulnerability analysis and mitigation

Overview

RUSTSEC-2024-0002 is a vulnerability discovered in the vmm-sys-util crate for Rust, affecting versions 0.5.0 through 0.12.0. The issue lies in the FamStructWrapper::deserialize implementation, which lacks proper bound checks during deserialization. The vulnerability was disclosed on January 2, 2024, and impacts the memory safety of applications using this crate (GitHub Advisory).

Technical details

The vulnerability stems from the FamStructWrapper::deserialize implementation not verifying that the length stored in the header matches the flexible array length during deserialization. This mismatch in lengths can potentially lead to out-of-bounds memory access through Rust-safe methods. The issue has been assigned a CVSS v3.1 base score of 5.7 (Moderate) with a vector string of CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L, indicating local attack vector with low complexity and no required privileges (GitHub Advisory).

Impact

The vulnerability can result in out-of-bounds memory access, potentially leading to memory corruption or information disclosure. The EPSS score of 0.148% (52nd percentile) suggests a relatively low likelihood of exploitation within 30 days of disclosure (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.12.0 of the vmm-sys-util crate. The fix includes implementing a check that verifies the lengths of compared flexible arrays are equal for any deserialized header and aborting deserialization if they don't match. Additionally, the API was modified so that header length can only be modified through Rust-unsafe code, preventing out-of-bounds memory access from Rust-safe code (GitHub Advisory).

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-22698HIGH8.7
  • RustRust
  • sm2
NoNoJan 10, 2026
CVE-2026-22700HIGH7.5
  • RustRust
  • sm2
NoNoJan 10, 2026
CVE-2026-22699HIGH7.5
  • RustRust
  • sm2
NoNoJan 10, 2026
CVE-2026-22705MEDIUM6.4
  • RustRust
  • ml-dsa
NoYesJan 10, 2026
CVE-2025-15504MEDIUM4.8
  • PythonPython
  • lief
NoYesJan 10, 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