Skip to content
OpenAdvisories
Critical CVE-2015-7982 GHSA-pjh3-jv7w-9jpr

Command Injection in gm

Published Sep 1, 2020 · Updated Nov 8, 2023 · Assigned by GHSA

Description

Versions of `gm` prior to 1.21.1 are affected by a command injection vulnerability. The vulnerability is triggered when user input is passed into `gm.compare()`, which fails to sanitize input correctly before calling the graphics magic binary.

## Recommendation

Update to version 1.21.1 or later.

Affected packages

EcosystemPackageAffectedFixedRecord
npm gm < 1.21.1 1.21.1 GHSA-pjh3-jv7w-9jpr

References