Skip to content

registry-support: decompress can delete files outside scope via relative paths

High severity GitHub Reviewed Published Feb 14, 2024 to the GitHub Advisory Database • Updated Feb 22, 2024

Package

gomod github.com/devfile/registry-support/registry-library (Go)

Affected versions

< 0.0.0-20240206

Patched versions

0.0.0-20240206

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.

References

Published by the National Vulnerability Database Feb 14, 2024
Published to the GitHub Advisory Database Feb 14, 2024
Reviewed Feb 21, 2024
Last updated Feb 22, 2024

Severity

High
8.0
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
None
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:H

Weaknesses

CVE ID

CVE-2024-1485

GHSA ID

GHSA-84xv-jfrm-h4gm

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.