# CVE-2021-41087: Improperly Implemented path matching for in-toto-golang

- Severity: Medium 5.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Published: 2021-09-21T21:05:15.000Z
- Modified: 2026-07-08T06:29:57.206Z
- Also known as: GHSA-vrxp-mg9f-hwf3, GO-2022-0936
- Weaknesses: CWE-22, CWE-345
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- in-toto in-toto-golang: < 0.3.0; before 0.3.0
- github.com/in-toto/in-toto-golang (Go): before 0.3.0

## Every score

- GitHub_M: CVSS:3.1 5.6 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N`
- GitHub: CVSS:3.1 5.6 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:P/A:N`

## References

- <https://github.com/in-toto/in-toto-golang/security/advisories/GHSA-vrxp-mg9f-hwf3> (advisory, third-party-advisory, web)
- <https://github.com/in-toto/in-toto-golang/commit/f2c57d1e0f15e3ffbeac531829c696b72ecc4290> (fix, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-41087> (advisory)
- <https://github.com/in-toto/in-toto-golang> (package)

## Sources

- CVE List: [CVE-2021-41087](https://www.cve.org/CVERecord?id=CVE-2021-41087), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-vrxp-mg9f-hwf3](https://github.com/advisories/GHSA-vrxp-mg9f-hwf3), CC-BY-4.0, modified 2026-07-08
- Go Vulnerability Database: [GO-2022-0936](https://pkg.go.dev/vuln/GO-2022-0936), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2021-41087](https://nvd.nist.gov/vuln/detail/CVE-2021-41087), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-41087 · Whole record: https://cve.day/CVE-2021-41087.json · Rebuilt by cve.day 2026-11-25T22:58:04.092Z
