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.
History

Thu, 20 Mar 2025 04:45:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Wed, 19 Mar 2025 19:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 19 Mar 2025 19:00:00 +0000

Type Values Removed Values Added
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.
Title Openshift-console: openshift console: path traversal
First Time appeared Redhat
Redhat openshift
Weaknesses CWE-22
CPEs cpe:/a:redhat:openshift:3.11
cpe:/a:redhat:openshift:4
Vendors & Products Redhat
Redhat openshift
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published: 2025-03-19T18:47:27.721Z

Updated: 2025-03-19T19:07:41.995Z

Reserved: 2024-08-08T21:18:33.908Z

Link: CVE-2024-7631

cve-icon Vulnrichment

Updated: 2025-03-19T19:07:36.268Z

cve-icon NVD

Status : Received

Published: 2025-03-19T19:15:43.920

Modified: 2025-03-19T19:15:43.920

Link: CVE-2024-7631

cve-icon Redhat

Severity : Moderate

Publid Date: 2025-03-19T17:49:00Z

Links: CVE-2024-7631 - Bugzilla