RUSTSEC-2026-0466: `build_dep` was removed from crates.io for malicious code
Published 2026-11-06 · Updated 2026-11-10
Summary
The crates.io package 'build_dep' was identified as malicious and removed from the registry for attempting to exfiltrate build environment telemetry to an arbitrary URL. Security teams and Rust developers should immediately verify if this package is present in their dependencies and remove it.
Who is affected
The vulnerability affects any project that included 'build_dep' as a dependency. The malicious code executed during the build process, potentially exposing sensitive data from the build environment to an external third party.
Exploitability
The severity, CVSS vector, and EPSS scores are not documented. CISA has not identified this as a Known Exploited Vulnerability.
Remediation
- Identify and remove 'build_dep' from your Cargo.toml and Cargo.lock files.
- Verify that no fixed version is available, as the crate has been removed from crates.io.
How to check your project
- Run 'grep -r "build_dep" .' in the project root to search for the package name in Cargo.toml files.
- Examine the 'Cargo.lock' file to determine if 'build_dep' was ever resolved as a dependency.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| crates.io | build_dep |
>= 0.0.0-0 (no fix published) | not published | - |
FAQ
Was this vulnerability actively exploited?
There is no evidence of actual usage or exploitation provided in the record.
Is there a patch or a secure version available?
No, the crate was removed from the registry, and no fixed version was published.
How did the malicious code execute?
The crate attempted to send telemetry from the build environment whenever the code was compiled.
Original advisory description
References
- PACKAGE https://crates.io/crates/build_dep
- ADVISORY https://rustsec.org/advisories/RUSTSEC-2026-0466.html
Source records: RUSTSEC-2026-0466 (OSV.dev).