ubuntu-cve-2025-24293
Vulnerability from osv_ubuntu
Published
2026-01-30 21:15
Modified
2026-06-30 16:14
Summary
Details

Active Storage allowed transformation methods potentially unsafe Active Storage attempts to prevent the use of potentially unsafe image transformation methods and parameters by default. The default allowed list contains three methods allow for the circumvention of the safe defaults which enables potential command injection vulnerabilities in cases where arbitrary user supplied input is accepted as valid transformation methods or parameters. Impact ------ This vulnerability impacts applications that use Active Storage with the image_processing processing gem in addition to mini_magick as the image processor. Vulnerable code will look something similar to this: <%= image_tag blob.variant(params[:t] => params[:v]) %> Where the transformation method or its arguments are untrusted arbitrary input. All users running an affected release should either upgrade or use one of the workarounds immediately. Workarounds ----------- Consuming user supplied input for image transformation methods or their parameters is unsupported behavior and should be considered dangerous. Strict validation of user supplied methods and parameters should be performed as well as having a strong ImageMagick security policy deployed. Credits ------- Thank you lio346 for reporting this!


{
  "affected": [
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "rails",
            "binary_version": "2:4.2.6-1ubuntu0.1~esm2"
          },
          {
            "binary_name": "ruby-actionmailer",
            "binary_version": "2:4.2.6-1ubuntu0.1~esm2"
          },
          {
            "binary_name": "ruby-actionpack",
            "binary_version": "2:4.2.6-1ubuntu0.1~esm2"
          },
          {
            "binary_name": "ruby-actionview",
            "binary_version": "2:4.2.6-1ubuntu0.1~esm2"
          },
          {
            "binary_name": "ruby-activejob",
            "binary_version": "2:4.2.6-1ubuntu0.1~esm2"
          },
          {
            "binary_name": "ruby-activemodel",
            "binary_version": "2:4.2.6-1ubuntu0.1~esm2"
          },
          {
            "binary_name": "ruby-activerecord",
            "binary_version": "2:4.2.6-1ubuntu0.1~esm2"
          },
          {
            "binary_name": "ruby-activesupport",
            "binary_version": "2:4.2.6-1ubuntu0.1~esm2"
          },
          {
            "binary_name": "ruby-rails",
            "binary_version": "2:4.2.6-1ubuntu0.1~esm2"
          },
          {
            "binary_name": "ruby-railties",
            "binary_version": "2:4.2.6-1ubuntu0.1~esm2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:16.04:LTS",
        "name": "rails",
        "purl": "pkg:deb/ubuntu/rails@2:4.2.6-1ubuntu0.1~esm2?arch=source\u0026distro=esm-apps/xenial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2:4.1.10-1",
        "2:4.2.5-1",
        "2:4.2.5.1-1",
        "2:4.2.5.2-2",
        "2:4.2.6-1",
        "2:4.2.6-1ubuntu0.1~esm1",
        "2:4.2.6-1ubuntu0.1~esm2"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "rails",
            "binary_version": "2:4.2.10-0ubuntu4+esm2"
          },
          {
            "binary_name": "ruby-actionmailer",
            "binary_version": "2:4.2.10-0ubuntu4+esm2"
          },
          {
            "binary_name": "ruby-actionpack",
            "binary_version": "2:4.2.10-0ubuntu4+esm2"
          },
          {
            "binary_name": "ruby-actionview",
            "binary_version": "2:4.2.10-0ubuntu4+esm2"
          },
          {
            "binary_name": "ruby-activejob",
            "binary_version": "2:4.2.10-0ubuntu4+esm2"
          },
          {
            "binary_name": "ruby-activemodel",
            "binary_version": "2:4.2.10-0ubuntu4+esm2"
          },
          {
            "binary_name": "ruby-activerecord",
            "binary_version": "2:4.2.10-0ubuntu4+esm2"
          },
          {
            "binary_name": "ruby-activesupport",
            "binary_version": "2:4.2.10-0ubuntu4+esm2"
          },
          {
            "binary_name": "ruby-rails",
            "binary_version": "2:4.2.10-0ubuntu4+esm2"
          },
          {
            "binary_name": "ruby-railties",
            "binary_version": "2:4.2.10-0ubuntu4+esm2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:18.04:LTS",
        "name": "rails",
        "purl": "pkg:deb/ubuntu/rails@2:4.2.10-0ubuntu4+esm2?arch=source\u0026distro=esm-apps/bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2:4.2.9-2",
        "2:4.2.9-4",
        "2:4.2.10-0ubuntu4",
        "2:4.2.10-0ubuntu4+esm1",
        "2:4.2.10-0ubuntu4+esm2"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "rails",
            "binary_version": "2:5.2.3+dfsg-3ubuntu0.1~esm1"
          },
          {
            "binary_name": "ruby-actioncable",
            "binary_version": "2:5.2.3+dfsg-3ubuntu0.1~esm1"
          },
          {
            "binary_name": "ruby-actionmailer",
            "binary_version": "2:5.2.3+dfsg-3ubuntu0.1~esm1"
          },
          {
            "binary_name": "ruby-actionpack",
            "binary_version": "2:5.2.3+dfsg-3ubuntu0.1~esm1"
          },
          {
            "binary_name": "ruby-actionview",
            "binary_version": "2:5.2.3+dfsg-3ubuntu0.1~esm1"
          },
          {
            "binary_name": "ruby-activejob",
            "binary_version": "2:5.2.3+dfsg-3ubuntu0.1~esm1"
          },
          {
            "binary_name": "ruby-activemodel",
            "binary_version": "2:5.2.3+dfsg-3ubuntu0.1~esm1"
          },
          {
            "binary_name": "ruby-activerecord",
            "binary_version": "2:5.2.3+dfsg-3ubuntu0.1~esm1"
          },
          {
            "binary_name": "ruby-activestorage",
            "binary_version": "2:5.2.3+dfsg-3ubuntu0.1~esm1"
          },
          {
            "binary_name": "ruby-activesupport",
            "binary_version": "2:5.2.3+dfsg-3ubuntu0.1~esm1"
          },
          {
            "binary_name": "ruby-rails",
            "binary_version": "2:5.2.3+dfsg-3ubuntu0.1~esm1"
          },
          {
            "binary_name": "ruby-railties",
            "binary_version": "2:5.2.3+dfsg-3ubuntu0.1~esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:20.04:LTS",
        "name": "rails",
        "purl": "pkg:deb/ubuntu/rails@2:5.2.3+dfsg-3ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2:5.2.2.1+dfsg-1ubuntu1",
        "2:5.2.3+dfsg-3",
        "2:5.2.3+dfsg-3ubuntu0.1~esm1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "rails",
            "binary_version": "2:6.1.4.1+dfsg-8ubuntu2+esm1"
          },
          {
            "binary_name": "ruby-actioncable",
            "binary_version": "2:6.1.4.1+dfsg-8ubuntu2+esm1"
          },
          {
            "binary_name": "ruby-actionmailbox",
            "binary_version": "2:6.1.4.1+dfsg-8ubuntu2+esm1"
          },
          {
            "binary_name": "ruby-actionmailer",
            "binary_version": "2:6.1.4.1+dfsg-8ubuntu2+esm1"
          },
          {
            "binary_name": "ruby-actionpack",
            "binary_version": "2:6.1.4.1+dfsg-8ubuntu2+esm1"
          },
          {
            "binary_name": "ruby-actiontext",
            "binary_version": "2:6.1.4.1+dfsg-8ubuntu2+esm1"
          },
          {
            "binary_name": "ruby-actionview",
            "binary_version": "2:6.1.4.1+dfsg-8ubuntu2+esm1"
          },
          {
            "binary_name": "ruby-activejob",
            "binary_version": "2:6.1.4.1+dfsg-8ubuntu2+esm1"
          },
          {
            "binary_name": "ruby-activemodel",
            "binary_version": "2:6.1.4.1+dfsg-8ubuntu2+esm1"
          },
          {
            "binary_name": "ruby-activerecord",
            "binary_version": "2:6.1.4.1+dfsg-8ubuntu2+esm1"
          },
          {
            "binary_name": "ruby-activestorage",
            "binary_version": "2:6.1.4.1+dfsg-8ubuntu2+esm1"
          },
          {
            "binary_name": "ruby-activesupport",
            "binary_version": "2:6.1.4.1+dfsg-8ubuntu2+esm1"
          },
          {
            "binary_name": "ruby-rails",
            "binary_version": "2:6.1.4.1+dfsg-8ubuntu2+esm1"
          },
          {
            "binary_name": "ruby-railties",
            "binary_version": "2:6.1.4.1+dfsg-8ubuntu2+esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:22.04:LTS",
        "name": "rails",
        "purl": "pkg:deb/ubuntu/rails@2:6.1.4.1+dfsg-8ubuntu2+esm1?arch=source\u0026distro=esm-apps/jammy"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2:6.0.3.7+dfsg-2",
        "2:6.1.4.1+dfsg-8ubuntu2",
        "2:6.1.4.1+dfsg-8ubuntu2+esm1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "rails",
            "binary_version": "2:6.1.7.3+dfsg-3"
          },
          {
            "binary_name": "ruby-actioncable",
            "binary_version": "2:6.1.7.3+dfsg-3"
          },
          {
            "binary_name": "ruby-actionmailbox",
            "binary_version": "2:6.1.7.3+dfsg-3"
          },
          {
            "binary_name": "ruby-actionmailer",
            "binary_version": "2:6.1.7.3+dfsg-3"
          },
          {
            "binary_name": "ruby-actionpack",
            "binary_version": "2:6.1.7.3+dfsg-3"
          },
          {
            "binary_name": "ruby-actiontext",
            "binary_version": "2:6.1.7.3+dfsg-3"
          },
          {
            "binary_name": "ruby-actionview",
            "binary_version": "2:6.1.7.3+dfsg-3"
          },
          {
            "binary_name": "ruby-activejob",
            "binary_version": "2:6.1.7.3+dfsg-3"
          },
          {
            "binary_name": "ruby-activemodel",
            "binary_version": "2:6.1.7.3+dfsg-3"
          },
          {
            "binary_name": "ruby-activerecord",
            "binary_version": "2:6.1.7.3+dfsg-3"
          },
          {
            "binary_name": "ruby-activestorage",
            "binary_version": "2:6.1.7.3+dfsg-3"
          },
          {
            "binary_name": "ruby-activesupport",
            "binary_version": "2:6.1.7.3+dfsg-3"
          },
          {
            "binary_name": "ruby-rails",
            "binary_version": "2:6.1.7.3+dfsg-3"
          },
          {
            "binary_name": "ruby-railties",
            "binary_version": "2:6.1.7.3+dfsg-3"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:24.04:LTS",
        "name": "rails",
        "purl": "pkg:deb/ubuntu/rails@2:6.1.7.3+dfsg-3?arch=source\u0026distro=noble"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2:6.1.7.3+dfsg-2build1",
        "2:6.1.7.3+dfsg-3"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "rails",
            "binary_version": "2:7.2.2.1+dfsg-7"
          },
          {
            "binary_name": "ruby-actioncable",
            "binary_version": "2:7.2.2.1+dfsg-7"
          },
          {
            "binary_name": "ruby-actionmailbox",
            "binary_version": "2:7.2.2.1+dfsg-7"
          },
          {
            "binary_name": "ruby-actionmailer",
            "binary_version": "2:7.2.2.1+dfsg-7"
          },
          {
            "binary_name": "ruby-actionpack",
            "binary_version": "2:7.2.2.1+dfsg-7"
          },
          {
            "binary_name": "ruby-actiontext",
            "binary_version": "2:7.2.2.1+dfsg-7"
          },
          {
            "binary_name": "ruby-actionview",
            "binary_version": "2:7.2.2.1+dfsg-7"
          },
          {
            "binary_name": "ruby-activejob",
            "binary_version": "2:7.2.2.1+dfsg-7"
          },
          {
            "binary_name": "ruby-activemodel",
            "binary_version": "2:7.2.2.1+dfsg-7"
          },
          {
            "binary_name": "ruby-activerecord",
            "binary_version": "2:7.2.2.1+dfsg-7"
          },
          {
            "binary_name": "ruby-activestorage",
            "binary_version": "2:7.2.2.1+dfsg-7"
          },
          {
            "binary_name": "ruby-activesupport",
            "binary_version": "2:7.2.2.1+dfsg-7"
          },
          {
            "binary_name": "ruby-rails",
            "binary_version": "2:7.2.2.1+dfsg-7"
          },
          {
            "binary_name": "ruby-railties",
            "binary_version": "2:7.2.2.1+dfsg-7"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:25.10",
        "name": "rails",
        "purl": "pkg:deb/ubuntu/rails@2:7.2.2.1+dfsg-7?arch=source\u0026distro=questing"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2:6.1.7.3+dfsg-7",
        "2:7.2.2.1+dfsg-7"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "rails",
            "binary_version": "2:7.2.3+dfsg-2"
          },
          {
            "binary_name": "ruby-actioncable",
            "binary_version": "2:7.2.3+dfsg-2"
          },
          {
            "binary_name": "ruby-actionmailbox",
            "binary_version": "2:7.2.3+dfsg-2"
          },
          {
            "binary_name": "ruby-actionmailer",
            "binary_version": "2:7.2.3+dfsg-2"
          },
          {
            "binary_name": "ruby-actionpack",
            "binary_version": "2:7.2.3+dfsg-2"
          },
          {
            "binary_name": "ruby-actiontext",
            "binary_version": "2:7.2.3+dfsg-2"
          },
          {
            "binary_name": "ruby-actionview",
            "binary_version": "2:7.2.3+dfsg-2"
          },
          {
            "binary_name": "ruby-activejob",
            "binary_version": "2:7.2.3+dfsg-2"
          },
          {
            "binary_name": "ruby-activemodel",
            "binary_version": "2:7.2.3+dfsg-2"
          },
          {
            "binary_name": "ruby-activerecord",
            "binary_version": "2:7.2.3+dfsg-2"
          },
          {
            "binary_name": "ruby-activestorage",
            "binary_version": "2:7.2.3+dfsg-2"
          },
          {
            "binary_name": "ruby-activesupport",
            "binary_version": "2:7.2.3+dfsg-2"
          },
          {
            "binary_name": "ruby-rails",
            "binary_version": "2:7.2.3+dfsg-2"
          },
          {
            "binary_name": "ruby-railties",
            "binary_version": "2:7.2.3+dfsg-2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:26.04:LTS",
        "name": "rails",
        "purl": "pkg:deb/ubuntu/rails@2:7.2.3+dfsg-2?arch=source\u0026distro=resolute"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2:7.2.2.1+dfsg-7",
        "2:7.2.2.2+dfsg-2",
        "2:7.2.3+dfsg-2"
      ]
    }
  ],
  "aliases": [],
  "details": "# Active Storage allowed transformation methods potentially unsafe Active Storage attempts to prevent the use of potentially unsafe image transformation methods and parameters by default. The default allowed list contains three methods allow for the circumvention of the safe defaults which enables potential command injection vulnerabilities in cases where arbitrary user supplied input is accepted as valid transformation methods or parameters. Impact ------ This vulnerability impacts applications that use Active Storage with the image_processing processing gem in addition to mini_magick as the image processor. Vulnerable code will look something similar to this: ``` \u003c%= image_tag blob.variant(params[:t] =\u003e params[:v]) %\u003e ``` Where the transformation method or its arguments are untrusted arbitrary input. All users running an affected release should either upgrade or use one of the workarounds immediately. Workarounds ----------- Consuming user supplied input for image transformation methods or their parameters is unsupported behavior and should be considered dangerous. Strict validation of user supplied methods and parameters should be performed as well as having a strong [ImageMagick security policy](https://imagemagick.org/script/security-policy.php) deployed. Credits ------- Thank you [lio346](https://hackerone.com/lio346) for reporting this!",
  "id": "UBUNTU-CVE-2025-24293",
  "modified": "2026-06-30T16:14:25Z",
  "published": "2026-01-30T21:15:00Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2025-24293"
    },
    {
      "type": "REPORT",
      "url": "https://www.cve.org/CVERecord?id=CVE-2025-24293"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/rails/rails/security/advisories/GHSA-r4mg-4433-c7g3"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/rails/rails/commit/2d612735ac0d9712fdfffaf80afa627e7295f6ce"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/rails/rails/commit/568c0bc2f1e74c65d150a84b89a080949bf9eb9b"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/rails/rails/commit/fb8f3a18c3d97524c0efc29150d1e5f3162fbb13"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/rails/rails/commit/6a944ca4805e72050a0fbb1a461534eb760d3202"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/rails/rails/commit/1b1adf6ee6ca0f3104fcfce79360b2ec1e06a354"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/rails/rails/commit/3beef20013736fd52c5dcfdf061f7999ba318290"
    }
  ],
  "related": [],
  "schema_version": "1.7.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    },
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "medium",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2025-24293"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…