CVE-2022-41957: Hummus Muhammara And Hummus Vulnerable To Vulnerability

HIGH
Advisory Identifier: GHSA-2r7v-cmch-5x26
CVSS 7.5
CWE-690
Published
Advisory Summary

CVE-2022-41957 is a HIGH (CVSS 7.5) muhammara and hummus vulnerable to vulnerability (CWE-690: Unchecked Return Value to NULL Pointer Dereference) affecting Hummus libraries in the npm ecosystem. The issue involves muhammara and hummus vulnerable to unchecked return value to null pointer dereference. Remediation is available by upgrading affected packages to version 3.4.0, 2.6.2.

CVE-2022-41957 at a Glance

CVE Identifier CVE-2022-41957
GHSA Identifier GHSA-2r7v-cmch-5x26
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-690: Unchecked Return Value to NULL Pointer Dereference
Affected Product Hummus
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-41957

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

hummus fixed: Latest secure release
npm install hummus@Latest secure release
muhammara fixed: 3.4.0
npm install muhammara@3.4.0
muhammara fixed: 2.6.2
npm install muhammara@2.6.2
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 hummus

How to Check if You Are Affected

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

npm ls hummus

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

Note: The npm ls hummus 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 Hummus, 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.2, from 3.0.0 and before 3.3.0; 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.4.0 and has been backported to 2.6.2 There is no patch for hummus, currently ### Workarounds Do not process files from untrusted sources or update. Replace hummus with muhammara ### References https://github.com/julianhille/MuhammaraJS/pull/235 https://github.com/julianhille/MuhammaraJS/pull/238

CVE-2022-41957 Affected Hummus Versions

3 component(s)
Fixed Versions:
3.4.02.6.2
Product / Package Ecosystem Affected Versions Fixed Version
hummus
npm
muhammara
npm
≥ 3.0.0
< 3.4.0
3.4.0
muhammara
npm
< 2.6.2
2.6.2

References

Frequently Asked Questions

What is CVE-2022-41957?
CVE-2022-41957 is a security vulnerability in Hummus involving muhammara and hummus vulnerable to Unchecked Return Value to NULL Pointer Dereference under CWE-690: Unchecked Return Value to NULL Pointer Dereference.
Which Hummus versions are affected?
Affected versions include releases prior to 3.4.0, 2.6.2 across affected packages: hummus, muhammara.
What version fixes CVE-2022-41957?
Upgrading to 3.4.0, 2.6.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is hummus affected?
Yes, hummus is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
Is muhammara affected?
Yes, muhammara is affected in releases prior to 3.4.0, 2.6.2. Upgrade your dependency to 3.4.0, 2.6.2 or later.
What is the CVSS score of CVE-2022-41957?
CVE-2022-41957 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-41957?
CVE-2022-41957 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-41957?
Run the dependency tree command: 'npm ls hummus'. 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-2r7v-cmch-5x26",
  "modified" : "2022-12-05T17:37:22Z",
  "published" : "2022-12-05T17:37:22Z",
  "aliases" : [ "CVE-2022-41957" ],
  "summary" : "muhammara and hummus vulnerable to Unchecked Return Value to NULL Pointer Dereference",
  "details" : "### Impact\nThe package muhammara before 2.6.2, from 3.0.0 and before 3.3.0; 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.4.0 and has been backported to 2.6.2\nThere is no patch for hummus, currently\n\n### Workarounds\nDo not process files from untrusted sources or update.\nReplace hummus with muhammara\n\n### References\nhttps://github.com/julianhille/MuhammaraJS/pull/235\nhttps://github.com/julianhille/MuhammaraJS/pull/238",
  "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" : "hummus"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 2.6.2"
    }
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "muhammara"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.4.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "muhammara"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.6.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/julianhille/MuhammaraJS/security/advisories/GHSA-2r7v-cmch-5x26"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-41957"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/julianhille/MuhammaraJS/pull/235"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/julianhille/MuhammaraJS/pull/238"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/julianhille/MuhammaraJS"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-690" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-12-05T17:37:22Z",
    "nvd_published_at" : "2022-11-28T15:15:00Z"
  }
}