Security mailing lists by PureSourceCode

CVE-2022-24720

CRITICAL 9.8CVSS 3.1

Remote shell execution vulnerability in image_processing

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.

Published
1 Mar 2022
Last modified
17 Jun 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-20CWE-78
Also known as
GHSA-cxf7-qrc5-9446
Sources
NVDJSONOSV GHSA-cxf7-qrc5-9446JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 HIGH 10.0 AV:N/AC:L/Au:N/C:C/I:C/A:C

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD image_processing_project image_processing
cpe:2.3:a:image_processing_project:image_processing:*:*:*:*:*:ruby:*:*
< 1.12.2 1.12.2
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
= 11.0
OSV RubyGems image_processing < 1.12.2 1.12.2

References

History

  • 25 Nov 2026 20:34 UTC · NVD: first stored (published 1 Mar 2022)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 1 Mar 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.