CVE-2018-25023
Rust vulnerability analysis and mitigation

Overview

The vulnerability (CVE-2018-25023) was discovered in the smallvec crate before version 0.6.13 for Rust. The issue involves the creation of uninitialized values of any type, including reference types, which is considered unsound in Rust's memory safety model (RustSec Advisory, MITRE CVE).

Technical details

The vulnerability stems from the use of mem::uninitialized() to create values of user-supplied type T. This is particularly problematic when T is a reference type, as references in Rust must be non-null and cannot remain uninitialized. The issue has a CVSS 3 Severity Score of 7.5 (High), with network attack vector, low complexity, and no privileges required (Ubuntu Security).

Impact

The vulnerability could lead to memory corruption when dealing with reference types, potentially compromising the memory safety guarantees that Rust provides. The impact primarily affects integrity with no direct effect on confidentiality or availability (Ubuntu Security).

Mitigation and workarounds

The vulnerability was fixed in smallvec version 0.6.13 by replacing the use of mem::uninitialized() with MaybeUninit. Users should upgrade to version 0.6.13 or later to address this security issue (RustSec Advisory, Rust Commit).

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-neptunedata
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