CVE-2024-7631: Github.com/openshift/console Path Traversal Vulnerability
MODERATECVE-2024-7631 is a MODERATE (CVSS 4.3) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Github.com/openshift/console libraries in the Go ecosystem. The issue involves openshift console has a path traversal vulnerability. Remediation is available in the latest vendor maintenance releases.
CVE-2024-7631 at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2024-7631
To remediate this vulnerability, upgrade all affected Github.com/openshift/console dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/openshift/console to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/openshift/console
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-7631, inspect your project dependencies for Github.com/openshift/console:
inspect dependencies for github.com/openshift/console
Analyze the terminal output to locate any version of Github.com/openshift/console in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Github.com/openshift/console, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-7631 Affected Github.com/openshift/console Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/openshift/console
|
Go |
≤ 6.0.6
|
|
References
Frequently Asked Questions
What is CVE-2024-7631?
Which Github.com/openshift/console versions are affected?
What version fixes CVE-2024-7631?
Is github.com/openshift/console affected?
What is the CVSS score of CVE-2024-7631?
What CWE is associated with CVE-2024-7631?
How can I check Go dependencies for CVE-2024-7631?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-69x5-hjg4-m267",
"modified" : "2026-03-25T20:51:15Z",
"published" : "2025-03-19T21:30:52Z",
"aliases" : [ "CVE-2024-7631" ],
"summary" : "OpenShift Console Has a Path Traversal Vulnerability",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/openshift/console"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "6.0.6"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-7631"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/security/cve/CVE-2024-7631"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2296053"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/openshift/console"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2025-3539"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-03-20T18:10:13Z",
"nvd_published_at" : "2025-03-19T19:15:43Z"
}
}