CVE-2022-24720

Improper Input Validation in image_processing

Published Mar 1, 2022 CVSS 3.1 · 9.8 Critical EPSS 2.7% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

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
History
Type Values Removed Values Added
Metrics ssvc

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 22, 2025, 6:21 PM
Reserved
Feb 10, 2022, 12:00 AM
Status
Modified
Published
Mar 1, 2022, 11:15 PM
Modified
Jun 17, 2026, 4:32 AM