Remote Code Execution Affecting imagickal package, versions *


0.0
critical

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

Introduced: 14 Jan 2021

CVE NOT AVAILABLE CWE-58 Open this link 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); });