Vulnerability · Published Sep 21, 2021 · Assigned by GitHub_M

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

Medium 5.6

In plain English

A medium-severity insufficient verification of data authenticity in in-toto-golang from in-toto. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 37% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.6Medium
Exploit odds (30 days)0.4%top 62.6% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/in-toto/in-toto-golang0.3.0GHSA-vrxp-mg9f-hwf3
Gogithub.com/in-toto/in-toto-golang0.3.0GO-2022-0936

Affected products (as reported)

VendorProductVersions
in-toto in-toto-golang < 0.3.0

Weakness: CWE-345 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N

References