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.
Advisories
Source ID Title
Debian DSA Debian DSA DSA-5310-1 ruby-image-processing security update
EUVD EUVD EUVD-2022-1412 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.
Github GHSA Github GHSA GHSA-cxf7-qrc5-9446 Remote shell execution vulnerability in image_processing
Ubuntu USN Ubuntu USN USN-6675-1 ImageProcessing vulnerability
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Tue, 22 Apr 2025 19:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2025-04-22T18:21:17.800Z

Reserved: 2022-02-10T00:00:00.000Z

Link: CVE-2022-24720

cve-icon Vulnrichment

Updated: 2024-08-03T04:20:49.868Z

cve-icon NVD

Status : Modified

Published: 2022-03-01T23:15:08.993

Modified: 2024-11-21T06:50:56.890

Link: CVE-2022-24720

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.