{"id":"CVE-2021-38188","aliases":["CVE-2021-38188","GHSA-jjx5-3f36-6927","RUSTSEC-2021-0068"],"related":[],"kind":"vulnerability","state":"published","title":"Incorrect buffer size calculation in iced-x86","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"Versions of iced-x86 <= 1.10.3 invoke undefined behavior which may cause soundness\nissues in crates using the `iced_x86::Decoder` struct. The `Decoder::new()` function\nmade a call to `slice.get_unchecked(slice.length())` to get the end position of \nthe input buffer. The flaw was fixed with safe logic that does not invoke undefined\nbehavior.\n\nMore details can be found at <https://github.com/icedland/iced/issues/168>.","format":"markdown","source":"rustsec"},{"lang":"es","text":"Se ha detectado un problema en la crate iced-x86 versiones hasta 1.10.3 para Rust. En la función Decoder::new(), slice.get_unchecked(slice.length()) es usado de forma no segura","source":"nvd"}],"published":"2021-05-19T12:00:00.000Z","modified":"2026-06-17T04:01:43.377Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-131"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.11.0"}],"ecosystem":"crates.io","package":"iced-x86","purl":"pkg:cargo/iced-x86","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"1.10.4-0"}],"ecosystem":"crates.io","package":"iced-x86","purl":"pkg:cargo/iced-x86","source":"rustsec"},{"ranges":[{"status":"affected","lastAffected":"1.10.3"}],"vendor":"iced-x86_project","product":"iced-x86","cpe":"cpe:2.3:a:iced-x86_project:iced-x86:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0068.html","tags":["advisory","exploit","issue-tracking","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/iced-x86/RUSTSEC-2021-0068.md","tags":["third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38188","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/icedland/iced/issues/168","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/icedland/iced/commit/3c607a003e03b773108401d109167d1840487dce","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/icedland/iced","tags":["package"],"sources":["ghsa"]},{"url":"https://crates.io/crates/iced-x86","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-38188","url":"https://www.cve.org/CVERecord?id=CVE-2021-38188","licence":"CVE Terms of Use","modified":"2024-08-04T01:37:16.171Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jjx5-3f36-6927","url":"https://github.com/advisories/GHSA-jjx5-3f36-6927","licence":"CC-BY-4.0","modified":"2023-11-08T04:06:25.737Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2021-0068","url":"https://rustsec.org/advisories/RUSTSEC-2021-0068.html","licence":"CC0-1.0","modified":"2023-11-08T04:06:25.737Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-38188","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38188","licence":"Public domain","modified":"2026-06-17T04:01:43.377Z"}],"updatedAt":"2026-11-25T22:58:03.053Z","epss":{"score":0.01275,"percentile":0.7076,"date":"2026-12-01T12:00:22.000Z"}}