{"answers":{"affected":"3 open source packages ship an affected version, including github.com/openshift/console.","exploited":"There is no known exploitation of CVE-2024-7631 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2024-7631 is a medium-severity path traversal vulnerability in Red Hat OpenShift Container Platform 3.11, published on 19 Mar 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-7631 and fix it if it is affected.\n\nWhat it is: CVE-2024-7631 is a medium-severity path traversal vulnerability in Red Hat OpenShift Container Platform 3.11, published on 19 Mar 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-7631 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/openshift/console (Go): affected all versions; no fix listed\n- github.com/openshift/console (Go): affected all versions up to 6.0.6; no fix listed\n- github.com/openshift/console (Go): affected all versions up to 6.0.6; no fix listed\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-2024-7631/ (Markdown: https://insights.sbomify.com/CVE-2024-7631/index.md)","id":"CVE-2024-7631","markdown":"https://insights.sbomify.com/CVE-2024-7631/index.md","name":"CVE-2024-7631","record":{"aliases":["GHSA-69x5-hjg4-m267","GO-2025-3539"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"OpenShift Console","requires_auth":"low_privilege","summary":"An authenticated attacker can exploit unsafe filepath construction in the OpenShift Console to read arbitrary JSON files from the server.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[],"cvss":{"score":4.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"A flaw was found in the OpenShift Console, an endpoint for plugins to serve resources in multiple languages: /locales/resources.json. This endpoint's lng and ns parameters are used to construct a filepath in pkg/plugins/handlers unsafely.go#L112 Because of this unsafe filepath construction, an authenticated user can manipulate the path to retrieve any JSON files on the console's pod by using sequences of ../ and valid directory paths.","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":"Openshift-console: openshift console: path traversal","id":"CVE-2024-7631","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":3,"n_references":3,"next":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2024-7633"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/openshift/console","purl":"pkg:golang/github.com/openshift/console","source":"GO-2025-3539"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["6.0.6"],"package":"github.com/openshift/console","purl":null,"source":"GHSA-69x5-hjg4-m267"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["6.0.6"],"package":"github.com/openshift/console","purl":"pkg:golang/github.com/openshift/console","source":"GHSA-69x5-hjg4-m267"}],"prev":{"headline":"Relevanssi \u003c= 4.22.2 (Free) and \u003c= 2.25.1 (Premium) - Unauthenticated Information Exposure","id":"CVE-2024-7630"},"products":["Red Hat OpenShift Container Platform 3.11","Red Hat OpenShift Container Platform 4"],"published":"2025-03-19","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":"2026-09-03","vendors":["Red Hat"]},"summary":"An authenticated attacker can exploit unsafe filepath construction in the OpenShift Console to read arbitrary JSON files from the server.","url":"https://insights.sbomify.com/CVE-2024-7631/"}