{
  "schema_version": "1.4.0",
  "id": "GHSA-hrj5-qp7x-rpg6",
  "modified": "2023-01-25T22:46:17Z",
  "published": "2019-07-26T16:10:15Z",
  "aliases": [
    "CVE-2019-1010191"
  ],
  "summary": "SQL Injection in marginalia",
  "details": "marginalia < 1.6 is affected by SQL Injection. The impact is an injection of any SQL queries when a user controller argument is added as a component. This issue affects users that add a component that is user controller, for instance a parameter or a header. The attack vector is inputting of SQL to a vulnerable vector (header, http parameter, etc). The fixed version is 1.6.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "RubyGems",
        "name": "marginalia"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.6"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-1010191"
    },
    {
      "type": "WEB",
      "url": "https://github.com/basecamp/marginalia/pull/73"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/basecamp/marginalia"
    },
    {
      "type": "WEB",
      "url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/marginalia/CVE-2019-1010191.yml"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-89"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2019-07-25T16:03:29Z",
    "nvd_published_at": "2019-07-24T14:15:00Z"
  }
}