CVE-2022-24720
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.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (2.69%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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 3.1
- 9.8 CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 2.69% probability · 85th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-20
- Affected
- image processing project/image processing · debian/debian linux
- Source
- security-advisories@github.com
References
- https://github.com/janko/image_processing/commit/038e4574e8f4f4b636a62394e09983c71980dadaPatch
- https://github.com/janko/image_processing/security/advisories/GHSA-cxf7-qrc5-9446Exploit, Vendor Advisory
- https://www.debian.org/security/2022/dsa-5310Third Party Advisory
- https://github.com/janko/image_processing/commit/038e4574e8f4f4b636a62394e09983c71980dadaPatch
- https://github.com/janko/image_processing/security/advisories/GHSA-cxf7-qrc5-9446Exploit, Vendor Advisory
- https://www.debian.org/security/2022/dsa-5310Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.