Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/openshift/console
  4. ›
  5. CVE-2024-7631

CVE-2024-7631: OpenShift Console Has a Path Traversal Vulnerability

March 19, 2025 (updated March 20, 2025)

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.

References

  • access.redhat.com/security/cve/CVE-2024-7631
  • bugzilla.redhat.com/show_bug.cgi?id=2296053
  • github.com/advisories/GHSA-69x5-hjg4-m267
  • github.com/openshift/console
  • nvd.nist.gov/vuln/detail/CVE-2024-7631

Code Behaviors & Features

Detect and mitigate CVE-2024-7631 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 6.0.6

Solution

Unfortunately, there is no solution available yet.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

go/github.com/openshift/console/CVE-2024-7631.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:55 +0000.