{"id":"GHSA-vrxp-mg9f-hwf3","summary":"Improperly Implemented path matching for in-toto-golang","details":"### Impact\nAuthenticated 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).\n\n### Patches\nThe problem has been fixed in version 0.3.0.\n\n### Workarounds\nExploiting this vulnerability is dependent on the specific policy applied.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [in-toto-golang](http://github.com/in-toto/in-toto-golang)\n* Email us at [in-toto-public](mailto:in-toto-public@googlegroups.com)\n* If this is a sensitive security-relevant disclosure, please send a PGP encrypted email to santiagotorres@purdue.edu or jcappos@nyu.edu\n","aliases":["CVE-2021-41087","GO-2022-0936"],"modified":"2026-05-07T05:00:51.397562139Z","published":"2021-09-22T20:37:09Z","database_specific":{"cwe_ids":["CWE-22","CWE-345"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2021-09-21T21:51:18Z","nvd_published_at":"2021-09-21T21:15:00Z"},"references":[{"type":"WEB","url":"https://github.com/in-toto/in-toto-golang/security/advisories/GHSA-vrxp-mg9f-hwf3"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41087"},{"type":"WEB","url":"https://github.com/in-toto/in-toto-golang/commit/f2c57d1e0f15e3ffbeac531829c696b72ecc4290"},{"type":"PACKAGE","url":"https://github.com/in-toto/in-toto-golang"}],"affected":[{"package":{"name":"github.com/in-toto/in-toto-golang","ecosystem":"Go","purl":"pkg:golang/github.com/in-toto/in-toto-golang"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.3.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-vrxp-mg9f-hwf3/GHSA-vrxp-mg9f-hwf3.json","last_known_affected_version_range":"\u003c= 0.2.0"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N"}]}