8.2high
Improper sanitization of target names in tough
- Severity
- 8.2high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.11% (higher than 66% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-x3r5-q6mj-m485
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| awslabs tough | < 0.12.0 | CVE List |
| tough (crates.io) | before 0.12.0 | GitHub Advisory Database |
| amazon tough | before 0.12.0 | NVD |
All scores
| GitHub_M | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N |
| GitHub | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N |
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
| NVD | 8.5high CVSS:2.0 | AV:N/AC:L/Au:S/C:N/I:C/A:C |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
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
References
| https://github.com/awslabs/tough/security/advisories/GHSA-x3r5-q6mj-m485 | third-party-advisory, web | |
| https://github.com/awslabs/tough/commit/1809b9bd1106d78a51fbea3071aa97a3530bac9a | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-41149 | advisory | |
| https://github.com/awslabs/tough | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-41149 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-x3r5-q6mj-m485 changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-41149 changed 2026-06-17 | Public domain |