{"id":"CVE-2021-41087","published":"2021-09-21T21:05:15Z","modified":"2024-08-04T02:59:31Z","title":"Improperly Implemented path matching for in-toto-golang","vendor":"in-toto","product":"in-toto-golang","tier":"tail","description":{"text":"in-toto-golang is a go implementation of the in-toto framework to protect software supply chain integrity. In affected versions authenticated attackers posing as functionaries (i.e., within a trusted set of users for a layout) are able to create attestations that may bypass DISALLOW rules in the same layout. An attacker with access to trusted private keys, may issue an attestation that contains a disallowed artifact by including path traversal semantics (e.g., foo vs dir/../foo). Exploiting this vulnerability is dependent on the specific policy applied. The problem has been fixed in version 0.3.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.6,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0043,"percentile":0.28945,"provenance":"source"},"cwes":[{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"}],"references":[{"url":"https://github.com/in-toto/in-toto-golang/security/advisories/GHSA-vrxp-mg9f-hwf3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/in-toto/in-toto-golang/commit/f2c57d1e0f15e3ffbeac531829c696b72ecc4290","tags":["x_refsource_MISC"]}],"priority":{"score":9.7,"factors":[{"name":"EPSS percentile","points":5.79},{"name":"CVSS severity","points":3.92}]},"vendorSlug":"in-toto","affectedVersions":[{"vendor":"in-toto","product":"in-toto-golang","versions":["< 0.3.0"]}],"affected":[{"ecosystem":"Go","package":"github.com/in-toto/in-toto-golang","vulnerableRanges":["<0.3.0"],"patched":["0.3.0"],"from":["GHSA-vrxp-mg9f-hwf3","GO-2022-0936"],"provenance":"source"}],"summary":{"text":"The flaw is in the path matching logic of in-toto-golang, the Go implementation of the in-toto framework for software supply chain integrity, where paths in attestations are improperly verified. An attacker who is an authenticated functionary holding trusted private keys can exploit it by including path traversal sequences (such as dir/../foo instead of foo) in an attestation, which can bypass DISALLOW rules in the same layout, though exploitation depends on the specific policy applied.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:56:55Z"},"euvd":{"id":"EUVD-2021-2118","exploited":false,"provenance":"source"}}