CVE-2022-24720
image_processing is an image processing wrapper for libvips and ImageM ...
Severidad por fuente
La etiqueta propia de Trivy es CRITICAL. Crítica según NVD, GHSA, Ruby Advisory DB. Más baja según Ubuntu (media).
Descripción
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.
Paquetes afectados y versiones corregidas
| Fuente | Paquete | Corregido en |
|---|---|---|
| rubygems::GitHub Security Advisory RubyGems | image_processing | 1.12.2 |
| rubygems::Ruby Advisory Database | image_processing | >= 1.12.2 |
| debian 11 | ruby-image-processing | 1.10.3-1+deb11u1 |
| debian 12 | ruby-image-processing | 1.10.3-2 |
| echo | ruby-image-processing | 1.10.3-2 |
| rapidfort ubuntu 20.04 | ruby-image-processing | 0:1.10.3-1ubuntu0.20.04.1 |
| rapidfort ubuntu 22.04 | ruby-image-processing | 0:1.10.3-1ubuntu0.20.04.1 |
| rapidfort ubuntu 24.04 | ruby-image-processing | 0:1.10.3-1ubuntu0.20.04.1 |
| ubuntu 20.04 | ruby-image-processing | 1.10.3-1ubuntu0.20.04.1 |
| ubuntu 20.04-ESM | ruby-image-processing | 1.10.3-1ubuntu0.20.04.1 |
| ubuntu 22.04 | ruby-image-processing | 1.10.3-1ubuntu0.22.04.1 |
Referencias
- https://github.com/janko/image_processing
- https://github.com/janko/image_processing/commit/038e4574e8f4f4b636a62394e09983c71980dada
- https://github.com/janko/image_processing/commit/038e4574e8f4f4b636a62394e09983c71980dada%20%28v1.12.2%29
- https://github.com/janko/image_processing/security/advisories/GHSA-cxf7-qrc5-9446
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/image_processing/CVE-2022-24720.yml
- https://nvd.nist.gov/vuln/detail/CVE-2022-24720
- https://ubuntu.com/security/notices/USN-6675-1
- https://www.cve.org/CVERecord?id=CVE-2022-24720