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

Severity (CVSS 3.1)4.3Medium
Exploit odds (30 days)0.5%top 55.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Gogithub.com/openshift/consoleno fix listedGHSA-69x5-hjg4-m267
Gogithub.com/openshift/consoleno fix listedGO-2025-3539

Affected products (as reported)

VendorProductVersions
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