Vulnerabilities in pkg:golang/github.com/devfile/registry-support/registry-library

PACKAGE
Advisory Identifier: GHSA-84xv-jfrm-h4gm
Advisory Summary

CVE-2024-1485 is a MODERATE (CVSS 8.0) decompress can delete files outside vulnerability (CWE-23: Relative Path Traversal) affecting registry-support libraries in the Go ecosystem. The issue involves decompress can delete files outside scope via relative paths. Remediation is available by upgrading affected packages to version 0.0.0-20240206.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/devfile/registry-support/registry-library

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/devfile/registry-support/registry-library. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-84xv-jfrm-h4gm CVE-2024-1485 MODERATE registry-support: decompress can delete files outside scope via relative paths

CVE-2024-1485 at a Glance

CVE Identifier CVE-2024-1485
GHSA Identifier GHSA-84xv-jfrm-h4gm
Severity MODERATE
CVSS v3.1 Base Score 8.0
CWE Classification CWE-23: Relative Path Traversal
Affected Product registry-support
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality None (C:N)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2024-1485

To remediate this vulnerability, upgrade all affected registry-support dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/devfile/registry-support/registry-library fixed: 0.0.0-20240206
Upgrade github.com/devfile/registry-support/registry-library to 0.0.0-20240206
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/devfile/registry-support/registry-library

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-1485, inspect your project dependencies for registry-support:

inspect dependencies for github.com/devfile/registry-support/registry-library

Analyze the terminal output to locate any version of registry-support in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20240206), 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-23: Relative Path Traversal, where the product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory. In registry-support, 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

A vulnerability was found in the decompression function of registry-support. This issue can be triggered by an unauthenticated remote attacker when tricking a user into opening a specially modified .tar archive, leading to the cleanup process following relative paths to overwrite or delete files outside the intended scope.

CVE-2024-1485 Affected registry-support Versions

1 component(s)
Fixed Versions:
0.0.0-20240206
Product / Package Ecosystem Affected Versions Fixed Version
github.com/devfile/registry-support/registry-library
Go
< 0.0.0-20240206
0.0.0-20240206

References

Frequently Asked Questions

What is CVE-2024-1485?
CVE-2024-1485 is a security vulnerability in registry-support involving decompress can delete files outside scope via relative paths under CWE-23: Relative Path Traversal.
Which registry-support versions are affected?
Affected versions include releases prior to 0.0.0-20240206 across affected packages: github.com/devfile/registry-support/registry-library.
What version fixes CVE-2024-1485?
Upgrading to 0.0.0-20240206 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/devfile/registry-support/registry-library affected?
Yes, github.com/devfile/registry-support/registry-library is affected in releases prior to 0.0.0-20240206. Upgrade your dependency to 0.0.0-20240206 or later.
What is the CVSS score of CVE-2024-1485?
CVE-2024-1485 has a CVSS v3.1 base score of 8.0 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:H.
What CWE is associated with CVE-2024-1485?
CVE-2024-1485 is classified under CWE-23: Relative Path Traversal (The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory.).
How can I check Go dependencies for CVE-2024-1485?
Run the dependency tree command: 'inspect dependencies for github.com/devfile/registry-support/registry-library'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-84xv-jfrm-h4gm",
  "modified" : "2026-02-27T20:59:07Z",
  "published" : "2024-02-14T00:35:42Z",
  "aliases" : [ "CVE-2024-1485" ],
  "summary" : "registry-support: decompress can delete files outside scope via relative paths",
  "details" : "A vulnerability was found in the decompression function of registry-support. This issue can be triggered by an unauthenticated remote attacker when tricking a user into opening a specially modified .tar archive, leading to the cleanup process following relative paths to overwrite or delete files outside the intended scope.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:N/SI:N/SA:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/devfile/registry-support/registry-library"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.0-20240206"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-1485"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/devfile/registry-support/pull/197"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/devfile/registry-support/commit/0e44b9ca6d03fac4fc3f77d37656d56dc5defe0d"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2024-1485"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2264106"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-84xv-jfrm-h4gm"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/devfile/registry-support"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22", "CWE-23", "CWE-73" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-21T23:18:42Z",
    "nvd_published_at" : "2024-02-14T00:15:46Z"
  }
}