Vulnerabilities in pkg:npm/nadesiko3

PACKAGE
Advisory Identifier: GHSA-m8r5-7wf4-63mw
Advisory Summary

CVE-2022-41642 is a CRITICAL (CVSS 9.8) nadesiko3 os command injection vulnerability vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Nadesiko3 libraries in the npm ecosystem. The issue involves nadesiko3 os command injection vulnerability. Remediation is available by upgrading affected packages to version 3.3.69.

3 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/nadesiko3

3 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/nadesiko3. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-m8r5-7wf4-63mw CVE-2022-41642 CRITICAL Nadesiko3 OS Command Injection vulnerability
GHSA-7249-8x22-4rg4 CVE-2022-42496 CRITICAL nadesiko3 vulnerable to OS Command Injection
GHSA-x2jx-w3wm-9p3p CVE-2022-41777 MODERATE nadesiko3 allows remote attacker to inject invalid value to decodeURIComponent of nako3edit

CVE-2022-41642 at a Glance

CVE Identifier CVE-2022-41642
GHSA Identifier GHSA-m8r5-7wf4-63mw
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Product Nadesiko3
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2022-41642

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

nadesiko3 fixed: 3.3.69
npm install nadesiko3@3.3.69
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 nadesiko3

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2022-41642, inspect your project dependencies using npm:

npm ls nadesiko3

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

Note: The npm ls nadesiko3 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 Nadesiko3, 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

OS command injection vulnerability in Nadesiko3 (PC Version) v3.3.68 and earlier allows a remote attacker to execute an arbitrary OS command when processing compression and decompression on the product. Release notes for versions 3.3.62 and 3.3.69 both link to patches for this particular issue. The [JPCERT/CC](https://jvn.jp/en/jp/JVN56968681/index.html) advisory lists versions 3.3.68 and prior as vulnerable, and the most recent patch for this issue is tagged with version 3.3.69.

CVE-2022-41642 Affected Nadesiko3 Versions

1 component(s)
Fixed Versions:
3.3.69
Product / Package Ecosystem Affected Versions Fixed Version
nadesiko3
npm
< 3.3.69
3.3.69

References

Frequently Asked Questions

What is CVE-2022-41642?
CVE-2022-41642 is a security vulnerability in Nadesiko3 involving Nadesiko3 OS Command Injection vulnerability under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
Which Nadesiko3 versions are affected?
Affected versions include releases prior to 3.3.69 across affected packages: nadesiko3.
What version fixes CVE-2022-41642?
Upgrading to 3.3.69 (or the latest patched release for your respective branch) resolves the vulnerability.
Is nadesiko3 affected?
Yes, nadesiko3 is affected in releases prior to 3.3.69. Upgrade your dependency to 3.3.69 or later.
What is the CVSS score of CVE-2022-41642?
CVE-2022-41642 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2022-41642?
CVE-2022-41642 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-2022-41642?
Run the dependency tree command: 'npm ls nadesiko3'. 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-m8r5-7wf4-63mw",
  "modified" : "2022-12-06T22:26:30Z",
  "published" : "2022-12-05T06:30:22Z",
  "aliases" : [ "CVE-2022-41642" ],
  "summary" : "Nadesiko3 OS Command Injection vulnerability",
  "details" : "OS command injection vulnerability in Nadesiko3 (PC Version) v3.3.68 and earlier allows a remote attacker to execute an arbitrary OS command when processing compression and decompression on the product.\n\nRelease notes for versions 3.3.62 and 3.3.69 both link to patches for this particular issue. The [JPCERT/CC](https://jvn.jp/en/jp/JVN56968681/index.html) advisory lists versions 3.3.68 and prior as vulnerable, and the most recent patch for this issue is tagged with version 3.3.69.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "nadesiko3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.3.69"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.3.68"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-41642"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kujirahand/nadesiko3/issues/1325"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kujirahand/nadesiko3/issues/1347"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kujirahand/nadesiko3/commit/124871c064cfc65cdcd83205637e84fc246c76df"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kujirahand/nadesiko3/commit/56ccfb2f9cceaec83e6a9d3024c3ba8c54ebe1a4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kujirahand/nadesiko3/commit/61a70792752a75b7f71df214e98a236721ea3fa6"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/kujirahand/nadesiko3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kujirahand/nadesiko3/releases/tag/3.3.62"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kujirahand/nadesiko3/releases/tag/3.3.69"
  }, {
    "type" : "WEB",
    "url" : "https://jvn.jp/en/jp/JVN56968681/index.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-78" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-12-06T22:26:30Z",
    "nvd_published_at" : "2022-12-05T04:15:00Z"
  }
}