Advisory

RUSTSEC-2021-0077

Also known as: CVE-2021-38196, GHSA-79wf-qcqv-r22r

Summary

better-macro has deliberate RCE to prove a point

Details

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.

Severity

Not rated by the source.

Dates

Published
2021-07-22 12:00 UTC
Modified
2023-11-08 04:06 UTC

Affected packages and fixes

better-macro

crates.io · All systems

Affected

  • introduced 0.0.0-0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences