GitHub Advisoryadvisory · Go

GHSA-vrxp-mg9f-hwf3 Improperly Implemented path matching for in-toto-golang

MEDIUM Published 2021-09-22 Modified 2021-09-21 Official page ↗
Aliases
CVE-2021-41087
Ecosystem
Go
Packages
github.com/in-toto/in-toto-golang
Severity
Moderate
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N
Weaknesses
CWE-22, CWE-345
Reviewed
2021-09-21

Affected packages

• Go github.com/in-toto/in-toto-golang: < 0.3.0 → fixed in 0.3.0

Description

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: • Open an issue in in-toto-golang • Email us at in-toto-public • If this is a sensitive security-relevant disclosure, please send a PGP encrypted email to [email protected] or [email protected]

Related

Alias · CVE (1)

  • CVE-2021-41087 in-toto-golang is a go implementation of the in-toto framework to protect software supply chain integrity. vulnerability

Weakness · CWE (2)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
  • CWE-345 Insufficient Verification of Data Authenticity weakness

References