Vulnerability · Published Mar 19, 2025 · Assigned by redhat
CVE-2024-7631Openshift-console: openshift console: path traversal
Medium 4.3
In plain English
A medium-severity path traversal in openshift-console. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 44% of all known vulnerabilities).
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/openshift/console | no fix listed | GHSA-69x5-hjg4-m267 |
| Go | github.com/openshift/console | no fix listed | GO-2025-3539 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| openshift-console | 0 – through 6.0.6 | |
| Red Hat | Red Hat OpenShift Container Platform 3.11 | see references |
| Red Hat | Red Hat OpenShift Container Platform 4 | see references |
Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
References
- https://access.redhat.com/security/cve/CVE-2024-7631 vdb-entry, x_refsource_REDHAT
- RHBZ#2296053 issue-tracking, x_refsource_REDHAT
- https://github.com/advisories/GHSA-69x5-hjg4-m267