GO-2021-0094

    Dashboard / Vulnerabilities / GO-2021-0094

    GO-2021-0094

    Published: 14 Apr 2021Last Modified: 20 May 2024

    Summary: Directory traversal in github.com/hashicorp/go-slug

    Details: Protections against directory traversal during archive extraction can be bypassed by chaining multiple symbolic links within the archive. This allows a malicious attacker to cause files to be created outside of the target directory. Additionally if the attacker is able to read extracted files they may create symbolic links to arbitrary files on the system which the unpacker has permissions to read.

    Affected packages

    Package

    Name: github.com/hashicorp/go-slug

    Purl: pkg:golang/github.com/hashicorp/go-slug

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -0.5.0

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GO-2021-0094 | CVE-DB