Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. iced-x86
  4. ›
  5. CVE-2021-38188

CVE-2021-38188: Incorrect buffer size calculation in iced-x86

August 25, 2021

An issue was discovered in the iced-x86 crate through 1.10.3 for Rust. In Decoder::new(), slice.get_unchecked(slice.length()) is used unsafely.

References

  • github.com/advisories/GHSA-jjx5-3f36-6927
  • github.com/icedland/iced
  • github.com/icedland/iced/commit/3c607a003e03b773108401d109167d1840487dce
  • github.com/icedland/iced/issues/168
  • nvd.nist.gov/vuln/detail/CVE-2021-38188
  • rustsec.org/advisories/RUSTSEC-2021-0068.html

Code Behaviors & Features

Detect and mitigate CVE-2021-38188 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.11.0

Fixed versions

  • 1.11.0

Solution

Upgrade to version 1.11.0 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-131: Incorrect Calculation of Buffer Size

Source file

cargo/iced-x86/CVE-2021-38188.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:44 +0000.