CVE-2021-38196
Remote code execution in better-macro
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (high).
Description
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 packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| cargo::GitHub Security Advisory Rust | better-macro | no fix listed |
References
- https://github.com/raycar5/better-macro
- https://github.com/raycar5/better-macro/blob/24ff1702397b9c19bbfa4c660e2316cd77d3b900/src/lib.rs#L36-L38
- https://nvd.nist.gov/vuln/detail/CVE-2021-38196
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/better-macro/RUSTSEC-2021-0077.md
- https://rustsec.org/advisories/RUSTSEC-2021-0077.html