{
  "schema_version": "1.4.0",
  "id": "GHSA-wg9m-gw3h-hg83",
  "modified": "2025-03-03T13:30:18Z",
  "published": "2019-07-16T00:42:27Z",
  "aliases": [
    "CVE-2019-13146"
  ],
  "summary": "field_test gem contains injection vulnerability",
  "details": "The field_test gem 0.3.0 for Ruby has unvalidated input. A method call that is expected to return a value from a certain set of inputs can be made to return any input, which can be dangerous depending on how applications use it. If an application treats arbitrary variants as trusted, this can lead to a variety of potential vulnerabilities like SQL injection or cross-site scripting (XSS).",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "RubyGems",
        "name": "field_test"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0.3.0"
            },
            {
              "fixed": "0.3.1"
            }
          ]
        }
      ],
      "versions": [
        "0.3.0"
      ]
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-13146"
    },
    {
      "type": "WEB",
      "url": "https://github.com/ankane/field_test/issues/17"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/ankane/field_test"
    },
    {
      "type": "WEB",
      "url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/field_test/CVE-2019-13146.yml"
    },
    {
      "type": "WEB",
      "url": "https://web.archive.org/web/20210115194802/http://www.securityfocus.com/bid/109114"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-74"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2019-07-15T23:48:32Z",
    "nvd_published_at": "2019-07-09T18:15:00Z"
  }
}