# CVE-2022-24720: Improper Input Validation in image_processing

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.69%, higher than 86% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-03-01T00:00:00.000Z
- Modified: 2026-06-17T04:32:22.093Z
- Also known as: GHSA-cxf7-qrc5-9446
- Weaknesses: CWE-20, CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- janko image_processing: < 1.12.2
- image_processing (RubyGems): before 1.12.2
- image_processing_project image_processing: before 1.12.2
- debian debian_linux: 11.0

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 10.0 High `AV:N/AC:L/Au:N/C:C/I:C/A:C`

## References

- <https://github.com/janko/image_processing/security/advisories/GHSA-cxf7-qrc5-9446> (exploit, vendor-advisory, web)
- <https://github.com/janko/image_processing/commit/038e4574e8f4f4b636a62394e09983c71980dada> (patch, web)
- <https://www.debian.org/security/2022/dsa-5310> (third-party-advisory, vendor-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)

## Sources

- CVE List: [CVE-2022-24720](https://www.cve.org/CVERecord?id=CVE-2022-24720), CVE Terms of Use, modified 2025-04-22
- GitHub Advisory Database: [GHSA-cxf7-qrc5-9446](https://github.com/advisories/GHSA-cxf7-qrc5-9446), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-24720](https://nvd.nist.gov/vuln/detail/CVE-2022-24720), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-24720 · Whole record: https://cve.day/CVE-2022-24720.json · Rebuilt by cve.day 2026-11-25T22:58:09.879Z
