CVE-2021-41087: Improperly Implemented path matching for in-toto-golang
Vulnerability summary
CVE-2021-41087 is a medium (CVSS 6.5) vulnerability in in-toto in-toto-golang. EPSS estimates a 0.43% chance of exploitation in the next 30 days, higher than 36.1% of scored vulnerabilities.
Timeline
- 21-09-2021PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versions- CVE.orgCNA5.6MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:NDiffers
- OSV · GoEcosystem advisory · calculated5.6MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:NDiffers
EPSS trend
Probability
0.43%
Chance of exploitation in the next 30 days
Percentile
36%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.43% on 22-09-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-345Insufficient Verification of Data AuthenticityThe product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.
- CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Affected systems
Github.com/in-toto1 product
- in-toto-golang< 0.3.0
In-toto1 product
- in-toto-golang< 0.3.0
2 vendors · 2 products
References
4 links- github.com/in-toto/in-toto-golang/security/advisories/GHSA-vrxp-mg9f-hwf3X Refsource CONFIRMWEBAdvisoryThird Party Advisory
- github.com/in-toto/in-toto-golang/commit/f2c57d1e0f15e3ffbeac531829c696b72ecc4290X Refsource MISCWEBFIXPatchThird Party Advisory