Vulnerabilities in pkg:maven/org.webjars.npm/dicer

PACKAGE
Advisory Identifier: GHSA-wm7h-9275-46v2
Advisory Summary

CVE-2022-24434 is a HIGH (CVSS 7.5) crash vulnerability (CWE-248: Uncaught Exception) affecting Dicer libraries in the npm ecosystem. The issue involves crash in headerparser in dicer. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.webjars.npm/dicer

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.webjars.npm/dicer. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-wm7h-9275-46v2 CVE-2022-24434 HIGH Crash in HeaderParser in dicer

CVE-2022-24434 at a Glance

CVE Identifier CVE-2022-24434
GHSA Identifier GHSA-wm7h-9275-46v2
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-248: Uncaught Exception
Affected Product Dicer
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.5

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:N/I:N/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 None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2022-24434

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

dicer fixed: Latest secure release
npm install dicer@Latest secure release
org.webjars.npm:dicer fixed: Latest secure release
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>dicer</artifactId>
    <version>Latest secure release</version>
</dependency>
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 dicer

How to Check if You Are Affected

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

npm ls dicer

Analyze the terminal output to locate any version of Dicer 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 dicer 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-248: Uncaught Exception, where an exception is thrown from a function, but it is not caught. In Dicer, 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

This affects all versions of the package `dicer`. A malicious attacker can send a modified form to the server and crash the Node.js service. A complete denial of service can be achieved by sending the malicious form in a loop.

CVE-2022-24434 Affected Dicer Versions

2 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
dicer
npm
≤ 0.3.1
org.webjars.npm:dicer
Maven
≤ 0.3.0

References

Frequently Asked Questions

What is CVE-2022-24434?
CVE-2022-24434 is a security vulnerability in Dicer involving Crash in HeaderParser in dicer under CWE-248: Uncaught Exception.
Which Dicer versions are affected?
Affected versions include releases prior to current release patches across affected packages: dicer, org.webjars.npm:dicer.
What version fixes CVE-2022-24434?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is dicer affected?
Yes, dicer is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2022-24434?
CVE-2022-24434 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2022-24434?
CVE-2022-24434 is classified under CWE-248: Uncaught Exception (An exception is thrown from a function, but it is not caught.).
How can I check npm dependencies for CVE-2022-24434?
Run the dependency tree command: 'npm ls dicer'. 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-wm7h-9275-46v2",
  "modified" : "2023-08-28T14:22:54Z",
  "published" : "2022-05-21T00:00:25Z",
  "aliases" : [ "CVE-2022-24434" ],
  "summary" : "Crash in HeaderParser in dicer",
  "details" : "This affects all versions of the package `dicer`. A malicious attacker can send a modified form to the server and crash the Node.js service. A complete denial of service can be achieved by sending the malicious form in a loop.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "dicer"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.3.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.webjars.npm:dicer"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.3.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-24434"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mscdex/busboy/issues/250"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mscdex/dicer/pull/22"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mscdex/dicer/commit/b7fca2e93e8e9d4439d8acc5c02f5e54a0112dac"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mscdex/dicer"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2838865"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JS-DICER-2311764"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-248" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-05-25T20:22:41Z",
    "nvd_published_at" : "2022-05-20T20:15:00Z"
  }
}