CVE-2021-41087
JSON

5.6medium

Improperly Implemented path matching for in-toto-golang

Severity
5.6medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.43% (higher than 39% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-vrxp-mg9f-hwf3GO-2022-0936

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

Product or packageVersionsReported by
in-toto in-toto-golang< 0.3.0, before 0.3.0CVE List, NVD
github.com/in-toto/in-toto-golang (Go)before 0.3.0GitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M5.6medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N
GitHub5.6medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
NVD4.0medium CVSS:2.0AV:N/AC:L/Au:S/C:N/I:P/A:N

Classification

What each source says

CVE List

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.

GitHub Advisory Database
Impact

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

Patches

The problem has been fixed in version 0.3.0.

Workarounds

Exploiting this vulnerability is dependent on the specific policy applied.

For more information

If you have any questions or comments about this advisory:

Go Vulnerability Database

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

NVD (es)

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

References

Sources

SourceRecordLicence
CVE ListCVE-2021-41087 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-vrxp-mg9f-hwf3 changed 2026-07-08CC-BY-4.0
Go Vulnerability DatabaseGO-2022-0936 changed 2026-03-03CC-BY-4.0
NVDCVE-2021-41087 changed 2026-06-17Public domain