github.com/in-toto/in-toto-golang · In toto golang: in-toto-golang and in-toto-python have inconsistent negation behavior
Affects github.com/in-toto/in-toto-golangSource GCVE Database
CVSS 4.1 Medium : upgrade to 0.11.0 when convenient.
Data as of 27 Oct 2026, 00:07 UTC
- Patch
- Available – fixed in 0.11.0
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:NWhat to do
Upgrade github.com/in-toto/in-toto-golang to 0.11.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Gogithub.com/in-toto/in-toto-golang | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
### 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.
References
- github.com/in-toto/in-toto-golang/security/advisories/GHSA-pmwq-pjrm-6p5r (opens in a new tab)
- github.com/in-toto/in-toto-golang/pull/462 (opens in a new tab)
- github.com/in-toto/in-toto-golang/commit/36d782ffb2ca3adbffcdce1fd971c23319dd4469 (opens in a new tab)
- github.com/in-toto/in-toto-golang (opens in a new tab)