CVE-2022-25892: Muhammara Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-9cv5-4wqv-9w94
CVSS 7.5
CWE-690
Published
Advisory Summary

CVE-2022-25892 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-690: Unchecked Return Value to NULL Pointer Dereference) affecting Muhammara libraries in the npm ecosystem. The issue involves muhammara and hummus vulnerable to denial of service by null pointer dereference. Remediation is available by upgrading affected packages to version 2.6.1, 3.1.1, 1.0.111.

CVE-2022-25892 at a Glance

CVE Identifier CVE-2022-25892
GHSA Identifier GHSA-9cv5-4wqv-9w94
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-690: Unchecked Return Value to NULL Pointer Dereference
Affected Product Muhammara
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-25892

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

muhammara fixed: 2.6.1
npm install muhammara@2.6.1
muhammara fixed: 3.1.1
npm install muhammara@3.1.1
hummus fixed: 1.0.111
npm install hummus@1.0.111
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 muhammara

How to Check if You Are Affected

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

npm ls muhammara

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

Note: The npm ls muhammara 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-690: Unchecked Return Value to NULL Pointer Dereference, where the product does not check for an error after calling a function that can return with a null pointer if the function fails, which leads to a resultant null pointer dereference. In Muhammara, 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 The package muhammara before 2.6.1, from 3.0.0 and before 3.1.1; all versions of package hummus are vulnerable to Denial of Service (DoS) when supplied with a maliciously crafted PDF file to be parsed. ### Patches It has been patched in 3.1.1 and has been backported to 2.6.1 Hummus has a patch in 1.0.111. ### Workarounds Do not process files from untrusted sources or update. ### References https://nvd.nist.gov/vuln/detail/CVE-2022-25892 https://github.com/galkahana/HummusJS/issues/463 https://github.com/julianhille/MuhammaraJS/issues/214 https://github.com/julianhille/MuhammaraJS/commit/1890fb555eaf171db79b73fdc3ea543bbd63c002 https://github.com/julianhille/MuhammaraJS/commit/90b278d09f16062d93a4160ef0a54d449d739c51 https://security.snyk.io/vuln/SNYK-JS-HUMMUS-3091138 https://security.snyk.io/vuln/SNYK-JS-MUHAMMARA-3060320

CVE-2022-25892 Affected Muhammara Versions

3 component(s)
Fixed Versions:
2.6.13.1.11.0.111
Product / Package Ecosystem Affected Versions Fixed Version
muhammara
npm
< 2.6.1
2.6.1
muhammara
npm
≥ 3.0.0
< 3.1.1
3.1.1
hummus
npm
< 1.0.111
1.0.111

References

Frequently Asked Questions

What is CVE-2022-25892?
CVE-2022-25892 is a security vulnerability in Muhammara involving muhammara and hummus vulnerable to denial of service by NULL pointer dereference under CWE-690: Unchecked Return Value to NULL Pointer Dereference.
Which Muhammara versions are affected?
Affected versions include releases prior to 2.6.1, 3.1.1, 1.0.111 across affected packages: muhammara, hummus.
What version fixes CVE-2022-25892?
Upgrading to 2.6.1, 3.1.1, 1.0.111 (or the latest patched release for your respective branch) resolves the vulnerability.
Is muhammara affected?
Yes, muhammara is affected in releases prior to 2.6.1, 3.1.1. Upgrade your dependency to 2.6.1, 3.1.1 or later.
Is hummus affected?
Yes, hummus is affected in releases prior to 1.0.111. Upgrade your dependency to 1.0.111 or later.
What is the CVSS score of CVE-2022-25892?
CVE-2022-25892 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-25892?
CVE-2022-25892 is classified under CWE-690: Unchecked Return Value to NULL Pointer Dereference (The product does not check for an error after calling a function that can return with a NULL pointer if the function fails, which leads to a resultant NULL pointer dereference.).
How can I check npm dependencies for CVE-2022-25892?
Run the dependency tree command: 'npm ls muhammara'. 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-9cv5-4wqv-9w94",
  "modified" : "2022-11-02T16:01:26Z",
  "published" : "2022-11-01T12:00:30Z",
  "aliases" : [ "CVE-2022-25892" ],
  "summary" : "muhammara and hummus vulnerable to denial of service by NULL pointer dereference",
  "details" : "### Impact\nThe package muhammara before 2.6.1, from 3.0.0 and before 3.1.1; all versions of package hummus are vulnerable to Denial of Service (DoS) when supplied with a maliciously crafted PDF file to be parsed.\n\n### Patches\nIt has been patched in 3.1.1 and has been backported to 2.6.1\nHummus has a patch in 1.0.111.\n\n### Workarounds\nDo not process files from untrusted sources or update.\n\n### References\nhttps://nvd.nist.gov/vuln/detail/CVE-2022-25892\nhttps://github.com/galkahana/HummusJS/issues/463\nhttps://github.com/julianhille/MuhammaraJS/issues/214\nhttps://github.com/julianhille/MuhammaraJS/commit/1890fb555eaf171db79b73fdc3ea543bbd63c002\nhttps://github.com/julianhille/MuhammaraJS/commit/90b278d09f16062d93a4160ef0a54d449d739c51\nhttps://security.snyk.io/vuln/SNYK-JS-HUMMUS-3091138\nhttps://security.snyk.io/vuln/SNYK-JS-MUHAMMARA-3060320\n",
  "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" : "muhammara"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.6.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "muhammara"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.1.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "hummus"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.111"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/julianhille/MuhammaraJS/security/advisories/GHSA-f64j-4x74-p42m"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-25892"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/galkahana/HummusJS/issues/463"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/julianhille/MuhammaraJS/issues/214"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/galkahana/HummusJS/commit/a9bf2520ab5abb69f9328906e406fbebfb36159a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/julianhille/MuhammaraJS/commit/1890fb555eaf171db79b73fdc3ea543bbd63c002"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/julianhille/MuhammaraJS/commit/90b278d09f16062d93a4160ef0a54d449d739c51"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/julianhille/MuhammaraJS"
  }, {
    "type" : "WEB",
    "url" : "https://security.snyk.io/vuln/SNYK-JS-HUMMUS-3091138"
  }, {
    "type" : "WEB",
    "url" : "https://security.snyk.io/vuln/SNYK-JS-MUHAMMARA-3060320"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-690" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-11-01T21:54:15Z",
    "nvd_published_at" : "2022-11-01T05:15:00Z"
  }
}