in-toto-golang and in-toto-python have inconsistent negation behavior
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub.
Summary
### Impact _What kind of vulnerability is it? Who is impacted?_ in-toto-golang and in-toto-python both support glob patterns in artifact rules to indicate the artifacts that a rule applies to. Both support negations in character classes to indicate what should *not* be matched, but they used different operators to indicate the negation. in-toto-python uses `!` while in-toto-golang used `^`. A layout authored with the expectations of one implementation can therefore exhibit different behavior in the other implementation. This impacts users in a specific set of circumstances where two different implementations are used to verify the same layout + attestation bundle at different stages of the same pipeline. As a rule of thumb, we advise using a single implementation across all aspects of a pipeline, from layout creation to pipeline execution and verification to prevent this class of bugs. ### Patches _Has the problem been patched? What versions should users upgrade to?_ in-toto-golang has been updated to use `!` instead of `^` to indicate negation. See https://github.com/in-toto/in-toto-golang/pull/462. This is part of v0.11.0.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | github.com/in-toto/in-toto-golang (Go) | before 0.11.0 | 0.11.0 | Patch available | GHSA-pmwq-pjrm-6p5r |
- github.com/in-toto/in-toto-golang (Go) Vendor— Affected before 0.11.0 Fixed in 0.11.0 Patch available GHSA-pmwq-pjrm-6p5r
Remediation
- Fix · GHSA-pmwq-pjrm-6p5r github.com/in-toto/in-toto-golang (Go) Fixed in 0.11.0 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-pmwq-pjrm-6p5r
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences