{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-38196","published":"2021-08-08T06:15:09.153000Z","last_modified":"2026-06-17T04:01:44.367000Z","status":"Modified","cvss":{"version":"3.1","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","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-94"],"cpes":[{"criteria":"cpe:2.3:a:better-macro_project:better-macro:*:*:*:*:*:rust:*:*","part":"a","vendor":"better-macro_project","product":"better-macro","version_end_including":"2021-07-22"}],"cpes_truncated":false,"vendors":["better-macro_project"],"products":["better-macro_project/better-macro"],"epss":{"score":0.02567,"percentile":0.85891,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-79wf-qcqv-r22r","ecosystem":"crates.io","name":"better-macro","purl":"pkg:cargo/better-macro","ranges":[{"introduced":"0","last_affected":"1.0.4"}],"versions":[],"versions_truncated":false},{"advisory":"RUSTSEC-2021-0077","ecosystem":"crates.io","name":"better-macro","purl":"pkg:cargo/better-macro","ranges":[{"introduced":"0.0.0-0"}],"versions":[],"versions_truncated":false}],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2021-38196/","html_en":"/en/cve/CVE-2021-38196/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-38196","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-38196"},"untrusted":{"vendor_name":"Better-macro Project","product_name":"Better-macro","desc_en":"An issue was discovered in the better-macro crate through 2021-07-22 for Rust. It intentionally demonstrates that remote attackers can execute arbitrary code via proc-macros, and otherwise has no legitimate purpose.","affected":[],"references":[{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/better-macro/RUSTSEC-2021-0077.md","tags":["Third Party Advisory"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0077.html","tags":["Exploit","Issue Tracking","Patch","Third Party Advisory"]}]}}