GHSA-x3r5-q6mj-m485

Suggest an improvement
Source
https://github.com/advisories/GHSA-x3r5-q6mj-m485
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-x3r5-q6mj-m485/GHSA-x3r5-q6mj-m485.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-x3r5-q6mj-m485
Aliases
Published
2021-10-19T20:16:15Z
Modified
2023-11-08T04:06:52.912625Z
Severity
  • 8.2 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N CVSS Calculator
Summary
Improper sanitization of target names
Details

Impact

The tough library, prior to 0.12.0, does not properly sanitize target names when caching a repository, or when saving specific targets to an output directory. When targets are cached or saved, files could be overwritten with arbitrary content anywhere on the system.

AWS would like to thank https://github.com/jku for reporting this issue.

Patches

A fix is available in version 0.12.0.

Workarounds

No workarounds to this issue are known.

Database specific
{
    "nvd_published_at": "2021-10-19T18:15:00Z",
    "github_reviewed_at": "2021-10-19T18:04:34Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-22"
    ]
}
References

Affected packages

crates.io / tough

Package

Affected ranges

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