GitHub Advisoryadvisory · Go
GHSA-69x5-hjg4-m267 OpenShift Console Has a Path Traversal Vulnerability
MEDIUM
Official page ↗
- Aliases
- CVE-2024-7631
- Ecosystem
- Go
- Packages
- github.com/openshift/console
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- Weaknesses
- CWE-22
- Reviewed
- 2025-03-20
Affected packages
• Go github.com/openshift/console: <= 6.0.6 (no fix yet)
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.
Related
Alias · CVE (1)
- CVE-2024-7631 A flaw was found in the OpenShift Console, an endpoint for plugins to serve resources in multiple languages: /locales/resources.json. vulnerability
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness