CVE-2021-38188 json
Incorrect buffer size calculation in iced-x86
published 2021-05-19 5 y ago modified 2026-06-17 4 mo ago also GHSA-jjx5-3f36-6927 , RUSTSEC-2021-0068 , EUVD-2021-1777
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.3%
- EPSS 1.3% chance of exploitation in 30 days, percentile 70%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- crates.io iced-x86 1.10.4-0, 1.11.0
Exploit prediction
1.27% chance of exploitation in the next 30 days, higher than 70% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- rustsec.org https://rustsec.org/advisories/RUSTSEC-2021-0068.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | iced-x86 | <1.11.0 >=0.0.0-0, <1.10.4-0 |
1.11.0 1.10.4-0 |
Classification
- Weakness
-
- CWE-131 Incorrect Calculation of Buffer Size
References
-
rustsec.org
/advisories/RUSTSEC-2021-0068.html
web, exploit, issue-tracking, patch, third-party-advisory, advisory
-
github.com
/icedland/iced/commit/3c607a003e03b773108401d109167d1840487dce
web
-
raw.githubusercontent.com
/rustsec/advisory-db/main/crates/iced-x86/RUSTSEC-2021-0068.md
third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-38188
advisory
-
github.com
/icedland/iced/issues/168
web, report
-
github.com
/icedland/iced
package
-
crates.io
/crates/iced-x86
package
Sources
- CVE List CVE-2021-38188
- GitHub Advisory GHSA-jjx5-3f36-6927
- NVD CVE-2021-38188
- OSV RUSTSEC-2021-0068
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.