CVE-2021-32673: Reg keygen git hash plugin Remote Command Execution Vulnerability
HIGHCVE-2021-32673 is a HIGH (CVSS 8.8) remote command execution vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Reg keygen git hash plugin libraries in the npm ecosystem. The issue involves remote command execution in reg-keygen-git-hash-plugin. Remediation is available by upgrading affected packages to version 0.10.16.
CVE-2021-32673 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:L).
How to Fix CVE-2021-32673
To remediate this vulnerability, upgrade all affected Reg keygen git hash plugin 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 reg-keygen-git-hash-plugin@0.10.16
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls reg-keygen-git-hash-plugin
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2021-32673, inspect your project dependencies using npm:
npm ls reg-keygen-git-hash-plugin
Analyze the terminal output to locate any version of Reg keygen git hash plugin in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.10.16), your application is affected.
Note: The npm ls reg-keygen-git-hash-plugin 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-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In Reg keygen git hash plugin, 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
CVE-2021-32673 Affected Reg keygen git hash plugin Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
reg-keygen-git-hash-plugin
|
npm |
< 0.10.16
|
0.10.16
|
References
Frequently Asked Questions
What is CVE-2021-32673?
Which Reg keygen git hash plugin versions are affected?
What version fixes CVE-2021-32673?
Is reg-keygen-git-hash-plugin affected?
What is the CVSS score of CVE-2021-32673?
What CWE is associated with CVE-2021-32673?
How can I check npm dependencies for CVE-2021-32673?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-49q3-8867-5wmp",
"modified" : "2021-06-08T15:31:31Z",
"published" : "2021-06-08T18:47:06Z",
"aliases" : [ "CVE-2021-32673" ],
"summary" : "Remote Command Execution in reg-keygen-git-hash-plugin",
"details" : "### Impact\n\n`reg-keygen-git-hash-plugin` through 0.10.15 allow remote attackers to execute of arbitrary commands.\n\n### Patches\n\nUpgrade to version 0.10.16 or later.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n- Open an issue in [reg-viz/reg-suit](https://github.com/reg-viz/reg-suit)\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "reg-keygen-git-hash-plugin"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.10.16"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/reg-viz/reg-suit/security/advisories/GHSA-49q3-8867-5wmp"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-32673"
}, {
"type" : "WEB",
"url" : "https://github.com/reg-viz/reg-suit/commit/f84ad9c7a22144d6c147dc175c52756c0f444d87"
}, {
"type" : "WEB",
"url" : "https://github.com/reg-viz/reg-suit/releases/tag/v0.10.16"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/package/reg-keygen-git-hash-plugin"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-78", "CWE-94" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-06-08T15:31:31Z",
"nvd_published_at" : "2021-06-08T17:15:00Z"
}
}