Live threats

All CVEs / Better-macro Project

CVE-2021-38196Better-macro Project Better-macro

Critical 9.8 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Better-macro.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
better-macro_projectbetter-macro≤ 2021-07-22

Official sources

References

Links published by the sources. Open them with care.