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

Medium 4.3 Published Updated

An authenticated attacker can exploit unsafe filepath construction in the OpenShift Console to read arbitrary JSON files from the server.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-7631?

CVE-2024-7631 is a medium-severity path traversal vulnerability in Red Hat OpenShift Container Platform 3.11, published on 19 Mar 2025. Any signed-in user can exploit it over the network, with no action from the victim.

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.

Weakness: CWE-22

Which versions are affected by CVE-2024-7631?

3 open source packages ship an affected version, including github.com/openshift/console.

PackageAffectedFixed in
github.com/openshift/console GoAll versionsNone
github.com/openshift/console GoAll versions to 6.0.6None
github.com/openshift/console GoAll versions to 6.0.6None

How do I fix CVE-2024-7631?

Apply the vendor's patch.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-7631 being exploited?

There is no known exploitation of CVE-2024-7631 in the wild and no public exploit code.

Sources

Also known as GHSA-69x5-hjg4-m267, GO-2025-3539.

Is CVE-2024-7631 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free