RUSTSEC-2025-0155

Source
https://rustsec.org/advisories/RUSTSEC-2025-0155
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2025-0155.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2025-0155
Published
2025-02-10T12:00:00Z
Modified
2026-03-26T06:30:10.923031Z
Summary
`rands` was removed from crates.io for malicious code
Details

This crate attempted to typosquat the rand crate, and would link in a malware payload on macOS and Linux hosts when built.

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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / rands

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "arch": [],
        "functions": [],
        "os": []
    }
}

Database specific

categories
[
    "malicious"
]
source
"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2025-0155.json"
informational
null
cvss
null