Vulnerabilities in pkg:golang/github.com/devfile/registry-support/registry-library
PACKAGECVE-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.
pkg:golang/github.com/devfile/registry-support/registry-library
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
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).
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.
Upgrade github.com/devfile/registry-support/registry-library to 0.0.0-20240206
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
CVE-2024-1485 Affected registry-support Versions
1 component(s)| 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?
Which registry-support versions are affected?
What version fixes CVE-2024-1485?
Is github.com/devfile/registry-support/registry-library affected?
What is the CVSS score of CVE-2024-1485?
What CWE is associated with CVE-2024-1485?
How can I check Go dependencies for CVE-2024-1485?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}