CVE-2021-38196 Remote code execution in better-macro
Remote attackers can execute arbitrary code via proc-macros in the better-macro crate, which is a proof-of-concept with no legitimate purpose.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-38196?
CVE-2021-38196 is a critical code injection vulnerability in n/a, published on 8 Aug 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-94
Which versions are affected by CVE-2021-38196?
3 open source packages ship an affected version, including better-macro. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
better-macro crates.io | All versions to 1.0.4 | None |
better-macro crates.io | All versions to 1.0.4 | None |
better-macro crates.io | From 0.0.0-0 | None |
Products include Better-Macro Project Better-Macro.
How do I fix CVE-2021-38196?
No fix has been published for CVE-2021-38196 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2021-38196 being exploited?
There is no known exploitation of CVE-2021-38196 in the wild and no public exploit code.
Sources
Also known as GHSA-79wf-qcqv-r22r, RUSTSEC-2021-0077.