Skip to content

CVE-2022-24720 Improper Input Validation in image_processing

CriticalCVSS 9.8 EPSS 2.7% PoC
Published
Updated
Exploit status
Proof-of-concept only
CISA SSVC
Proof of concept public · automatable: yes · technical impact: total
Technology
UbuntuDebian

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.

Upgrade path

7 packages: 5 fixed.

PackageAffectedFixed inStatus
debian/ruby-image-processing(Debian 12) < 1.10.3-2 1.10.3-2 Fixed
image processing project image processing < 1.12.2 1.12.2 Fixed
rubygems image_processing(RubyGems) < 1.12.2; = 0.2.1; = 0.2.2; = 0.2.3 +38 more 1.12.2 Fixed
ubuntu/ruby-image-processing(Ubuntu 20.04) < 1.10.3-1ubuntu0.20.04.1; = 1.10.3-1 1.10.3-1ubuntu0.20.04.1 Fixed
ubuntu/ruby-image-processing(Ubuntu 22.04) < 1.10.3-1ubuntu0.22.04.1; = 1.10.3-1 1.10.3-1ubuntu0.22.04.1 Fixed
debian linux = 11.0 No fix listed Versions listed
janko image_processing = < 1.12.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
rubygems image_processing(RubyGems) < 1.12.2 1.12.2
rubygems image_processing(RubyGems) = 0.10.0 No fix listed
rubygems image_processing(RubyGems) = 0.10.1 No fix listed
rubygems image_processing(RubyGems) = 0.10.2 No fix listed
rubygems image_processing(RubyGems) = 0.10.3 No fix listed
rubygems image_processing(RubyGems) = 0.11.0 No fix listed
rubygems image_processing(RubyGems) = 0.11.1 No fix listed
rubygems image_processing(RubyGems) = 0.11.2 No fix listed
rubygems image_processing(RubyGems) = 0.2.1 No fix listed
rubygems image_processing(RubyGems) = 0.2.2 No fix listed
rubygems image_processing(RubyGems) = 0.2.3 No fix listed
rubygems image_processing(RubyGems) = 0.2.4 No fix listed
rubygems image_processing(RubyGems) = 0.2.5 No fix listed
rubygems image_processing(RubyGems) = 0.3.0 No fix listed
rubygems image_processing(RubyGems) = 0.4.0 No fix listed
rubygems image_processing(RubyGems) = 0.4.1 No fix listed
rubygems image_processing(RubyGems) = 0.4.2 No fix listed
rubygems image_processing(RubyGems) = 0.4.3 No fix listed
rubygems image_processing(RubyGems) = 0.4.4 No fix listed
rubygems image_processing(RubyGems) = 0.4.5 No fix listed
rubygems image_processing(RubyGems) = 0.9.0 No fix listed
rubygems image_processing(RubyGems) = 1.0.0 No fix listed
rubygems image_processing(RubyGems) = 1.1.0 No fix listed
rubygems image_processing(RubyGems) = 1.10.0 No fix listed
rubygems image_processing(RubyGems) = 1.10.1 No fix listed
Show 25 more
ProductAffected versionsFixed in
rubygems image_processing(RubyGems) = 1.10.2 No fix listed
rubygems image_processing(RubyGems) = 1.10.3 No fix listed
rubygems image_processing(RubyGems) = 1.11.0 No fix listed
rubygems image_processing(RubyGems) = 1.12.0 No fix listed
rubygems image_processing(RubyGems) = 1.12.1 No fix listed
rubygems image_processing(RubyGems) = 1.2.0 No fix listed
rubygems image_processing(RubyGems) = 1.3.0 No fix listed
rubygems image_processing(RubyGems) = 1.4.0 No fix listed
rubygems image_processing(RubyGems) = 1.5.0 No fix listed
rubygems image_processing(RubyGems) = 1.6.0 No fix listed
rubygems image_processing(RubyGems) = 1.7.0 No fix listed
rubygems image_processing(RubyGems) = 1.7.1 No fix listed
rubygems image_processing(RubyGems) = 1.8.0 No fix listed
rubygems image_processing(RubyGems) = 1.9.0 No fix listed
rubygems image_processing(RubyGems) = 1.9.1 No fix listed
rubygems image_processing(RubyGems) = 1.9.2 No fix listed
rubygems image_processing(RubyGems) = 1.9.3 No fix listed
janko image_processing = < 1.12.2 No fix listed
ubuntu/ruby-image-processing(Ubuntu:22.04) < 1.10.3-1ubuntu0.22.04.1 1.10.3-1ubuntu0.22.04.1
image processing project image processing < 1.12.2 1.12.2
debian linux = 11.0 No fix listed
debian/ruby-image-processing(Debian:12) < 1.10.3-2 1.10.3-2
ubuntu/ruby-image-processing(Ubuntu:20.04) < 1.10.3-1ubuntu0.20.04.1 1.10.3-1ubuntu0.20.04.1
ubuntu/ruby-image-processing(Ubuntu:20.04) = 1.10.3-1 No fix listed
ubuntu/ruby-image-processing(Ubuntu:22.04) = 1.10.3-1 No fix listed

References