{"id":"CVE-2021-38187","aliases":["DEBIAN-CVE-2021-38187","EUVD-2021-1744","GHSA-hc92-9h3m-c39j","RUSTSEC-2021-0065","UBUNTU-CVE-2021-38187"],"status":"published","title":"Incorrect cast in anymap","description":"An issue was discovered in the anymap crate through 0.12.1 for Rust. It violates soundness via conversion of a *u8 to a *u64.","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-12","score":0.01441,"percentile":0.73574,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-681","CWE-704"],"published":"2021-05-07T12:00:00Z","modified":"2026-10-24T10:30:18Z","affected":[{"source":"ghsa","ecosystem":"crates.io","package":"anymap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.12.1"}]}]},{"source":"osv","ecosystem":"Debian:11","package":"rust-anymap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.12.1-1"]},{"source":"osv","ecosystem":"crates.io","package":"anymap","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.12.1"}]}]},{"source":"osv","ecosystem":"crates.io","package":"anymap","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"}]}]}],"products":[{"vendor":"anymap_project","product":"anymap"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0065.html","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","fix","web","advisory","report"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/anymap/RUSTSEC-2021-0065.md","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38187","tags":["advisory"]},{"url":"https://github.com/chris-morgan/anymap/issues/37","tags":["web","report"]},{"url":"https://github.com/advisories/GHSA-hc92-9h3m-c39j"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-38187","tags":["advisory"]},{"url":"https://github.com/chris-morgan/anymap","tags":["package"]},{"url":"https://crates.io/crates/anymap","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2021-38187","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-38187","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-38187","description":"An issue was discovered in the anymap crate through 0.12.1 for Rust. It violates soundness via conversion of a *u8 to a *u64.","status":"published","published":"2021-08-08T05:10:41Z","modified":"2024-08-04T01:37:16.256Z","updated_at":"2026-11-02T14:33:07.697752Z"}],"euvd":[{"id":"EUVD-2021-1744","description":"An issue was discovered in the anymap crate through 0.12.1 for Rust. It violates soundness via conversion of a *u8 to a *u64.","status":"published","published":"2021-08-08T05:10:41Z","modified":"2024-08-04T01:37:16Z","updated_at":"2026-11-03T03:24:25.244479Z"}],"ghsa":[{"id":"GHSA-hc92-9h3m-c39j","title":"Incorrect cast in anymap","description":"An issue was discovered in the anymap crate through 0.12.1 for Rust. It violates soundness via conversion of a *u8 to a *u64.","status":"published","published":"2021-08-25T20:55:45Z","modified":"2023-02-01T05:06:04Z","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-681","CWE-704"],"updated_at":"2026-11-02T14:36:36.66596Z"}],"nvd":[{"id":"CVE-2021-38187","description":"An issue was discovered in the anymap crate through 0.12.1 for Rust. It violates soundness via conversion of a *u8 to a *u64.","status":"published","published":"2021-08-08T06:15:08.817Z","modified":"2026-06-17T04:01:43.25Z","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"}],"cwes":["CWE-681"],"updated_at":"2026-11-02T14:06:56.562207Z"}],"osv":[{"id":"CVE-2021-38187","description":"An issue was discovered in the anymap crate through 0.12.1 for Rust. It violates soundness via conversion of a *u8 to a *u64.","status":"published","published":"2021-08-08T06:15:08.817Z","modified":"2026-10-24T10:30:18.566300495Z","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"}],"updated_at":"2026-11-02T15:44:20.843843Z"},{"id":"DEBIAN-CVE-2021-38187","description":"An issue was discovered in the anymap crate through 0.12.1 for Rust. It violates soundness via conversion of a *u8 to a *u64.","status":"published","published":"2021-08-08T06:15:08.817Z","modified":"2026-08-27T23:04:08.663675741Z","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"}],"updated_at":"2026-11-02T15:45:35.521549Z"},{"id":"GHSA-hc92-9h3m-c39j","title":"Incorrect cast in anymap","description":"An issue was discovered in the anymap crate through 0.12.1 for Rust. It violates soundness via conversion of a *u8 to a *u64.","status":"published","published":"2021-08-25T20:55:45Z","modified":"2026-09-10T03:49:08.055825059Z","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-681","CWE-704"],"updated_at":"2026-11-02T15:46:48.920784Z"},{"id":"UBUNTU-CVE-2021-38187","description":"An issue was discovered in the anymap crate through 0.12.1 for Rust. It violates soundness via conversion of a *u8 to a *u64.","status":"withdrawn","published":"2021-08-08T06:15:00Z","modified":"2026-03-13T17:52:27.222843Z","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"}],"updated_at":"2026-11-02T15:54:28.526929Z"},{"id":"RUSTSEC-2021-0065","title":"anymap is unmaintained.","description":"The `anymap` crate does not appear to be maintained, and the most recent\npublished version 0.12.1 includes a soundness bug. This has been\n[fixed](https://github.com/chris-morgan/anymap/pull/32) a few years ago, but\nwas never released.","status":"published","published":"2021-05-07T12:00:00Z","modified":"2023-11-08T04:06:25.677781Z","updated_at":"2026-11-02T15:53:39.492624Z"}]}}
