CVE-2024-7631: Openshift-console: openshift console: path traversal

Published Jul 5, 2024
·
Updated

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.

Other sources

Path traversal is a vulnerability that allows an attacker to read arbitrary files and directories that are stored outside of the intended files to distribute. This might include sensitive files like secrets, configuration files as well as sensitive operating system files (like /etc/passwd). The OpenShift Console has an endpoint for plugins to serve resources in multiple languages: /locales/resources.json The lng and ns parameters for this endpoint are used to unsafely construct a filepath in pkg/plugins/handlers.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.

Impact: Because of the affected endpoint's logic, only files with the .json extension can be accessed, limiting greatly the impact of this vulnerability. No security-impactful JSON files could be identified on the console's pod.

Red Hat

Affected Software

2 affected components
Red Hat OpenShift Console
go/github.com/openshift/console<=6.0.6

Event History

Jul 5, 2024
Data Sourced
via Red Hat·09:05 PM
DescriptionSeverityAffected Software
Mar 19, 2025
CVE Published
via MITRE·06:47 PM
Data Sourced
via MITRE·06:47 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·09:30 PM
Data Sourced
via GitHub·09:30 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-7631?

CVE-2024-7631 is rated as a high-severity vulnerability due to its potential impact on OpenShift Console users.

2

How do I fix CVE-2024-7631?

To mitigate CVE-2024-7631, ensure you are using a patched version of Red Hat OpenShift Console above 6.0.6.

3

Which versions of OpenShift Console are affected by CVE-2024-7631?

CVE-2024-7631 affects Red Hat OpenShift Console versions up to and including 6.0.6.

4

What components are impacted by CVE-2024-7631?

The vulnerability affects the OpenShift Console's handling of the /locales/resources.json endpoint.

5

Is CVE-2024-7631 exploitable remotely?

Yes, CVE-2024-7631 can be exploited remotely if the OpenShift Console is exposed to the internet.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203