GHSA-g2q5-5433-rhrf: Rc Embedded Malware Vulnerability
CRITICALGHSA-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
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.
npm install rc@Latest secure release
npm install rc@Latest secure release
npm install rc@Latest secure release
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
GHSA-g2q5-5433-rhrf Affected Rc Versions
3 component(s)References
Frequently Asked Questions
What is GHSA-g2q5-5433-rhrf?
Which Rc versions are affected?
What version fixes GHSA-g2q5-5433-rhrf?
Is rc affected?
What CWE is associated with GHSA-g2q5-5433-rhrf?
How can I check npm dependencies for GHSA-g2q5-5433-rhrf?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}