{"id":"GHSA-8jhx-9gf4-hhf5","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.","aliases":["CVE-2019-16377"],"modified":"2023-11-01T04:50:36.535361Z","published":"2019-09-27T20:01:00Z","database_specific":{"nvd_published_at":"2019-09-23T16:15:00Z","cwe_ids":["CWE-284"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2019-09-25T01:09:01Z"},"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"}],"affected":[{"package":{"name":"consul","ecosystem":"RubyGems","purl":"pkg:gem/consul"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.3"}]}],"versions":["0.1.0","0.1.1","0.1.2","0.10.0","0.10.1","0.10.2","0.11.0","0.11.1","0.11.2","0.12.0","0.12.1","0.12.2","0.12.3","0.12.4","0.13.0","0.13.1","0.13.2","0.14.0","0.14.1","0.2.0","0.2.1","0.2.2","0.2.3","0.3.0","0.4.0","0.4.1","0.4.2","0.5.0","0.6.0","0.6.1","0.7.0","0.8.0","0.9.0","0.9.1","1.0.0","1.0.1","1.0.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/09/GHSA-8jhx-9gf4-hhf5/GHSA-8jhx-9gf4-hhf5.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}