{"schemaVersion":3,"id":"CVE-2021-38187","aliases":["UBUNTU-CVE-2021-38187","DEBIAN-CVE-2021-38187","CGA-5mf4-r3cw-8rhj","CGA-r3wq-5j8v-8864","GHSA-hc92-9h3m-c39j","RUSTSEC-2021-0065"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-08-08T05:10:41.000Z","modified":"2024-08-04T01:37:16.256Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Crates.io","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01441,"percentile":0.7281,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01441},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01441,"percentile":0.7281}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01441,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01441,"percentile":0.7281}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_B9154162F19A1ED9","name":"Exploit Reference (rustsec.org)","source":"reference","url":"https://rustsec.org/advisories/RUSTSEC-2021-0065.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-681","name":"Incorrect Conversion between Numeric Types","description":"When converting from one data type to another, such as long to integer, data can be omitted or translated in a way that produces unexpected values. If the resulting values are used in a sensitive context, then dangerous behaviors may occur.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/681.html"}],"affected":[{"vendor":"anymap_project","product":"anymap","name":"anymap","label":"anymap","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 0.12.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 0.12.1","eol":null,"hubHref":"/vendor/anymap_project/anymap"},{"vendor":"chainguard","product":"buck2","name":"buck2","label":"buck2","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/buck2","purlType":"apk","versions":[{"text":"< 20250102-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 20250102-r3","eol":null,"hubHref":null},{"vendor":"wolfi","product":"buck2","name":"buck2","label":"buck2","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/buck2","purlType":"apk","versions":[{"text":"< 20250102-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 20250102-r3","eol":null,"hubHref":null},{"vendor":"Crates.Io","product":"anymap","name":"anymap","label":"anymap","ecosystem":"Crates.Io","cpePart":null,"purl":"pkg:cargo/anymap","purlType":"cargo","versions":[{"text":"≤ 0.12.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.0.0-0","noFixRecorded":true,"fixedIn":null}],"versionsText":"≤ 0.12.1 | ≥ 0.0.0-0 (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"rust-anymap","name":"rust-anymap","label":"rust-anymap","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/rust-anymap","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rust-anymap","name":"rust-anymap","label":"rust-anymap","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rust-anymap","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0065.html","label":"rustsec.org/advisories/RUSTSEC-2021-0065.html","hostname":"rustsec.org","tags":["X Refsource MISC","REPORT","FIX","WEB","Advisory","Exploit","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/anymap/RUSTSEC-2021-0065.md","label":"raw.githubusercontent.com/rustsec/advisory-db/main/crates/anymap/RUSTSEC-2021-0065.md","hostname":"raw.githubusercontent.com","tags":["X Refsource MISC","REPORT","Advisory","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-38187","label":"ubuntu.com/security/CVE-2021-38187","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-38187","label":"www.cve.org/CVERecord?id=CVE-2021-38187","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-38187","label":"security-tracker.debian.org/tracker/CVE-2021-38187","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38187","label":"nvd.nist.gov/vuln/detail/CVE-2021-38187","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/chris-morgan/anymap/issues/37","label":"github.com/chris-morgan/anymap/issues/37","hostname":"github.com","tags":["WEB","REPORT"]},{"url":"https://github.com/chris-morgan/anymap","label":"github.com/chris-morgan/anymap","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://crates.io/crates/anymap","label":"crates.io/crates/anymap","hostname":"crates.io","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-3G73-2CVC-VCMJ","CGA-7X36-FPV3-2VFJ"]},"timeline":[{"kind":"published","date":"2021-08-08T05:10:41.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T01:37:16.256Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T18:13:50.924Z","stale":false,"partial":false}}