Related vulnerabilities

gsd-2013-2512
Vulnerability from gsd
Modified
2013-02-28 00:00
Details
ftpd Gem for Ruby contains a flaw that is triggered when handling a specially crafted option or filename that contains a shell character. This may allow a remote attacker to inject arbitrary commands.
Aliases



{
  "GSD": {
    "alias": "CVE-2013-2512",
    "description": "The ftpd gem 0.2.1 for Ruby allows remote attackers to execute arbitrary OS commands via shell metacharacters in a LIST or NLST command argument within FTP protocol traffic.",
    "id": "GSD-2013-2512"
  },
  "gsd": {
    "metadata": {
      "exploitCode": "unknown",
      "remediation": "unknown",
      "reportConfidence": "confirmed",
      "type": "vulnerability"
    },
    "osvSchema": {
      "affected": [
        {
          "package": {
            "ecosystem": "RubyGems",
            "name": "ftpd",
            "purl": "pkg:gem/ftpd"
          }
        }
      ],
      "aliases": [
        "CVE-2013-2512",
        "OSVDB-90784"
      ],
      "details": "ftpd Gem for Ruby contains a flaw that is triggered when handling a\nspecially crafted option or filename that contains a shell\ncharacter. This may allow a remote attacker to inject arbitrary\ncommands.\n",
      "id": "GSD-2013-2512",
      "modified": "2013-02-28T00:00:00.000Z",
      "published": "2013-02-28T00:00:00.000Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2013-2512"
        }
      ],
      "schema_version": "1.4.0",
      "severity": [
        {
          "score": 9.0,
          "type": "CVSS_V2"
        }
      ],
      "summary": "ftpd Gem for Ruby Shell Character Handling Remote Command Injection"
    }
  },
  "namespaces": {
    "cve.org": {
      "CVE_data_meta": {
        "ASSIGNER": "cve@mitre.org",
        "ID": "CVE-2013-2512",
        "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": "The ftpd gem 0.2.1 for Ruby allows remote attackers to execute arbitrary OS commands via shell metacharacters in a LIST or NLST command argument within FTP protocol traffic."
          }
        ]
      },
      "problemtype": {
        "problemtype_data": [
          {
            "description": [
              {
                "lang": "eng",
                "value": "n/a"
              }
            ]
          }
        ]
      },
      "references": {
        "reference_data": [
          {
            "name": "http://vapidlabs.com/advisory.php?v=34",
            "refsource": "MISC",
            "url": "http://vapidlabs.com/advisory.php?v=34"
          }
        ]
      }
    },
    "github.com/rubysec/ruby-advisory-db": {
      "cve": "2013-2512",
      "cvss_v2": 9.0,
      "date": "2013-02-28",
      "description": "ftpd Gem for Ruby contains a flaw that is triggered when handling a\nspecially crafted option or filename that contains a shell\ncharacter. This may allow a remote attacker to inject arbitrary\ncommands.\n",
      "gem": "ftpd",
      "osvdb": 90784,
      "patched_versions": [
        "\u003e= 0.2.2"
      ],
      "title": "ftpd Gem for Ruby Shell Character Handling Remote Command Injection",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2013-2512"
    },
    "gitlab.com": {
      "advisories": [
        {
          "affected_range": "\u003c=0.2.1",
          "affected_versions": "All versions up to 0.2.1",
          "cwe_ids": [
            "CWE-1035",
            "CWE-78",
            "CWE-937"
          ],
          "date": "2013-02-28",
          "description": "The ls interface can have commands injected into it if option or filename contain the shell character. This vulnerability requires that the file having commands injected in to it be in the Current Working Directory (CWD).",
          "fixed_versions": [
            "0.2.2"
          ],
          "identifier": "CVE-2013-2512",
          "identifiers": [
            "CVE-2013-2512"
          ],
          "package_slug": "gem/ftpd",
          "pubdate": "2013-02-28",
          "title": "Remote command execution",
          "urls": [
            "http://osvdb.org/show/osvdb/90784"
          ],
          "uuid": "4e36ea7c-d13c-439b-88a4-cefb42914c2f"
        }
      ]
    },
    "nvd.nist.gov": {
      "configurations": {
        "CVE_data_version": "4.0",
        "nodes": [
          {
            "children": [],
            "cpe_match": [
              {
                "cpe23Uri": "cpe:2.3:a:ftpd_project:ftpd:0.2.1:*:*:*:*:ruby:*:*",
                "cpe_name": [],
                "vulnerable": true
              }
            ],
            "operator": "OR"
          }
        ]
      },
      "cve": {
        "CVE_data_meta": {
          "ASSIGNER": "cve@mitre.org",
          "ID": "CVE-2013-2512"
        },
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "en",
              "value": "The ftpd gem 0.2.1 for Ruby allows remote attackers to execute arbitrary OS commands via shell metacharacters in a LIST or NLST command argument within FTP protocol traffic."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "en",
                  "value": "CWE-78"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "http://vapidlabs.com/advisory.php?v=34",
              "refsource": "MISC",
              "tags": [
                "Exploit",
                "Third Party Advisory"
              ],
              "url": "http://vapidlabs.com/advisory.php?v=34"
            }
          ]
        }
      },
      "impact": {
        "baseMetricV2": {
          "acInsufInfo": false,
          "cvssV2": {
            "accessComplexity": "LOW",
            "accessVector": "NETWORK",
            "authentication": "NONE",
            "availabilityImpact": "COMPLETE",
            "baseScore": 10.0,
            "confidentialityImpact": "COMPLETE",
            "integrityImpact": "COMPLETE",
            "vectorString": "AV:N/AC:L/Au:N/C:C/I:C/A:C",
            "version": "2.0"
          },
          "exploitabilityScore": 10.0,
          "impactScore": 10.0,
          "obtainAllPrivilege": false,
          "obtainOtherPrivilege": false,
          "obtainUserPrivilege": false,
          "severity": "HIGH",
          "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-02-04T15:00Z",
      "publishedDate": "2021-01-26T23:15Z"
    }
  }
}