Soundness Violation Affecting iced-x86 package, versions <1.10.3


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.4% (74th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-ICEDX86-1316315
  • published9 Jul 2021
  • disclosed19 May 2021
  • creditUnknown

Introduced: 19 May 2021

CVE-2021-38188  (opens in a new tab)
CWE-657  (opens in a new tab)

How to fix?

Upgrade iced-x86 to version 1.10.3 or higher.

Overview

iced-x86 is an iced-x86 is a blazing fast and correct x86/x64 disassembler, assembler and instruction decoder written in Rust.

Affected versions of this package are vulnerable to Soundness Violation. iced-x86 invoke undefined behavior which may cause soundness issues in crates using the iced_x86::Decoder struct. The Decoder::new() function made a call to slice.get_unchecked(slice.length()) to get the end position of the input buffer. The flaw was fixed with safe logic that does not invoke undefined behavior.

References

CVSS Scores

version 3.1