GHSA-vgr2-r5hm-f6gf: Sha rst `sha-rst` Was Removed From Crates.io Vulnerability

CRITICAL
CWE-506
Published
Advisory Summary

GHSA-vgr2-r5hm-f6gf is a CRITICAL `sha-rst` was removed from crates.io vulnerability (CWE-506: Embedded Malicious Code) affecting Sha rst libraries in the crates.io ecosystem. The issue involves `sha-rst` was removed from crates.io for malicious code. Remediation is available in the latest vendor maintenance releases.

GHSA-vgr2-r5hm-f6gf at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-vgr2-r5hm-f6gf
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-506: Embedded Malicious Code
Affected Product Sha rst
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-vgr2-r5hm-f6gf

To remediate this vulnerability, upgrade all affected Sha rst dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

sha-rst fixed: Latest secure release
Upgrade sha-rst to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for sha-rst

How to Check if You Are Affected

To determine whether your application is affected by GHSA-vgr2-r5hm-f6gf, inspect your project dependencies for Sha rst:

inspect dependencies for sha-rst

Analyze the terminal output to locate any version of Sha rst in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-506: Embedded Malicious Code, where the product contains code that appears to be malicious in nature. In Sha rst, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

This crate was used as a dependency by `finch_cli_rust` and `finch-rst` and contained a malware payload to exfiltrate credentials. The malicious crate had 1 version published on 2025-12-08 and had been downloaded 22 times. Other than the other crates above that were part of the attack, no other crates depedended on this crate. Thanks to Matthias Zepper of [NGI Sweden](https://ngisweden.scilifelab.se/) for reporting this to the crates.io team!

GHSA-vgr2-r5hm-f6gf Affected Sha rst Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
sha-rst
crates.io

References

Frequently Asked Questions

What is GHSA-vgr2-r5hm-f6gf?
GHSA-vgr2-r5hm-f6gf is a security vulnerability in Sha rst involving `sha-rst` was removed from crates.io for malicious code under CWE-506: Embedded Malicious Code.
Which Sha rst versions are affected?
Affected versions include releases prior to current release patches across affected packages: sha-rst.
What version fixes GHSA-vgr2-r5hm-f6gf?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is sha-rst affected?
Yes, sha-rst is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-vgr2-r5hm-f6gf?
GHSA-vgr2-r5hm-f6gf is classified under CWE-506: Embedded Malicious Code (The product contains code that appears to be malicious in nature.).
How can I check crates.io dependencies for GHSA-vgr2-r5hm-f6gf?
Run the dependency tree command: 'inspect dependencies for sha-rst'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-vgr2-r5hm-f6gf",
  "modified" : "2026-02-12T22:11:08Z",
  "published" : "2026-02-12T22:11:08Z",
  "aliases" : [ ],
  "summary" : "`sha-rst` was removed from crates.io for malicious code",
  "details" : "This crate was used as a dependency by `finch_cli_rust` and `finch-rst` and contained a malware payload to exfiltrate credentials.\n\nThe malicious crate had 1 version published on 2025-12-08 and had been downloaded 22 times. Other than the other crates above that were part of the attack, no other crates depedended on this crate.\n\nThanks to Matthias Zepper of [NGI Sweden](https://ngisweden.scilifelab.se/) for reporting this to the crates.io team!",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "sha-rst"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2025-0151.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-506" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-12T22:11:08Z",
    "nvd_published_at" : null
  }
}