{ "id": "CVE-2022-24720", "sourceIdentifier": "security-advisories@github.com", "published": "2022-03-01T23:15:08.993", "lastModified": "2023-07-03T20:35:53.343", "vulnStatus": "Analyzed", "descriptions": [ { "lang": "en", "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." }, { "lang": "es", "value": "image_processing es una envoltura de procesamiento de im\u00e1genes para libvips e ImageMagick/GraphicsMagick. En versiones anteriores a 1.12.2, usar el m\u00e9todo \"#apply\" de image_processing para aplicar una serie de operaciones que provienen de una entrada de usuario no saneada permite al atacante ejecutar comandos del shell. Este m\u00e9todo es llamado internamente por las variantes de Active Storage, por lo que Active Storage tambi\u00e9n es vulnerable. La vulnerabilidad ha sido corregida en versi\u00f3n 1.12.2 de image_processing. Como medida de mitigaci\u00f3n, los usuarios que procesan en base a la entrada del usuario deben siempre sanear la entrada del usuario permitiendo s\u00f3lo un conjunto restringido de operaciones" } ], "metrics": { "cvssMetricV31": [ { "source": "nvd@nist.gov", "type": "Primary", "cvssData": { "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 }, { "source": "security-advisories@github.com", "type": "Secondary", "cvssData": { "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 } ], "cvssMetricV2": [ { "source": "nvd@nist.gov", "type": "Primary", "cvssData": { "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.0 }, "baseSeverity": "HIGH", "exploitabilityScore": 10.0, "impactScore": 10.0, "acInsufInfo": false, "obtainAllPrivilege": false, "obtainUserPrivilege": false, "obtainOtherPrivilege": false, "userInteractionRequired": false } ] }, "weaknesses": [ { "source": "nvd@nist.gov", "type": "Primary", "description": [ { "lang": "en", "value": "NVD-CWE-Other" } ] }, { "source": "security-advisories@github.com", "type": "Secondary", "description": [ { "lang": "en", "value": "CWE-20" } ] } ], "configurations": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:a:image_processing_project:image_processing:*:*:*:*:*:ruby:*:*", "versionEndExcluding": "1.12.2", "matchCriteriaId": "0D331DC9-BD55-4D95-83DE-3DF006DCBBA3" } ] } ] }, { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*", "matchCriteriaId": "FA6FEEC2-9F11-4643-8827-749718254FED" } ] } ] } ], "references": [ { "url": "https://github.com/janko/image_processing/commit/038e4574e8f4f4b636a62394e09983c71980dada", "source": "security-advisories@github.com", "tags": [ "Patch" ] }, { "url": "https://github.com/janko/image_processing/security/advisories/GHSA-cxf7-qrc5-9446", "source": "security-advisories@github.com", "tags": [ "Exploit", "Vendor Advisory" ] }, { "url": "https://www.debian.org/security/2022/dsa-5310", "source": "security-advisories@github.com", "tags": [ "Third Party Advisory" ] } ] }