devfile/registry-support · Security
registry-support: decompress can delete files outside scope via relative paths
- GHSA ID
- GHSA-84xv-jfrm-h4gm
- CVE ID
- CVE-2024-1485
- Severity
- medium
- Published
- Updated
- CVSS
- 8 · CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:H
- CVSS v3
- 8 · CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:H
- CVSS v4
- 4.6 · 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
Description
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.
CWEs
- CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- CWE-23 · Relative Path Traversal
- CWE-73 · External Control of File Name or Path
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-1485 ↗
- https://github.com/devfile/registry-support/commit/0e44b9ca6d03fac4fc3f77d37656d56dc5defe0d ↗
- https://access.redhat.com/security/cve/CVE-2024-1485 ↗
- https://bugzilla.redhat.com/show_bug.cgi?id=2264106 ↗
- https://github.com/devfile/registry-support/pull/197 ↗
- https://github.com/advisories/GHSA-84xv-jfrm-h4gm ↗