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

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.27%, higher than 70% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-05-19T12:00:00.000Z
- Modified: 2026-06-17T04:01:43.377Z
- Also known as: GHSA-jjx5-3f36-6927, RUSTSEC-2021-0068
- Weaknesses: CWE-131
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- iced-x86 (crates.io): before 1.11.0; from 0.0.0-0 before 1.10.4-0
- iced-x86_project iced-x86: up to 1.10.3

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2021-0068.html> (exploit, advisory, issue-tracking, patch, third-party-advisory, web)
- <https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/iced-x86/RUSTSEC-2021-0068.md> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-38188> (advisory)
- <https://github.com/icedland/iced/issues/168> (report, web)
- <https://github.com/icedland/iced/commit/3c607a003e03b773108401d109167d1840487dce> (web)
- <https://github.com/icedland/iced> (package)
- <https://crates.io/crates/iced-x86> (package)

## Sources

- CVE List: [CVE-2021-38188](https://www.cve.org/CVERecord?id=CVE-2021-38188), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-jjx5-3f36-6927](https://github.com/advisories/GHSA-jjx5-3f36-6927), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2021-0068](https://rustsec.org/advisories/RUSTSEC-2021-0068.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2021-38188](https://nvd.nist.gov/vuln/detail/CVE-2021-38188), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-38188 · Whole record: https://cve.day/CVE-2021-38188.json · Rebuilt by cve.day 2026-11-25T22:58:03.053Z
