An issue was discovered in the better-macro crate through 2021-07-22 for Rust.
Priority MEDIUM 47CWE-94Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
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.
Why it matters now
EPSS 0.02567 85th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix No fix listed No fixed version in the sources yet
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | better-macro (crates.io) | up to 1.0.4 | — | No fix listed | GHSA-79wf-qcqv-r22r |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- better-macro (crates.io) Vendor— Affected up to 1.0.4 Fixed in — No fix listed GHSA-79wf-qcqv-r22r
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:better-macro_project:better-macro:*:*:*:*:*:rust:*:* | up to 2021-07-22 | Vulnerable | Better-macro Project |
- cpe:2.3:a:better-macro_project:better-macro:*:*:*:*:*:rust:*:* Versions up to 2021-07-22 Vulnerable ·Better-macro Project
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2021-38196
- 2026-10-03 Alias added: GHSA-79wf-qcqv-r22r
References
Advisory 2
Sources
- CVE-2021-38196 · CVE Program
- CVE-2021-38196 · NVD
- FIRST EPSS
- GHSA-79wf-qcqv-r22r · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences