Files
CVEs-PoC/2021/CVE-2021-41150.md
T
2024-05-25 21:48:12 +02:00

18 lines
1.1 KiB
Markdown

### [CVE-2021-41150](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-41150)
![](https://img.shields.io/static/v1?label=Product&message=tough&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-22%3A%20Improper%20Limitation%20of%20a%20Pathname%20to%20a%20Restricted%20Directory%20('Path%20Traversal')&color=brighgreen)
### 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.
### POC
#### Reference
- https://github.com/theupdateframework/python-tuf/security/advisories/GHSA-wjw6-2cqr-j4qr
#### Github
No PoCs found on GitHub currently.