# RUSTSEC-2026-0265: `proc-macro1` was removed from crates.io due to malicious code

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-08-20T12:00:00.000Z
- Modified: 2026-08-21T06:30:03.173Z

## Description

It was reported `proc-macro1` contained a build script that would download a
malicious payload.

This crate had two versions, both published on 2026-08-20. The crate was
removed from crates.io and related user accounts were locked.

This crate was used as part of a malware campaign targeted at users of
`arrayref`, which was downloaded 2,285 times before being removed; see
[the `arrayref` advisory][arrayref-advisory] for more detail.

Thanks to the Research Team at Nextron Systems GmbH for reporting this to the
Rust security response working group, and thanks to Emily Albini for coordinating
with the crates.io and infra-admin teams.

[arrayref-advisory]: https://rustsec.org/advisories/RUSTSEC-2026-0260.html

(As written by RustSec Advisory Database.)

## Affected

- proc-macro1 (crates.io): from 0.0.0-0

## References

- <https://crates.io/crates/proc-macro1> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0265.html> (advisory)
- <https://blog.rust-lang.org/2026/08/20/supply-chain-attack-on-arrayref> (web)

## Sources

- RustSec Advisory Database: [RUSTSEC-2026-0265](https://rustsec.org/advisories/RUSTSEC-2026-0265.html), CC0-1.0, modified 2026-08-21

---

Page: https://cve.day/RUSTSEC-2026-0265 · Whole record: https://cve.day/RUSTSEC-2026-0265.json · Rebuilt by cve.day 2026-11-25T22:56:43.401Z
