Skip to main content
← All vulnerabilities
CVE-2022-24720GHSA-CXF7-QRC5-9446

Improper Input Validation in image_processing

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.12.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • janko image_processing

    fixed in 1.12.2

  • image_processingRubyGems

    fixed in 1.12.2

References 3

GitHub · janko/image_processing

debian.org