{"id":"CVE-2022-24720","published":"2022-03-01T00:00:00Z","modified":"2025-04-22T18:21:17Z","title":"Improper Input Validation in image_processing","vendor":"janko","product":"image_processing","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02686,"percentile":0.86208,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/janko/image_processing/security/advisories/GHSA-cxf7-qrc5-9446","tags":[]},{"url":"https://github.com/janko/image_processing/commit/038e4574e8f4f4b636a62394e09983c71980dada","tags":[]},{"url":"https://www.debian.org/security/2022/dsa-5310","tags":["vendor-advisory"]}],"priority":{"score":24.1,"factors":[{"name":"EPSS percentile","points":17.24},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"janko","affectedVersions":[{"vendor":"janko","product":"image_processing","versions":["< 1.12.2"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2025-04-22T15:37:38.696369Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"image_processing","vulnerableRanges":["<1.12.2"],"patched":["1.12.2"],"from":["GHSA-cxf7-qrc5-9446"],"provenance":"source"}],"summary":{"text":"The image_processing library (by janko) contains an improper input validation flaw in its #apply method, which is also reached internally by Active Storage variants and therefore affects Active Storage as well. An unauthenticated remote attacker can execute shell commands by supplying unsanitized user input that is passed into a series of processing operations, with no user interaction or special configuration required beyond an application that feeds user input into these operations.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:36:24Z"},"euvd":{"id":"EUVD-2022-1412","exploited":false,"provenance":"source"}}