gsd-2021-33564
Vulnerability from gsd
Modified
2021-06-02 00:00
Details
An argument injection vulnerability in the Dragonfly gem before 1.4.0 for Ruby allows remote attackers to read and write to arbitrary files via a crafted URL when the verify_url option is disabled. This may lead to code execution. The problem occurs because the generate and process features mishandle use of the ImageMagick convert utility.
Aliases



{
  "GSD": {
    "alias": "CVE-2021-33564",
    "description": "An argument injection vulnerability in the Dragonfly gem before 1.4.0 for Ruby allows remote attackers to read and write to arbitrary files via a crafted URL when the verify_url option is disabled. This may lead to code execution. The problem occurs because the generate and process features mishandle use of the ImageMagick convert utility.",
    "id": "GSD-2021-33564"
  },
  "gsd": {
    "metadata": {
      "exploitCode": "unknown",
      "remediation": "unknown",
      "reportConfidence": "confirmed",
      "type": "vulnerability"
    },
    "osvSchema": {
      "affected": [
        {
          "package": {
            "ecosystem": "RubyGems",
            "name": "dragonfly",
            "purl": "pkg:gem/dragonfly"
          }
        }
      ],
      "aliases": [
        "CVE-2021-33564",
        "GHSA-j858-xp5v-f8xx"
      ],
      "details": "An argument injection vulnerability in the Dragonfly gem before 1.4.0\nfor Ruby allows remote attackers to read and write to arbitrary files via a crafted\nURL when the verify_url option is disabled. This may lead to code execution. The\nproblem occurs because the generate and process features mishandle use of the ImageMagick\nconvert utility.\n",
      "id": "GSD-2021-33564",
      "modified": "2021-06-02T00:00:00.000Z",
      "published": "2021-06-02T00:00:00.000Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/advisories/GHSA-j858-xp5v-f8xx"
        }
      ],
      "schema_version": "1.4.0",
      "severity": [
        {
          "score": 9.8,
          "type": "CVSS_V3"
        }
      ],
      "summary": "Remote code execution in Dragonfly"
    }
  },
  "namespaces": {
    "cve.org": {
      "CVE_data_meta": {
        "ASSIGNER": "cve@mitre.org",
        "ID": "CVE-2021-33564",
        "STATE": "PUBLIC"
      },
      "affects": {
        "vendor": {
          "vendor_data": [
            {
              "product": {
                "product_data": [
                  {
                    "product_name": "n/a",
                    "version": {
                      "version_data": [
                        {
                          "version_value": "n/a"
                        }
                      ]
                    }
                  }
                ]
              },
              "vendor_name": "n/a"
            }
          ]
        }
      },
      "data_format": "MITRE",
      "data_type": "CVE",
      "data_version": "4.0",
      "description": {
        "description_data": [
          {
            "lang": "eng",
            "value": "An argument injection vulnerability in the Dragonfly gem before 1.4.0 for Ruby allows remote attackers to read and write to arbitrary files via a crafted URL when the verify_url option is disabled. This may lead to code execution. The problem occurs because the generate and process features mishandle use of the ImageMagick convert utility."
          }
        ]
      },
      "problemtype": {
        "problemtype_data": [
          {
            "description": [
              {
                "lang": "eng",
                "value": "n/a"
              }
            ]
          }
        ]
      },
      "references": {
        "reference_data": [
          {
            "name": "https://github.com/markevans/dragonfly/issues/513",
            "refsource": "MISC",
            "url": "https://github.com/markevans/dragonfly/issues/513"
          },
          {
            "name": "https://github.com/markevans/dragonfly/commit/25399297bb457f7fcf8e3f91e85945b255b111b5",
            "refsource": "MISC",
            "url": "https://github.com/markevans/dragonfly/commit/25399297bb457f7fcf8e3f91e85945b255b111b5"
          },
          {
            "name": "https://github.com/markevans/dragonfly/compare/v1.3.0...v1.4.0",
            "refsource": "MISC",
            "url": "https://github.com/markevans/dragonfly/compare/v1.3.0...v1.4.0"
          },
          {
            "name": "https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/master/cves/2021/CVE-2021-33564.yaml",
            "refsource": "MISC",
            "url": "https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/master/cves/2021/CVE-2021-33564.yaml"
          },
          {
            "name": "https://github.com/mlr0p/CVE-2021-33564",
            "refsource": "MISC",
            "url": "https://github.com/mlr0p/CVE-2021-33564"
          },
          {
            "name": "https://zxsecurity.co.nz/research/argunment-injection-ruby-dragonfly/",
            "refsource": "MISC",
            "url": "https://zxsecurity.co.nz/research/argunment-injection-ruby-dragonfly/"
          }
        ]
      }
    },
    "github.com/rubysec/ruby-advisory-db": {
      "cve": "2021-33564",
      "cvss_v3": 9.8,
      "date": "2021-06-02",
      "description": "An argument injection vulnerability in the Dragonfly gem before 1.4.0\nfor Ruby allows remote attackers to read and write to arbitrary files via a crafted\nURL when the verify_url option is disabled. This may lead to code execution. The\nproblem occurs because the generate and process features mishandle use of the ImageMagick\nconvert utility.\n",
      "gem": "dragonfly",
      "ghsa": "j858-xp5v-f8xx",
      "patched_versions": [
        "\u003e= 1.4.0"
      ],
      "title": "Remote code execution in Dragonfly",
      "url": "https://github.com/advisories/GHSA-j858-xp5v-f8xx"
    },
    "gitlab.com": {
      "advisories": [
        {
          "affected_range": "\u003c1.4.0",
          "affected_versions": "All versions before 1.4.0",
          "cvss_v2": "AV:N/AC:M/Au:N/C:P/I:P/A:P",
          "cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
          "cwe_ids": [
            "CWE-1035",
            "CWE-88",
            "CWE-937"
          ],
          "date": "2021-06-10",
          "description": "An argument injection vulnerability in the Dragonfly gem for Ruby allows remote attackers to read and write to arbitrary files via a crafted URL when the verify_url option is disabled. This may lead to code execution. The problem occurs because the generate and process features mishandle use of the ImageMagick convert utility.",
          "fixed_versions": [
            "1.4.0"
          ],
          "identifier": "CVE-2021-33564",
          "identifiers": [
            "CVE-2021-33564"
          ],
          "not_impacted": "All versions starting from 1.4.0",
          "package_slug": "gem/dragonfly",
          "pubdate": "2021-05-29",
          "solution": "Upgrade to version 1.4.0 or above.",
          "title": "Argument Injection or Modification",
          "urls": [
            "https://nvd.nist.gov/vuln/detail/CVE-2021-33564",
            "https://github.com/markevans/dragonfly/issues/513"
          ],
          "uuid": "61b263af-f2ec-410d-8e2e-888b1a61727b"
        }
      ]
    },
    "nvd.nist.gov": {
      "configurations": {
        "CVE_data_version": "4.0",
        "nodes": [
          {
            "children": [],
            "cpe_match": [
              {
                "cpe23Uri": "cpe:2.3:a:dragonfly_project:dragonfly:*:*:*:*:*:ruby:*:*",
                "cpe_name": [],
                "versionEndExcluding": "1.4.0",
                "vulnerable": true
              }
            ],
            "operator": "OR"
          }
        ]
      },
      "cve": {
        "CVE_data_meta": {
          "ASSIGNER": "cve@mitre.org",
          "ID": "CVE-2021-33564"
        },
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "en",
              "value": "An argument injection vulnerability in the Dragonfly gem before 1.4.0 for Ruby allows remote attackers to read and write to arbitrary files via a crafted URL when the verify_url option is disabled. This may lead to code execution. The problem occurs because the generate and process features mishandle use of the ImageMagick convert utility."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "en",
                  "value": "CWE-88"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://github.com/markevans/dragonfly/compare/v1.3.0...v1.4.0",
              "refsource": "MISC",
              "tags": [
                "Patch",
                "Third Party Advisory"
              ],
              "url": "https://github.com/markevans/dragonfly/compare/v1.3.0...v1.4.0"
            },
            {
              "name": "https://github.com/markevans/dragonfly/commit/25399297bb457f7fcf8e3f91e85945b255b111b5",
              "refsource": "MISC",
              "tags": [
                "Patch",
                "Third Party Advisory"
              ],
              "url": "https://github.com/markevans/dragonfly/commit/25399297bb457f7fcf8e3f91e85945b255b111b5"
            },
            {
              "name": "https://github.com/mlr0p/CVE-2021-33564",
              "refsource": "MISC",
              "tags": [
                "Exploit",
                "Third Party Advisory"
              ],
              "url": "https://github.com/mlr0p/CVE-2021-33564"
            },
            {
              "name": "https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/master/cves/2021/CVE-2021-33564.yaml",
              "refsource": "MISC",
              "tags": [
                "Exploit",
                "Third Party Advisory"
              ],
              "url": "https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/master/cves/2021/CVE-2021-33564.yaml"
            },
            {
              "name": "https://zxsecurity.co.nz/research/argunment-injection-ruby-dragonfly/",
              "refsource": "MISC",
              "tags": [
                "Exploit",
                "Third Party Advisory"
              ],
              "url": "https://zxsecurity.co.nz/research/argunment-injection-ruby-dragonfly/"
            },
            {
              "name": "https://github.com/markevans/dragonfly/issues/513",
              "refsource": "MISC",
              "tags": [
                "Issue Tracking",
                "Third Party Advisory"
              ],
              "url": "https://github.com/markevans/dragonfly/issues/513"
            }
          ]
        }
      },
      "impact": {
        "baseMetricV2": {
          "acInsufInfo": false,
          "cvssV2": {
            "accessComplexity": "MEDIUM",
            "accessVector": "NETWORK",
            "authentication": "NONE",
            "availabilityImpact": "PARTIAL",
            "baseScore": 6.8,
            "confidentialityImpact": "PARTIAL",
            "integrityImpact": "PARTIAL",
            "vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:P",
            "version": "2.0"
          },
          "exploitabilityScore": 8.6,
          "impactScore": 6.4,
          "obtainAllPrivilege": false,
          "obtainOtherPrivilege": false,
          "obtainUserPrivilege": false,
          "severity": "MEDIUM",
          "userInteractionRequired": false
        },
        "baseMetricV3": {
          "cvssV3": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 9.8,
            "baseSeverity": "CRITICAL",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "exploitabilityScore": 3.9,
          "impactScore": 5.9
        }
      },
      "lastModifiedDate": "2021-06-10T15:20Z",
      "publishedDate": "2021-05-29T14:15Z"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.