Remote Code Execution Affecting imagickal package, versions *
Snyk CVSS
Attack Complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Threat Intelligence
Exploit Maturity
Proof of concept
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-JS-IMAGICKAL-1060040
- published 14 Jan 2021
- disclosed 14 Jan 2021
- credit Alexey Solovyev
How to fix?
There is no fixed version for imagickal
.
Overview
imagickal is a node wrapper for ImageMagick commands.
Affected versions of this package are vulnerable to Remote Code Execution. The injection point is in the identify()
function in lib/imagickal.js, which does not validate inputs. The vulnerability is demonstrated by the following PoC:
PoC
var im = require('imagickal');
im.identify('image.jpg;touch HACKED;').then(function (data) {
console.log(data);
});