# GHSA-pmwq-pjrm-6p5r: in-toto-golang and in-toto-python have inconsistent negation behavior

- Severity: Medium 4.1 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-05-08T22:24:19.000Z
- Modified: 2026-09-10T03:51:06.602Z
- Also known as: GO-2026-5547
- Related: CGA-mgcf-64vp-9m6x
- Weaknesses: CWE-168

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

(As written by GitHub Advisory Database.)

## Affected

- github.com/in-toto/in-toto-golang (Go): before 0.11.0

## References

- <https://github.com/in-toto/in-toto-golang/security/advisories/GHSA-pmwq-pjrm-6p5r> (advisory, web)
- <https://github.com/in-toto/in-toto-golang/pull/462> (fix, web)
- <https://github.com/in-toto/in-toto-golang/commit/36d782ffb2ca3adbffcdce1fd971c23319dd4469> (fix, web)
- <https://github.com/in-toto/in-toto-golang> (package)

## Sources

- GitHub Advisory Database: [GHSA-pmwq-pjrm-6p5r](https://github.com/advisories/GHSA-pmwq-pjrm-6p5r), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5547](https://pkg.go.dev/vuln/GO-2026-5547), CC-BY-4.0, modified 2026-06-28

---

Page: https://cve.day/GHSA-pmwq-pjrm-6p5r · Whole record: https://cve.day/GHSA-pmwq-pjrm-6p5r.json · Rebuilt by cve.day 2026-11-25T22:56:24.913Z
