CVE-2022-25892: Muhammara Denial of Service Vulnerability
HIGHCVE-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
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-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.
npm install muhammara@2.6.1
npm install muhammara@3.1.1
npm install hummus@1.0.111
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
CVE-2022-25892 Affected Muhammara Versions
3 component(s)| 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?
Which Muhammara versions are affected?
What version fixes CVE-2022-25892?
Is muhammara affected?
Is hummus affected?
What is the CVSS score of CVE-2022-25892?
What CWE is associated with CVE-2022-25892?
How can I check npm dependencies for CVE-2022-25892?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}