CVEfocus › CVE database › CVE-2022-24720

CVE-2022-24720Improper Input Validation in image_processing

CVSS 9.8 CriticalEPSS 2.2% (higher than 83% of CVEs)Published 2022-03-01Updated 2025-04-22Assigner: GitHub_M

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.

CWE-20

What to do

Fixed builds are available from Debian, RubyGems, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04ruby-image-processingNot affected
vulnerable_code_not_present
Ubuntu 22.04ruby-image-processingFixed1.10.3-1ubuntu0.22.04.1UBUNTU-CVE-2022-24720
Ubuntu 20.04ruby-image-processingFixed1.10.3-1ubuntu0.20.04.1UBUNTU-CVE-2022-24720
Debian 12ruby-image-processingFixed1.10.3-2DEBIAN-CVE-2022-24720
RubyGems libraryimage_processingFixed1.12.2GHSA-cxf7-qrc5-9446

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.