CVE-2022-24720
published critical CVSS 3.1 · 9.8Improper Input Validation in image_processing
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| janko | — | image_processing< 1.12.2 | Affected | Not stated | GitHub_M |
| Debian | bullseye | ruby-image-processing | Advisory build | 1.10.3-1+deb11u1 | DSA-5310-1 |
| Ubuntu | focal | ruby-image-processing | Advisory build | 1.10.3-1ubuntu0.20.04.1 | USN-6675-1 |
| Ubuntu | jammy | ruby-image-processing | Advisory build | 1.10.3-1ubuntu0.22.04.1 | USN-6675-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| janko | image_processing | < 1.12.2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-20 CWE-20: Improper Input Validation
References
3- https://github.com/janko/image_processing/commit/038e4574e8f4f4b636a62394e09983c71980dada
- https://github.com/janko/image_processing/security/advisories/GHSA-cxf7-qrc5-9446
- DSA-5310 https://www.debian.org/security/2022/dsa-5310
Provider assertions
3GitHub_M · cna
Improper Input Validation in image_processing
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 119260be8ae5b747382cbbc7087ad0af041c19f313f22891c2aea08d97b4d7e9
- Ingested
- 23 Sep 2026, 07:58:57 UTC
- Source record
- Official CVE record