CVE-2022-25885: Hummus Muhammara And Hummus Vulnerable To Vulnerability
HIGHCVE-2022-25885 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 null pointer dereference on bad response object. Remediation is available by upgrading affected packages to version 1.0.111, 2.6.0.
CVE-2022-25885 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-25885
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@1.0.111
npm install muhammara@2.6.0
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-25885, 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 1.0.111), 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-25885 Affected Hummus Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
hummus
|
npm |
≥ 1.0.0
< 1.0.111
|
1.0.111
|
|
muhammara
|
npm |
< 2.6.0
|
2.6.0
|
References
Frequently Asked Questions
What is CVE-2022-25885?
Which Hummus versions are affected?
What version fixes CVE-2022-25885?
Is hummus affected?
Is muhammara affected?
What is the CVSS score of CVE-2022-25885?
What CWE is associated with CVE-2022-25885?
How can I check npm dependencies for CVE-2022-25885?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-frp9-2v6r-gj97",
"modified" : "2022-11-02T16:06:48Z",
"published" : "2022-11-01T12:00:30Z",
"aliases" : [ "CVE-2022-25885" ],
"summary" : "muhammara and hummus vulnerable to null pointer dereference on bad response object",
"details" : "The package muhammara before 2.6.0 and the package hummus before 1.0.111 are vulnerable to Denial of Service (DoS) when PDFStreamForResponse() is used with invalid data.",
"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" : "1.0.0"
}, {
"fixed" : "1.0.111"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.0.110"
}
}, {
"package" : {
"ecosystem" : "npm",
"name" : "muhammara"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.6.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-25885"
}, {
"type" : "WEB",
"url" : "https://github.com/galkahana/HummusJS/issues/439"
}, {
"type" : "WEB",
"url" : "https://github.com/julianhille/MuhammaraJS/issues/188"
}, {
"type" : "WEB",
"url" : "https://github.com/galkahana/HummusJS/commit/a9bf2520ab5abb69f9328906e406fbebfb36159a"
}, {
"type" : "WEB",
"url" : "https://github.com/julianhille/MuhammaraJS/commit/0a6427eec82ef2978995e453de2dc0d6224dd46c"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/julianhille/MuhammaraJS"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JS-HUMMUS-3091139"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JS-MUHAMMARA-3091137"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-690" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-11-01T21:55:25Z",
"nvd_published_at" : "2022-11-01T05:15:00Z"
}
}