CVE-2022-24720: Improper Input Validation in image_processing

Published Mar 1, 2022
·
Updated

imageprocessing is an image processing wrapper for libvips and ImageMagick/GraphicsMagick. Prior to version 1.12.2, using the #apply method from imageprocessing 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 imageprocessing. As a workaround, users who process based on user input should always sanitize the user input by allowing only a constrained set of operations.

Affected Software

5 affected componentsFixes available
ubuntu/ruby-image-processing<1.10.3-1ubuntu0.20.04.1
1.10.3-1ubuntu0.20.04.1
ubuntu/ruby-image-processing<1.10.3-1ubuntu0.22.04.1
1.10.3-1ubuntu0.22.04.1
debian/ruby-image-processing
1.10.3-1+deb11u11.10.3-3
Image Processing Project Image Processing Ruby<1.12.2
Debian Debian Linux=11.0

Event History

Mar 1, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Mar 13, 2022
Data Sourced
09:51 PM
SeverityAffected Software
Mar 5, 2024
Data Sourced
via Launchpad·06:34 PM
Description

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2022-24720?

CVE-2022-24720 has a moderate severity level due to its potential for remote code execution through unsanitized input.

2

How do I fix CVE-2022-24720?

To fix CVE-2022-24720, upgrade to version 1.12.2 or later of the image_processing library.

3

Which versions of ruby-image-processing are affected by CVE-2022-24720?

Versions prior to 1.12.2 of the ruby-image-processing library are affected by CVE-2022-24720.

4

What is the impact of exploiting CVE-2022-24720?

Exploiting CVE-2022-24720 allows attackers to execute arbitrary shell commands on the server.

5

Could my application be vulnerable to CVE-2022-24720?

If your application uses an affected version of ruby-image-processing before 1.12.2, it could be vulnerable to CVE-2022-24720.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203