Email me

Rust advisories / better-macro

Vulnerability HighRUSTSEC-2021-0077 · better-macro

RUSTSEC-2021-0077: `better-macro` has deliberate RCE to prove a point

Short answerA security vulnerability in the better-macro crate: `better-macro` has deliberate RCE to prove a point. GitHub rates it High. No fixed version: replace the crate or remove the affected code path.

Cratebetter-macro
TypeVulnerability (code-execution)
Affected versionsEvery version.
Fixed innone
SeverityHigh (GitHub rating)
Published2021-07-22
Last changed2023-11-08
Also known asCVE-2021-38196, GHSA-79wf-qcqv-r22r
Affected functionsbetter_macro::println

What to do

  1. Find who pulls it in: cargo tree -i better-macro.
  2. Avoid the affected API (better_macro::println), or replace the crate.

Details from the advisory

better-macro is a fake crate which is "Proving A Point" that proc-macros can run arbitrary code. This is not a particularly novel or interesting observation.

It currently opens https://github.com/raycar5/better-macro/blob/master/doc/hi.md which doesn't appear to have any malicious content, but there's no guarantee that will remain the case.

This crate has no useful functionality, and should not be used.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Up next

Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ