CVE-2017-5941
CRITICAL9.8EPSS 77.9%Code Execution through IIFE in node-serialize
Description
Affected versions of `node-serialize` can be abused to execute arbitrary code via an [immediately invoked function expression](https://en.wikipedia.org/wiki/Immediately-invoked_function_expression) (IIFE) if untrusted user input is passed into `unserialize()`. ## Recommendation There is no direct patch for this issue. The package author has reviewed this advisory, and provided the following recommendation: ``` To avoid the security issues, at least one of the following methods should be taken: 1. Make sure to send serialized strings internally, isolating them from potential hackers. For example, only sending the strings from backend to fronend and always using HTTPS instead of HTTP. 2. Introduce public-key cryptosystems (e.g. RSA) to ensure the strings not being tampered with. ```
Affected packages (1)
- npm/node-serializefrom 0, <= 0.0.4
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
References (8)
- ADVISORYhttps://github.com/advisories/GHSA-q4v7-4rhw-9hqm
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2017-5941
- WEBhttp://packetstormsecurity.com/files/161356/Node.JS-Remote-Code-Execution.html
- WEBhttp://packetstormsecurity.com/files/163222/Node.JS-Remote-Code-Execution.html
- WEBhttps://github.com/luin/serialize/issues/4
- WEBhttps://opsecx.com/index.php/2017/02/08/exploiting-node-js-deserialization-bug-for-remote-code-execution
- WEBhttps://www.npmjs.com/advisories/311
- WEBhttp://www.securityfocus.com/bid/96225