原始 OSV JSON{
"id": "GHSA-x3r5-q6mj-m485",
"aliases": [
"CVE-2021-41149"
],
"details": "### Impact\nThe 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.\n\nAWS would like to thank https://github.com/jku for reporting this issue.\n\n### Patches\nA fix is available in version 0.12.0.\n\n### Workarounds\nNo workarounds to this issue are known.\n",
"summary": "Improper sanitization of target names",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.12.0"
}
]
}
],
"package": {
"name": "tough",
"ecosystem": "crates.io"
}
}
],
"modified": "2021-10-19T18:04:34Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N"
}
],
"published": "2021-10-19T20:16:15Z",
"references": [
{
"url": "https://github.com/awslabs/tough/security/advisories/GHSA-x3r5-q6mj-m485",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-41149",
"type": "ADVISORY"
},
{
"url": "https://github.com/awslabs/tough/commit/1809b9bd1106d78a51fbea3071aa97a3530bac9a",
"type": "WEB"
},
{
"url": "https://github.com/awslabs/tough",
"type": "PACKAGE"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-22"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2021-10-19T18:15:00Z",
"github_reviewed_at": "2021-10-19T18:04:34Z"
}
}