Vulnerability Details : CVE-2021-41150
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.
Vulnerability category: Directory traversal
Products affected by CVE-2021-41150
- cpe:2.3:a:amazon:tough:*:*:*:*:*:rust:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-41150
0.52%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 64 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-41150
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
3.5
|
LOW | AV:N/AC:M/Au:S/C:N/I:P/A:N |
6.8
|
2.9
|
NIST | |
6.5
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
2.8
|
3.6
|
NIST | |
8.2
|
HIGH | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N |
1.8
|
5.8
|
GitHub, Inc. |
CWE ids for CVE-2021-41150
-
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.Assigned by:
- nvd@nist.gov (Primary)
- security-advisories@github.com (Secondary)
References for CVE-2021-41150
-
https://github.com/awslabs/tough/security/advisories/GHSA-r56q-vv3c-6g9c
Improper sanitization of delegated role names · Advisory · awslabs/tough · GitHubThird Party Advisory
-
https://github.com/theupdateframework/python-tuf/security/advisories/GHSA-wjw6-2cqr-j4qr
Client metadata path-traversal flaw can result in files written outside of metadata store · Advisory · theupdateframework/python-tuf · GitHubThird Party Advisory
-
https://github.com/awslabs/tough/commit/1809b9bd1106d78a51fbea3071aa97a3530bac9a
Merge pull request from GHSA-x3r5-q6mj-m485 · awslabs/tough@1809b9b · GitHubPatch;Third Party Advisory
Jump to