All CVEs / Better-macro Project
CVE-2021-38196Better-macro Project Better-macro
Critical 9.8 No auth needed
Follow: this CVE · Better-macro Project · Better-macro Project Better-macro We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 2.6% probability of exploitation in 30 days · percentile 86
- Auth required
- No
- Published
- Aug 8, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-94
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Better-macro.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | better-macro |
≤ 1.0.4 |
no fixed version | — |
| crates.io | better-macro |
≥ 0.0.0-0 |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-79wf-qcqv-r22r, RUSTSEC-2021-0077). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| better-macro_project | better-macro | ≤ 2021-07-22 |
Official sources
References
Links published by the sources. Open them with care.
- raw.githubusercontent.com Third Party Advisory
- rustsec.org Exploit Issue Tracking Patch