# CVE-2021-41087: GO-2022-0936 - Improperly Implemented path matching for in-toto-golang in github.com/in-toto/in-toto-golang

Source: https://junglewise.ai/threats/cve-2021-41087-improperly-implemented-path-matching-for-in-toto-golang  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-08-21  
License: CC BY 4.0 with a link back

CVE-2021-41087 · Severity: low · CVSS 3.1 · Published 2024-08-21

Improperly Implemented path matching for in-toto-golang in github.com/in-toto/in-toto-golang

Technologies: [github.com/in-toto/in-toto-golang (Go)](https://junglewise.ai/threats/technologies/github-com-in-toto-in-toto-golang). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2021-41087 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-41087 being exploited in the wild.

**How severe is CVE-2021-41087?** Low severity, with a CVSS score of 3.1, published 21 August 2024.

**Which products and versions are affected?** github.com/in-toto/in-toto-golang (Go) SEMVER:introduced=0,fixed=0.3.0.

**Is there a fix for CVE-2021-41087?** Yes. github.com/in-toto/in-toto-golang (Go): upgrade to 0.3.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-41087?** Check whether you run github.com/in-toto/in-toto-golang (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/in-toto/in-toto-golang (Go): upgrade to 0.3.0 or later

  ```sh
  go get github.com/in-toto/in-toto-golang@v0.3.0
  ```


## Affected products

- github.com/in-toto/in-toto-golang (Go) SEMVER:introduced=0,fixed=0.3.0

## Identifiers

- CVE-2021-41087
- GHSA-vrxp-mg9f-hwf3
- GO-2022-0936

## Related threats

- [GO-2026-5547 - in-toto-golang and in-toto-python have inconsistent negation behavior in github.com/in-toto/in-toto-golang](https://junglewise.ai/threats/go-2026-5547-in-toto-golang-and-in-toto-python-have-inconsistent-973c54eb)
- [in-toto-golang and in-toto-python have inconsistent negation behavior](https://junglewise.ai/threats/in-toto-golang-and-in-toto-python-have-inconsistent-negation-behavior-23e099b0)
