Rust advisories / sha-rust
Vulnerability CriticalRUSTSEC-2025-0146 · sha-rust
RUSTSEC-2025-0146: `sha-rust` was removed from crates.io for malicious code
Short answerA security vulnerability in the sha-rust crate: `sha-rust` was removed from crates.io for malicious code. GitHub rates it Critical. No fixed version: replace the crate or remove the affected code path.
| Crate | sha-rust |
|---|---|
| Type | Vulnerability (malicious) |
| Affected versions | Every version. |
| Fixed in | none |
| Severity | Critical (GitHub rating) |
| Published | 2025-12-05 |
| Last changed | 2026-03-17 |
| Also known as | GHSA-3mmg-7c2q-8938 |
What to do
- Find who pulls it in:
cargo tree -i sha-rust. - Avoid the affected API, or replace the crate.
Details from the advisory
It appeared to be attempting to steal credentials from local files.
References
- Package: crates.io/crates/sha-rust
- Advisory: rustsec.org/advisories/RUSTSEC-2025-0146.html
- Web: blog.rust-lang.org/2025/12/05/crates.io-malicious-crates-finch-rust-and-sha-rust/
- Web: socket.dev/blog/malicious-crate-mimicking-finch-exfiltrates-credentials
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 →Also worth your time
Did this answer your question?