{"cve":"CVE-2022-24720","nvd":{"published":"2022-03-01T23:15:08.993","modified":"2026-06-17T04:32:22.093","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-20"],"references":["https://github.com/janko/image_processing/commit/038e4574e8f4f4b636a62394e09983c71980dada","https://github.com/janko/image_processing/security/advisories/GHSA-cxf7-qrc5-9446","https://www.debian.org/security/2022/dsa-5310","https://github.com/janko/image_processing/commit/038e4574e8f4f4b636a62394e09983c71980dada","https://github.com/janko/image_processing/security/advisories/GHSA-cxf7-qrc5-9446"],"products":["debian:debian_linux","image_processing_project:image_processing"],"source":"nvd","synced_at":"2026-10-19T21:28:04.509275555+00:00"},"epss":{"cve":"CVE-2022-24720","score":0.02686,"percentile":0.85856,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-cxf7-qrc5-9446","url":"https://osv.dev/vulnerability/GHSA-cxf7-qrc5-9446","summary":"Remote shell execution vulnerability in image_processing","modified":"2023-11-08T04:08:33.532528Z","packages":[{"ecosystem":"RubyGems","name":"image_processing","purl":"pkg:gem/image_processing","ranges":["<1.12.2"],"fixed":["1.12.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}