8.2high
Improper sanitization of delegated role names in tough
- Severity
- 8.2high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.28% (higher than 70% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-r56q-vv3c-6g9c
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 delegated role names when caching a repository, or when loading a repository from the filesystem. When the repository is cached or loaded, files ending with the .json extension could be overwritten with role metadata 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 | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
| NVD | 3.5low CVSS:2.0 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
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 delegated role names when caching a repository, or when loading a repository from the filesystem. When the repository is cached or loaded, files ending with the .json extension could be overwritten with role metadata 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 delegated role names when caching a repository, or when loading a repository from the filesystem. When the repository is cached or loaded, files ending with the .json extension could be overwritten with role metadata 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.
References
https://github.com/theupdateframework/python-tuf/security/advisories/GHSA-wjw6-2cqr-j4qr
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 adecuadamente los nombres de los roles delegados cuando se almacena en caché un repositorio, o cuando se carga un repositorio desde el sistema de archivos. Cuando el repositorio se almacena en caché o se carga, los archivos que terminan con la extensión .json podrían sobrescribirse con metadatos de roles en cualquier parte del sistema. Una corrección está disponible en la versión 0.12.0. No se conocen soluciones a este problema
References
| https://github.com/awslabs/tough/commit/1809b9bd1106d78a51fbea3071aa97a3530bac9a | patch, third-party-advisory, web | |
| https://github.com/awslabs/tough/security/advisories/GHSA-r56q-vv3c-6g9c | third-party-advisory, web | |
| https://github.com/theupdateframework/python-tuf/security/advisories/GHSA-wjw6-2cqr-j4qr | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-41150 | advisory | |
| https://github.com/awslabs/tough | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-41150 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-r56q-vv3c-6g9c changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2021-41150 changed 2026-06-17 | Public domain |