# RUSTSEC-2023-0124: bit-flags was removed from crates.io for malicious code

- Database: RustSec
- Published: 2023-12-22
- Modified: 2026-03-26

## Affected versions

- bit-flags (crates.io): all versions

## Description

This crate was part of a typosquatting malware cluster published by the user
`alexrichton` to run an arbitrary malware payload on Windows hosts.

This advisory is to retrospectively document this attempted attack. The version
information and download records of the malicious crate are no longer
available. The related malicious crates have been yanked, and the malicious
account has been banned.

## References

- https://crates.io/crates/bit-flags
- https://rustsec.org/advisories/RUSTSEC-2023-0124.html

Page: https://cve.now/RUSTSEC-2023-0124

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
