CVE-2021-32673: Reg keygen git hash plugin Remote Command Execution Vulnerability

HIGH
Advisory Identifier: GHSA-49q3-8867-5wmp
CVSS 8.8
CWE-78 CWE-94
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2021-32673
GHSA Identifier GHSA-49q3-8867-5wmp
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Product Reg keygen git hash plugin
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Adjacent (AV:A)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability Low (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.

reg-keygen-git-hash-plugin fixed: 0.10.16
npm install reg-keygen-git-hash-plugin@0.10.16
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 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

### Impact `reg-keygen-git-hash-plugin` through 0.10.15 allow remote attackers to execute of arbitrary commands. ### Patches Upgrade to version 0.10.16 or later. ### For more information If you have any questions or comments about this advisory: - Open an issue in [reg-viz/reg-suit](https://github.com/reg-viz/reg-suit)

CVE-2021-32673 Affected Reg keygen git hash plugin Versions

1 component(s)
Fixed Versions:
0.10.16
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?
CVE-2021-32673 is a security vulnerability in Reg keygen git hash plugin involving Remote Command Execution in reg-keygen-git-hash-plugin under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
Which Reg keygen git hash plugin versions are affected?
Affected versions include releases prior to 0.10.16 across affected packages: reg-keygen-git-hash-plugin.
What version fixes CVE-2021-32673?
Upgrading to 0.10.16 (or the latest patched release for your respective branch) resolves the vulnerability.
Is reg-keygen-git-hash-plugin affected?
Yes, reg-keygen-git-hash-plugin is affected in releases prior to 0.10.16. Upgrade your dependency to 0.10.16 or later.
What is the CVSS score of CVE-2021-32673?
CVE-2021-32673 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:L.
What CWE is associated with CVE-2021-32673?
CVE-2021-32673 is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (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.).
How can I check npm dependencies for CVE-2021-32673?
Run the dependency tree command: 'npm ls reg-keygen-git-hash-plugin'. 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-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"
  }
}