CVE-2022-24720
CRITICAL 9.8CVSS 3.1Remote shell execution vulnerability in image_processing
image_processing is an image processing wrapper for libvips and ImageMagick/GraphicsMagick. Prior to version 1.12.2, using the #apply method from image_processing to apply a series of operations that are coming from unsanitized user input allows the attacker to execute shell commands. This method is called internally by Active Storage variants, so Active Storage is vulnerable as well. The vulnerability has been fixed in version 1.12.2 of image_processing. As a workaround, users who process based on user input should always sanitize the user input by allowing only a constrained set of operations.
- Published
- 1 Mar 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-20CWE-78
- Also known as
- GHSA-cxf7-qrc5-9446
- Sources
- NVDJSONOSV GHSA-cxf7-qrc5-9446JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 10.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | image_processing_project | image_processingcpe:2.3:a:image_processing_project:image_processing:*:*:*:*:*:ruby:*:* |
< 1.12.2 | 1.12.2 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* |
= 11.0 | |
| OSV | RubyGems | image_processing | < 1.12.2 | 1.12.2 |
References
- https://github.com/janko/image_processing/commit/038e4574e8f4f4b636a62394e09983c71980dada · Patch, WEB
- https://github.com/janko/image_processing/security/advisories/GHSA-cxf7-qrc5-9446 · Exploit, Vendor Advisory, WEB
- https://www.debian.org/security/2022/dsa-5310 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-24720 · ADVISORY
- https://github.com/janko/image_processing · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/image_processing/CVE-2022-24720.yml · WEB
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 1 Mar 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 1 Mar 2022)