{"id":"CVE-2024-7631","summary":"Openshift-console: openshift console: path traversal","details":"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.","aliases":["GHSA-69x5-hjg4-m267","GO-2025-3539"],"modified":"2026-07-08T07:57:53.537383253Z","published":"2025-03-19T18:47:27.721Z","related":["openSUSE-SU-2025:14937-1"],"database_specific":{"cwe_ids":["CWE-22"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/7xxx/CVE-2024-7631.json","cna_assigner":"redhat"},"references":[{"type":"WEB","url":"https://access.redhat.com/downloads/content/package-browser/"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2024-7631"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/7xxx/CVE-2024-7631.json"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-69x5-hjg4-m267"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-7631"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2296053"},{"type":"PACKAGE","url":"https://github.com/openshift/console"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/openshift/console","events":[{"introduced":"0"},{"last_affected":"eb401782f934b8eb824eae95bc827dcaa1c02662"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"last_affected":"6.0.6"}],"source":"AFFECTED_FIELD"}}],"versions":["v6.0.6","v6.0.5","v5.0.5","v6.0.3","v6.0.4","v6.0.2","v6.0.1","v6.0.0","v5.1.0","v5.0.4","v5.0.3","v5.0.2","v5.0.1","v5.0.0","v4.0.6","v4.0.5","v4.0.4","v4.0.3","v4.0.2","v4.0.1","v4.0.0","v3.0.8","v3.0.7","v3.0.6","v3.0.5","v3.0.4","v3.0.3","v3.0.2","v3.0.1","v3.0.0","v2.7.2","v2.7.1","v2.7.0","v2.6.1","v2.6.2","v2.6.0","v2.5.3","v2.5.2","v2.5.1","v2.5.0","v2.4.0","v2.3.2","v2.3.1","v2.3.0","v2.2.1","v2.2.0","v2.1.0","v2.0.1","v2.0.0","v1.9.0","v1.8.5","v1.8.4","v1.8.3","v1.8.2","v1.8.1","v1.8.0","v1.7.4","v1.7.3","v1.7.2","describe","v1.7.1","v1.7.0","v1.6.3","v1.6.2","v1.6.1","v1.6.0","v1.5.5","v1.5.4","v1.5.3","v1.5.2","v1.5.1","v1.5.0","v1.4.1","v1.4.0","v1.3.1","v1.3.0","v1.2.1","v1.2.0","v1.1.1","v1.1.0","v1.0.1","v1.0.2","v1.0.3","v1.0.0","v0.9.1","v0.9.0","v0.8.1","v0.8.0","v0.7.2","v0.7.1","v0.7.0","v0.5.2","v0.6.1","v0.6.0","v0.5.1","v0.5.0","v0.4.0","v0.3.0","v0.2.0-alpha.2","v0.2.0","v0.2.0-rc.1","v0.2.0-rc.3","v0.2.0-rc.2","v0.2.0-alpha.1","v0.1.9","v0.1.8","v0.1.7","v0.1.6","v0.1.5","v0.1.4","v0.1.3","v0.1.2","v0.1.1","v0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-7631.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"}]}