Vulnerabilities in pkg:npm/hummus
PACKAGECVE-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.
pkg:npm/hummus
Vulnerability advisories affecting package pkg:npm/hummus. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-2r7v-cmch-5x26 | CVE-2022-41957 | HIGH | muhammara and hummus vulnerable to Unchecked Return Value to NULL Pointer Dereference |
| GHSA-rcrx-fpjp-mfrw | CVE-2022-39381 | HIGH | Unchecked Return Value to NULL Pointer Dereference in PDFDocumentHandler.cpp |
| GHSA-frp9-2v6r-gj97 | CVE-2022-25885 | HIGH | muhammara and hummus vulnerable to null pointer dereference on bad response object |
| GHSA-9cv5-4wqv-9w94 | CVE-2022-25892 | HIGH | muhammara and hummus vulnerable to denial of service by NULL pointer dereference |
CVE-2022-41957 at a Glance
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).
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.
npm install hummus@Latest secure release
npm install muhammara@3.4.0
npm install muhammara@2.6.2
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
CVE-2022-41957 Affected Hummus Versions
3 component(s)| 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?
Which Hummus versions are affected?
What version fixes CVE-2022-41957?
Is hummus affected?
Is muhammara affected?
What is the CVSS score of CVE-2022-41957?
What CWE is associated with CVE-2022-41957?
How can I check npm dependencies for CVE-2022-41957?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}