Vulnerability DatabaseRUSTSEC-2021-0068

RUSTSEC-2021-0068
Rust vulnerability analysis and mitigation

Overview

An issue was discovered in the iced-x86 crate through version 1.10.3 for Rust programming language. The vulnerability involves unsafe usage of slice.get_unchecked(slice.length()) in the Decoder::new() function, which could lead to undefined behavior (RustSec Advisory, NVD).

Technical details

The vulnerability exists in the Decoder::new() function where unsafe code uses data.get_unchecked(data.len()) to access memory. This operation is considered undefined behavior in Rust, as accessing an index equal to the slice's length is out-of-bounds, even if the resulting reference is not used. The issue was identified through Miri, a Rust interpreter for detecting undefined behavior (GitHub Issue).

Impact

The vulnerability has been assigned a CVSS v3.1 base score of 9.8 (CRITICAL), indicating severe potential impact. The vulnerability could lead to undefined behavior in Rust applications consuming this library, potentially resulting in memory corruption or other security-related issues (NVD).

Mitigation and workarounds

The issue was fixed in a code change that removed the unsafe get_unchecked call. Users should upgrade to a version newer than 1.10.3 to resolve the vulnerability (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

GHSA-2fjw-whxm-9v4qCRITICAL9.3
  • RustRust
  • nftnl
NoYesNov 25, 2025
CVE-2025-66017HIGH8.2
  • RustRust
  • cggmp21
NoYesNov 25, 2025
GHSA-mj73-j457-8x9qLOW2.7
  • RustRust
  • maxminddb
NoYesDec 02, 2025
GHSA-pq5v-rwp8-p7gmLOW2.7
  • RustRust
  • rtvm-interpreter
NoNoDec 02, 2025
RUSTSEC-2025-0132N/AN/A
  • RustRust
  • maxminddb
NoYesNov 28, 2025

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