{"answers":{"affected":"2 open source packages ship an affected version, including katello. It affects 1 product.","exploited":"There is no known exploitation of CVE-2017-2662 in the wild and no public exploit code.","fix":"Upgrade katello to 3.17.0.rc1 or later.","what":"CVE-2017-2662 is a medium-severity missing authorization vulnerability in The Foreman Project foreman katello plugin, published on 22 Aug 2018. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2017-2662 and fix it if it is affected.\n\nWhat it is: CVE-2017-2662 is a medium-severity missing authorization vulnerability in The Foreman Project foreman katello plugin, published on 22 Aug 2018. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2017-2662 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- katello (RubyGems): affected all versions; fixed in 3.17.0.rc1\n- katello (RubyGems): affected all versions; fixed in 3.17.0.rc1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2017-2662/ (Markdown: https://insights.sbomify.com/CVE-2017-2662/index.md)","id":"CVE-2017-2662","markdown":"https://insights.sbomify.com/CVE-2017-2662/index.md","name":"CVE-2017-2662","record":{"aliases":["GHSA-cpv6-pfq6-j2v7"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["privilege_escalation","data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Foreman Katello plugin","requires_auth":"low_privilege","summary":"Attackers can bypass repository access filters via Hammer CLI, gaining unauthorized read access to restricted data in Foreman Katello.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"katello","vendor":"theforeman"}],"cvss":{"score":4.3,"severity":"medium","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","version":"3.0"},"cwes":[{"id":"CWE-269","name":"Improper Privilege Management"},{"id":"CWE-862","name":"Missing Authorization"}],"description":"A flaw was found in Foreman's katello plugin version 3.4.5. After setting a new role to allow restricted access on a repository with a filter (filter set on the Product Name), the filter is not respected when the actions are done via hammer using the repository id.","ecosystems":["RubyGems"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"katello Improper Privilege Management vulnerability","id":"CVE-2017-2662","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"missing_authorization","year":"2017"},"n_packages":2,"n_references":2,"next":{"headline":"Missing authorization in subscription-manager","id":"CVE-2017-2663"},"packages":[{"ecosystem":"RubyGems","fixed":["3.17.0.rc1"],"introduced":["0"],"last_affected":[],"package":"katello","purl":null,"source":"GHSA-cpv6-pfq6-j2v7"},{"ecosystem":"RubyGems","fixed":["3.17.0.rc1"],"introduced":["0"],"last_affected":[],"package":"katello","purl":"pkg:gem/katello","source":"GHSA-cpv6-pfq6-j2v7"}],"prev":{"headline":"Cross-site scripting in pcs","id":"CVE-2017-2661"},"products":["foreman katello plugin"],"published":"2018-08-22","related":[{"cvss_score":7.5,"headline":"Denial of service in Katello","id":"CVE-2013-4120","kev_date_added":null,"published":"2019-12-10"},{"cvss_score":5.4,"headline":"Cross-site scripting in Katello","id":"CVE-2013-0283","kev_date_added":null,"published":"2019-12-05"},{"cvss_score":4.3,"headline":"katello SQL Injection vulnerability","id":"CVE-2018-14623","kev_date_added":null,"published":"2018-12-13"},{"cvss_score":4.1,"headline":"Katello cleartext password storage issue","id":"CVE-2019-14825","kev_date_added":null,"published":"2019-11-25"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["The Foreman Project"]},"summary":"Attackers can bypass repository access filters via Hammer CLI, gaining unauthorized read access to restricted data in Foreman Katello.","url":"https://insights.sbomify.com/CVE-2017-2662/"}