Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. rustdecimal
  4. ›
  5. GHSA-7pwq-f4pq-78gm

GHSA-7pwq-f4pq-78gm: `rustdecimal` is a malicious crate

August 11, 2022

The Rust Security Response WG and the crates.io team [were notified][1] on 2022-05-02 of the existence of the malicious crate rustdecimal, which contained malware. The crate name was intentionally similar to the name of the popular [rust_decimal][2] crate, hoping that potential victims would misspell its name (an attack called “typosquatting”).

To protect the security of the ecosystem, the crates.io team permanently removed the crate from the registry as soon as it was made aware of the malware. An analysis of all the crates on crates.io was also performed, and no other crate with similar code patterns was found.

Keep in mind that the [rust_decimal][2] crate was not compromised, and it is still safe to use.

References

  • github.com/advisories/GHSA-7pwq-f4pq-78gm
  • github.com/paupino/rust-decimal/issues/514
  • groups.google.com/g/rustlang-security-announcements/c/5DVtC8pgJLw?pli=1
  • raw.globalsecuritydatabase.org/GSD-2022-1002520
  • rustsec.org/advisories/RUSTSEC-2022-0042.html

Code Behaviors & Features

Detect and mitigate GHSA-7pwq-f4pq-78gm with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions

Solution

Unfortunately, there is no solution available yet.

Source file

cargo/rustdecimal/GHSA-7pwq-f4pq-78gm.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:47 +0000.