{"id":"GHSA-pjh3-jv7w-9jpr","summary":"Command Injection in gm","details":"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.\n\n\n## Recommendation\n\nUpdate to version 1.21.1 or later.","aliases":["CVE-2015-7982"],"modified":"2023-11-08T03:58:01.531987Z","published":"2020-09-01T15:18:55Z","database_specific":{"cwe_ids":["CWE-77"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2020-08-31T18:09:27Z","nvd_published_at":null},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2015-7982"},{"type":"WEB","url":"https://github.com/aheckmann/gm/commit/5f5c77490aa84ed313405c88905eb4566135be31"},{"type":"PACKAGE","url":"https://github.com/aheckmann/gm"},{"type":"WEB","url":"https://www.npmjs.com/advisories/54"}],"affected":[{"package":{"name":"gm","ecosystem":"npm","purl":"pkg:npm/gm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.21.1"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 1.20.0","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-pjh3-jv7w-9jpr/GHSA-pjh3-jv7w-9jpr.json"}}],"schema_version":"1.9.0"}