GHSA-69x5-hjg4-m267

Suggest an improvement
Source
https://github.com/advisories/GHSA-69x5-hjg4-m267
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-69x5-hjg4-m267/GHSA-69x5-hjg4-m267.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-69x5-hjg4-m267
Aliases
Published
2025-03-19T21:30:52Z
Modified
2025-03-25T20:08:26.424662Z
Severity
  • 4.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2025-03-19T19:15:43Z",
    "github_reviewed": true,
    "github_reviewed_at": "2025-03-20T18:10:13Z",
    "severity": "MODERATE",
    "cwe_ids": [
        "CWE-22"
    ]
}
References

Affected packages

Go / github.com/openshift/console

Package

Name
github.com/openshift/console
View open source insights on deps.dev
Purl
pkg:golang/github.com/openshift/console

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
6.0.6