{"id":"CVE-2021-41150","published":"2021-10-19T19:55:09Z","modified":"2024-08-04T02:59:31Z","title":"Improper sanitization of delegated role names in tough","vendor":"awslabs","product":"tough","tier":"tail","description":{"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 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01281,"percentile":0.70775,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/awslabs/tough/commit/1809b9bd1106d78a51fbea3071aa97a3530bac9a","tags":["x_refsource_MISC"]},{"url":"https://github.com/awslabs/tough/security/advisories/GHSA-r56q-vv3c-6g9c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/theupdateframework/python-tuf/security/advisories/GHSA-wjw6-2cqr-j4qr","tags":["x_refsource_MISC"]}],"priority":{"score":19.9,"factors":[{"name":"EPSS percentile","points":14.15},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"awslabs","affectedVersions":[{"vendor":"awslabs","product":"tough","versions":["< 0.12.0"]}],"affected":[{"ecosystem":"crates.io","package":"tough","vulnerableRanges":["<0.12.0"],"patched":["0.12.0"],"from":["GHSA-r56q-vv3c-6g9c"],"provenance":"source"}],"summary":{"text":"The tough Rust library for The Update Framework (TUF) repositories, prior to version 0.12.0, fails to properly sanitize delegated role names when caching or loading a repository from the filesystem. An attacker who can supply a malicious delegated role name can cause files ending in .json to be overwritten with role metadata at arbitrary locations on the system; this requires network access and low-privilege authentication, with a user interaction-free, high-complexity attack and a scope change, and no workarounds are known so upgrading to 0.12.0 is the fix.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:15Z"},"euvd":{"id":"EUVD-2021-2252","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-theupdateframework-python-tuf-cve-2021-41131","parents":[{"from":"CVE-2021-41131","to":"CVE-2021-41150","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-wjw6-2cqr-j4qr","via":"related"},{"kind":"osv-related","provenance":"source","id":"GHSA-r56q-vv3c-6g9c","via":"reference","url":"https://github.com/theupdateframework/python-tuf/security/advisories/GHSA-wjw6-2cqr-j4qr"}]}]}}