GHSA-62jx-8vmh-4mcw

Suggest an improvement
Source
https://github.com/advisories/GHSA-62jx-8vmh-4mcw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-62jx-8vmh-4mcw/GHSA-62jx-8vmh-4mcw.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-62jx-8vmh-4mcw
Aliases
Published
2021-08-25T20:58:23Z
Modified
2023-11-08T04:06:27.878399Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
Links in archive can create arbitrary directories
Details

When unpacking a tarball that contains a symlink the tar crate may create directories outside of the directory it's supposed to unpack into. The function errors when it's trying to create a file, but the folders are already created at this point.

Database specific
{
    "nvd_published_at": "2021-08-10T23:15:00Z",
    "cwe_ids": [
        "CWE-22"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2021-08-18T20:08:23Z"
}
References

Affected packages

crates.io / tar

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.4.36