Remote Code Execution Affecting imagickal package, versions *


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

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 IDSNYK-JS-IMAGICKAL-1060040
  • published14 Jan 2021
  • disclosed14 Jan 2021
  • creditAlexey Solovyev

Introduced: 14 Jan 2021

CVE NOT AVAILABLE CWE-58  (opens in a new tab)

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); });

CVSS Scores

version 3.1