Skip to content
Heist/ feed
Back to feed
CriticalFix available

ruby-image-processing — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2022-24720

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.

Products
ruby-image-processing
Affected versions
Not specified
Fixed versions
1.10.3-2
CVEs
CVE-2022-24720
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 14:35 UTC · Revision 1

Source evidence

DEBIAN-CVE-2022-24720

core-osv · Original source

Published 1 Mar 2022, 23:15 UTC

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.

osv:DEBIAN-CVE-2022-24720

ruby-image-processing

Fixed versions: 1.10.3-2

Complete source record
{
  "id": "2b5c5268628cb813ca2d57af6195baee0cbbe51494c2d099f4b3d4d84562c740",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2022-24720",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2022-24720",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2022-24720",
    "products": [
      {
        "name": {
          "value": "ruby-image-processing",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.10.3-2",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "DEBIAN-CVE-2022-24720",
      "aliases": [
        "DEBIAN-CVE-2022-24720"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.10.3-2"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-image-processing",
            "purl": "pkg:deb/debian/ruby-image-processing?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-24720.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-15T08:00:48.266261310Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-24720"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2022-24720"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-24720",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 322655,
  "published_at": "2022-03-01T23:15:08.993+00:00"
}