Skip to content

Unpacking routines potential exploit

Moderate
jimsheldon published GHSA-2vg7-qfhq-gpf6 Nov 30, 2020

Package

No package listed

Affected versions

<= 1.1.0

Patched versions

None

Description

Impact

Potentially could impact an agent where drone-cache ran in a 'trusted' pipeline.

Details

The routine Extract attempts to guard against creating symbolic links that point outside the directory a tar archive is extracted to. However, a malicious tarball first linking subdir/parent to .. (allowed, because subdir/.. falls within the archive root) and then linking subdir/parent/escapes to .. results in a symbolic link pointing to the tarball's parent directory, contrary to the routine's goals.

Patches

TBD

Workarounds

Ensure your repository is not trusted (see drone repo update)

Severity

Moderate

CVE ID

No known CVE

Weaknesses

No CWEs

Credits