{"answers":{"affected":"5 open source packages ship an affected version, including github.com/rancher/rancher.","exploited":"There is no known exploitation of CVE-2022-45157 in the wild and no public exploit code.","fix":"Upgrade github.com/rancher/rancher to a fixed version for your release line: 2.8.9 or 2.9.3.","what":"CVE-2022-45157 is a high-severity vulnerability in SUSE rancher, published on 13 Nov 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-45157 and fix it if it is affected.\n\nWhat it is: CVE-2022-45157 is a high-severity vulnerability in SUSE rancher, published on 13 Nov 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-45157 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/rancher/rancher (Go): affected all versions; no fix listed\n- github.com/rancher/rancher (Go): affected from 2.7.0; fixed in 2.8.9\n- github.com/rancher/rancher (Go): affected from 2.7.0; fixed in 2.8.9\n- github.com/rancher/rancher (Go): affected from 2.9.0; fixed in 2.9.3\n- github.com/rancher/rancher (Go): affected from 2.9.0; fixed in 2.9.3\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-2022-45157/ (Markdown: https://insights.sbomify.com/CVE-2022-45157/index.md)","id":"CVE-2022-45157","markdown":"https://insights.sbomify.com/CVE-2022-45157/index.md","name":"CVE-2022-45157","record":{"aliases":["GHSA-xj7w-r753-vj8v","GO-2024-3223"],"analysis":{"component_type":"cloud_service","fix_type":"patch","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Rancher management platform","requires_auth":"low_privilege","summary":"Attackers can read plaintext vSphere credentials stored in Rancher objects, compromising cloud infrastructure access for users deploying vSphere clusters.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"suse","cpe":[],"cvss":{"score":8.5,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:L/SC:H/SI:L/SA:L","version":"4.0"},"cwes":[{"id":"CWE-522","name":"Insufficiently Protected Credentials"}],"description":"A vulnerability has been identified in the way that Rancher stores vSphere's CPI (Cloud Provider Interface) and CSI (Container Storage Interface) credentials used to deploy clusters through the vSphere cloud provider. This issue leads to the vSphere CPI and CSI passwords being stored in a plaintext object inside Rancher. This vulnerability is only applicable to users that deploy clusters in vSphere environments.","ecosystems":["Go"],"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":"Exposure of vSphere's CPI and CSI credentials in Rancher","id":"CVE-2022-45157","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2022"},"n_packages":5,"n_references":2,"next":{"headline":"Information disclosure in n/a","id":"CVE-2022-45163"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/rancher/rancher","purl":"pkg:golang/github.com/rancher/rancher","source":"GO-2024-3223"},{"ecosystem":"Go","fixed":["2.8.9"],"introduced":["2.7.0"],"last_affected":[],"package":"github.com/rancher/rancher","purl":null,"source":"GHSA-xj7w-r753-vj8v"},{"ecosystem":"Go","fixed":["2.8.9"],"introduced":["2.7.0"],"last_affected":[],"package":"github.com/rancher/rancher","purl":"pkg:golang/github.com/rancher/rancher","source":"GHSA-xj7w-r753-vj8v"},{"ecosystem":"Go","fixed":["2.9.3"],"introduced":["2.9.0"],"last_affected":[],"package":"github.com/rancher/rancher","purl":null,"source":"GHSA-xj7w-r753-vj8v"},{"ecosystem":"Go","fixed":["2.9.3"],"introduced":["2.9.0"],"last_affected":[],"package":"github.com/rancher/rancher","purl":"pkg:golang/github.com/rancher/rancher","source":"GHSA-xj7w-r753-vj8v"}],"prev":{"headline":"obs-service-go_modules: arbitrary directory delete","id":"CVE-2022-45155"},"products":["rancher"],"published":"2024-11-13","related":[],"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":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-11-13","vendors":["SUSE"]},"summary":"Attackers can read plaintext vSphere credentials stored in Rancher objects, compromising cloud infrastructure access for users deploying vSphere clusters.","url":"https://insights.sbomify.com/CVE-2022-45157/"}