{
  "schema_version": "1.4.0",
  "id": "GHSA-8jhx-9gf4-hhf5",
  "modified": "2023-08-29T11:51:45Z",
  "published": "2019-09-27T20:01:00Z",
  "aliases": [
    "CVE-2019-16377"
  ],
  "summary": "Consul gem insufficient authentication check - Multiple powers in one controller are not always checked correctly",
  "details": "With the consul ruby gem before 1.0.3, if a controller checks multiple powers  using `:if` or `:except` conditions, these conditions are erroneously applied to all power checks in that controller. This can lead to skipped power checks and hence unauthenticated access to certain controller actions.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "RubyGems",
        "name": "consul"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.0.3"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-16377"
    },
    {
      "type": "WEB",
      "url": "https://github.com/makandra/consul/issues/49"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/makandra/consul"
    },
    {
      "type": "WEB",
      "url": "https://github.com/rubysec/ruby-advisory-db/blob/c26fbc13435b8be448ad59131428538049d165e4/gems/consul/CVE-2019-16377.yml"
    },
    {
      "type": "WEB",
      "url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/consul/CVE-2019-16377.yml"
    },
    {
      "type": "WEB",
      "url": "https://rubygems.org/gems/consul"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-284"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2019-09-25T01:09:01Z",
    "nvd_published_at": "2019-09-23T16:15:00Z"
  }
}