{"id":"CVE-2021-41087","aliases":["CVE-2021-41087","GHSA-vrxp-mg9f-hwf3","GO-2022-0936"],"related":[],"kind":"vulnerability","state":"published","title":"Improperly Implemented path matching for in-toto-golang","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### 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","format":"markdown","source":"ghsa"},{"lang":"en","text":"Improperly Implemented path matching for in-toto-golang in github.com/in-toto/in-toto-golang","format":"markdown","source":"go"},{"lang":"es","text":"in-toto-golang es una implementación del marco de trabajo in-toto para proteger la integridad de la cadena de suministro de software. En las versiones afectadas, los atacantes autenticados que se hacen pasar por funcionarios (es decir, dentro de un conjunto de usuarios confiables para una disposición) pueden crear atestados que pueden omitir las reglas DISALLOW en la misma disposición. Un atacante con acceso a las claves privadas confiables, puede emitir un atestado que contenga un artefacto no permitido incluyendo una semántica de salto de ruta (por ejemplo, foo vs dir/../foo). Una explotación de esta vulnerabilidad depende de la política específica aplicada. El problema ha sido corregido en la versión 0.3.0","source":"nvd"}],"published":"2021-09-21T21:05:15.000Z","modified":"2026-07-08T06:29:57.206Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N","score":5.6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N","score":5.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N","score":5.6,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:N/I:P/A:N","score":4,"rating":"MEDIUM"}],"cwes":["CWE-22","CWE-345"],"affected":[{"ranges":[{"version":"< 0.3.0","status":"affected"}],"vendor":"in-toto","product":"in-toto-golang","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.3.0"}],"ecosystem":"Go","package":"github.com/in-toto/in-toto-golang","purl":"pkg:golang/github.com/in-toto/in-toto-golang","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.3.0"}],"ecosystem":"Go","package":"github.com/in-toto/in-toto-golang","purl":"pkg:golang/github.com/in-toto/in-toto-golang","source":"go"},{"ranges":[{"status":"affected","fixed":"0.3.0"}],"vendor":"in-toto","product":"in-toto-golang","cpe":"cpe:2.3:a:in-toto:in-toto-golang:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/in-toto/in-toto-golang/security/advisories/GHSA-vrxp-mg9f-hwf3","tags":["advisory","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/in-toto/in-toto-golang/commit/f2c57d1e0f15e3ffbeac531829c696b72ecc4290","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41087","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/in-toto/in-toto-golang","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-41087","url":"https://www.cve.org/CVERecord?id=CVE-2021-41087","licence":"CVE Terms of Use","modified":"2024-08-04T02:59:31.359Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vrxp-mg9f-hwf3","url":"https://github.com/advisories/GHSA-vrxp-mg9f-hwf3","licence":"CC-BY-4.0","modified":"2026-07-08T06:29:57.206Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0936","url":"https://pkg.go.dev/vuln/GO-2022-0936","licence":"CC-BY-4.0","modified":"2026-03-03T04:51:04.349Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-41087","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41087","licence":"Public domain","modified":"2026-06-17T04:07:50.890Z"}],"updatedAt":"2026-11-25T22:58:04.092Z","epss":{"score":0.0043,"percentile":0.39117,"date":"2026-12-01T12:00:22.000Z"}}