{"id":"CVE-2021-41149","aliases":["CVE-2021-41149","GHSA-x3r5-q6mj-m485"],"related":[],"kind":"vulnerability","state":"published","title":"Improper sanitization of target names in tough","summary":"Tough provides a set of Rust libraries and tools for using and generating the update framework (TUF) repositories. 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. A fix is available in version 0.12.0. No workarounds to this issue are known.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Tough provides a set of Rust libraries and tools for using and generating the update framework (TUF) repositories. 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. A fix is available in version 0.12.0. No workarounds to this issue are known.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Tough proporciona un conjunto de bibliotecas y herramientas de Rust para usar y generar los repositorios del marco de actualización (TUF). La biblioteca tough, versiones anteriores a 0.12.0, no sanea apropiadamente los nombres de los objetivos cuando es almacenado en caché un repositorio, o cuando son guardados objetivos específicos en un directorio de salida. Cuando los objetivos son almacenados en la caché o se guardan, los archivos podrían sobrescribirse con contenido arbitrario en cualquier parte del sistema. Se presenta una solución disponible en la versión 0.12.0. No se conocen soluciones a este problema","source":"nvd"}],"published":"2021-10-19T18:00:12.000Z","modified":"2026-07-08T06:27:45.360Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","score":8.2,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:N/I:C/A:C","score":8.5,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 0.12.0","status":"affected"}],"vendor":"awslabs","product":"tough","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.12.0"}],"ecosystem":"crates.io","package":"tough","purl":"pkg:cargo/tough","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.12.0"}],"vendor":"amazon","product":"tough","cpe":"cpe:2.3:a:amazon:tough:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://github.com/awslabs/tough/security/advisories/GHSA-x3r5-q6mj-m485","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/awslabs/tough/commit/1809b9bd1106d78a51fbea3071aa97a3530bac9a","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41149","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/awslabs/tough","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-41149","url":"https://www.cve.org/CVERecord?id=CVE-2021-41149","licence":"CVE Terms of Use","modified":"2024-08-04T02:59:31.624Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x3r5-q6mj-m485","url":"https://github.com/advisories/GHSA-x3r5-q6mj-m485","licence":"CC-BY-4.0","modified":"2026-07-08T06:27:45.360Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-41149","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41149","licence":"Public domain","modified":"2026-06-17T04:07:58.390Z"}],"updatedAt":"2026-11-25T22:58:04.568Z","epss":{"score":0.01113,"percentile":0.66916,"date":"2026-12-01T12:00:22.000Z"}}