{"api_version":"1","generated_at":"2026-07-23T13:22:40+00:00","cve":"CVE-2022-24720","urls":{"html":"https://cve.report/CVE-2022-24720","api":"https://cve.report/api/cve/CVE-2022-24720.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-24720","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-24720"},"summary":{"title":"CVE-2022-24720","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-03-01 23:15:00","updated_at":"2023-07-03 20:35:00"},"problem_types":["NVD-CWE-Other"],"metrics":[],"references":[{"url":"https://github.com/janko/image_processing/commit/038e4574e8f4f4b636a62394e09983c71980dada","name":"https://github.com/janko/image_processing/commit/038e4574e8f4f4b636a62394e09983c71980dada","refsource":"MISC","tags":[],"title":"Prevent remote shell execution in `#apply` · janko/image_processing@038e457 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/janko/image_processing/security/advisories/GHSA-cxf7-qrc5-9446","name":"https://github.com/janko/image_processing/security/advisories/GHSA-cxf7-qrc5-9446","refsource":"CONFIRM","tags":[],"title":"Remote shell execution vulnerability in ImageProcessing · Advisory · janko/image_processing · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.debian.org/security/2022/dsa-5310","name":"DSA-5310","refsource":"DEBIAN","tags":[],"title":"Debian -- Security Information -- DSA-5310-1 ruby-image-processing","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-24720","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24720","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"24720","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"11.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"24720","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"image_processing_project","cpe5":"image_processing","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"ruby","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-24720","qid":"181455","title":"Debian Security Update for ruby-image-processing (DSA 5310-1)"},{"cve":"CVE-2022-24720","qid":"184057","title":"Debian Security Update for ruby-image-processing (CVE-2022-24720)"},{"cve":"CVE-2022-24720","qid":"200169","title":"Ubuntu Security Notification for ImageProcessing Vulnerability (USN-6675-1)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-24720","STATE":"PUBLIC","TITLE":"Improper Input Validation in image_processing"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"image_processing","version":{"version_data":[{"version_value":"< 1.12.2"}]}}]},"vendor_name":"janko"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-20: Improper Input Validation"}]}]},"references":{"reference_data":[{"name":"https://github.com/janko/image_processing/security/advisories/GHSA-cxf7-qrc5-9446","refsource":"CONFIRM","url":"https://github.com/janko/image_processing/security/advisories/GHSA-cxf7-qrc5-9446"},{"name":"https://github.com/janko/image_processing/commit/038e4574e8f4f4b636a62394e09983c71980dada","refsource":"MISC","url":"https://github.com/janko/image_processing/commit/038e4574e8f4f4b636a62394e09983c71980dada"},{"refsource":"DEBIAN","name":"DSA-5310","url":"https://www.debian.org/security/2022/dsa-5310"}]},"source":{"advisory":"GHSA-cxf7-qrc5-9446","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-03-01 23:15:00","lastModifiedDate":"2023-07-03 20:35:00","problem_types":["NVD-CWE-Other"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:C/I:C/A:C","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE","baseScore":10},"severity":"HIGH","exploitabilityScore":10,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:image_processing_project:image_processing:*:*:*:*:*:ruby:*:*","versionEndExcluding":"1.12.2","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"24720","Ordinal":"228179","Title":"CVE-2022-24720","CVE":"CVE-2022-24720","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"24720","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}