{"id":"CVE-2021-38188","aliases":["EUVD-2021-1777","GHSA-jjx5-3f36-6927","RUSTSEC-2021-0068"],"status":"published","title":"Incorrect buffer size calculation in iced-x86","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.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.01275,"percentile":0.70307,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-131"],"published":"2021-05-19T12:00:00Z","modified":"2026-06-17T04:01:43Z","fixes":[{"ecosystem":"crates.io","package":"iced-x86","fixed_in":["1.11.0","1.10.4-0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"iced-x86","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.11.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"iced-x86","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.11.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"iced-x86","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"1.10.4-0"}]}]}],"products":[{"vendor":"iced-x86_project","product":"iced-x86"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0068.html","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","web","advisory"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/iced-x86/RUSTSEC-2021-0068.md","tags":["x_refsource_MISC","x_transferred","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38188","tags":["advisory"]},{"url":"https://github.com/icedland/iced/issues/168","tags":["web","report"]},{"url":"https://github.com/icedland/iced/commit/3c607a003e03b773108401d109167d1840487dce","tags":["web"]},{"url":"https://github.com/advisories/GHSA-jjx5-3f36-6927"},{"url":"https://github.com/icedland/iced","tags":["package"]},{"url":"https://crates.io/crates/iced-x86","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-38188","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.","status":"published","published":"2021-08-08T05:10:26Z","modified":"2024-08-04T01:37:16.171Z","updated_at":"2026-11-02T14:33:07.349244Z"}],"euvd":[{"id":"EUVD-2021-1777","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.","status":"published","published":"2021-08-08T05:10:26Z","modified":"2024-08-04T01:37:16Z","updated_at":"2026-11-03T03:24:25.244479Z"}],"ghsa":[{"id":"GHSA-jjx5-3f36-6927","title":"Incorrect buffer size calculation in iced-x86","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.","status":"published","published":"2021-08-25T20:55:47Z","modified":"2023-02-03T05:06:15Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-131"],"updated_at":"2026-11-02T14:36:43.439065Z"}],"nvd":[{"id":"CVE-2021-38188","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.","status":"published","published":"2021-08-08T06:15:08.857Z","modified":"2026-06-17T04:01:43.377Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"updated_at":"2026-11-02T14:06:56.562207Z"}],"osv":[{"id":"GHSA-jjx5-3f36-6927","title":"Incorrect buffer size calculation in iced-x86","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.","status":"published","published":"2021-08-25T20:55:47Z","modified":"2023-11-08T04:06:25.737471Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-131"],"updated_at":"2026-11-02T15:46:50.687609Z"},{"id":"RUSTSEC-2021-0068","title":"Soundness issue in `iced-x86` versions \u003c= 1.10.3","description":"Versions of iced-x86 \u003c= 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 \u003chttps://github.com/icedland/iced/issues/168\u003e.","status":"published","published":"2021-05-19T12:00:00Z","modified":"2023-11-08T04:06:25.737471Z","updated_at":"2026-11-02T15:53:39.492624Z"}]}}
