CVE-2022-24720

NameCVE-2022-24720
Descriptionimage_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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDSA-5310-1
Debian Bugs1007225

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
ruby-image-processing (PTS)bullseye (security), bullseye1.10.3-1+deb11u1fixed
bookworm1.10.3-3fixed
sid, trixie1.13.0-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
ruby-image-processingsourcebullseye1.10.3-1+deb11u1DSA-5310-1
ruby-image-processingsource(unstable)1.10.3-21007225

Notes

https://github.com/janko/image_processing/security/advisories/GHSA-cxf7-qrc5-9446
https://github.com/janko/image_processing/commit/038e4574e8f4f4b636a62394e09983c71980dada (v1.12.2)

Search for package or bug name: Reporting problems