{
  "cveId": "CVE-2021-21305",
  "url": "https://patchblox.com/security/cve/CVE-2021-21305",
  "summary": "CVE-2021-21305 is fixed in ruby-carrierwave on 1 platform, first by ruby-carrierwave 1.2.2-1ubuntu0.1~esm1, released November 29, 2023. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "ruby-carrierwave: CarrierWave is an open-source RubyGem which provides a simple and flexible way to upload files from Ruby applications",
  "description": "CarrierWave is an open-source RubyGem which provides a simple and flexible way to upload files from Ruby applications. In CarrierWave before versions 1.3.2 and 2.1.1, there is a code injection vulnerability. The \u0022#manipulate!\u0022 method inappropriately evals the content of mutation option(:read/:write), allowing attackers to craft a string that can be executed as a Ruby code. If an application developer supplies untrusted inputs to the option, it will lead to remote code execution(RCE). This is fixed in versions 1.3.2 and 2.1.1.",
  "published": "2021-02-08T12:15:00Z",
  "severity": "Medium",
  "epss": 0.13208,
  "epssPercentile": 0.964,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "ruby-carrierwave",
      "release": "Ubuntu 18.04.6 LTS (bionic)",
      "fixedVersion": "1.2.2-1ubuntu0.1~esm1",
      "fix": "ruby-carrierwave 1.2.2-1ubuntu0.1~esm1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-bionic-ruby-carrierwave-1.2.2-1ubuntu0.1-esm1",
      "released": "2023-11-29T07:15:00Z"
    },
    {
      "platform": "linux",
      "product": "ruby-carrierwave",
      "release": "Ubuntu 20.04 LTS (focal)",
      "fixedVersion": "1.3.1-2ubuntu0.1~esm1",
      "fix": "ruby-carrierwave 1.3.1-2ubuntu0.1~esm1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-focal-ruby-carrierwave-1.3.1-2ubuntu0.1-esm1",
      "released": "2023-11-29T07:15:00Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-09T19:38:12Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}