GHSA-g2q5-5433-rhrf: Rc Embedded Malware Vulnerability

CRITICAL
CWE-506
Published
Advisory Summary

GHSA-g2q5-5433-rhrf is a CRITICAL embedded malware vulnerability (CWE-506: Embedded Malicious Code) affecting Rc libraries in the npm ecosystem. The issue involves embedded malware in rc. Remediation is available in the latest vendor maintenance releases.

GHSA-g2q5-5433-rhrf at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-g2q5-5433-rhrf
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-506: Embedded Malicious Code
Affected Product Rc
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-g2q5-5433-rhrf

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

rc fixed: Latest secure release
npm install rc@Latest secure release
rc fixed: Latest secure release
npm install rc@Latest secure release
rc fixed: Latest secure release
npm install rc@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:

npm ls rc

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-g2q5-5433-rhrf, inspect your project dependencies using npm:

npm ls rc

Analyze the terminal output to locate any version of Rc 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: The npm ls rc command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

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 Rc, 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

The npm package `rc` had versions published with malicious code. Users of affected versions (1.2.9, 1.3.9, and 2.3.9) should downgrade to 1.2.8 as soon as possible and check their systems for suspicious activity. Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

GHSA-g2q5-5433-rhrf Affected Rc Versions

3 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
rc
npm
1.2.9
All 1 versions
1.2.9
None specified
rc
npm
1.3.9
All 1 versions
1.3.9
None specified
rc
npm
2.3.9
All 1 versions
2.3.9
None specified

References

Frequently Asked Questions

What is GHSA-g2q5-5433-rhrf?
GHSA-g2q5-5433-rhrf is a security vulnerability in Rc involving Embedded malware in rc under CWE-506: Embedded Malicious Code.
Which Rc versions are affected?
Affected versions include releases prior to current release patches across affected packages: rc.
What version fixes GHSA-g2q5-5433-rhrf?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is rc affected?
Yes, rc is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-g2q5-5433-rhrf?
GHSA-g2q5-5433-rhrf is classified under CWE-506: Embedded Malicious Code (The product contains code that appears to be malicious in nature.).
How can I check npm dependencies for GHSA-g2q5-5433-rhrf?
Run the dependency tree command: 'npm ls rc'. 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-g2q5-5433-rhrf",
  "modified" : "2022-09-07T22:17:03Z",
  "published" : "2021-11-04T16:24:44Z",
  "aliases" : [ ],
  "summary" : "Embedded malware in rc",
  "details" : "The npm package `rc` had versions published with malicious code. Users of affected versions (1.2.9, 1.3.9, and 2.3.9) should downgrade to 1.2.8 as soon as possible and check their systems for suspicious activity.\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "rc"
    },
    "versions" : [ "1.2.9" ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "rc"
    },
    "versions" : [ "1.3.9" ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "rc"
    },
    "versions" : [ "2.3.9" ]
  } ],
  "references" : [ {
    "type" : "PACKAGE",
    "url" : "https://github.com/dominictarr/rc"
  }, {
    "type" : "WEB",
    "url" : "https://therecord.media/malware-found-in-coa-and-rc-two-npm-packages-with-23m-weekly-downloads"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/package/rc"
  }, {
    "type" : "WEB",
    "url" : "https://www.virustotal.com/gui/file/26451f7f6fe297adf6738295b1dcc70f7678434ef21d8b6aad5ec00beb8a72cf?nocache=1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-506" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-11-04T16:20:31Z",
    "nvd_published_at" : null
  }
}