{"id":"GHSA-pmwq-pjrm-6p5r","aliases":["GHSA-pmwq-pjrm-6p5r","GO-2026-5547"],"related":["CGA-mgcf-64vp-9m6x"],"kind":"vulnerability","state":"published","title":"in-toto-golang and in-toto-python have inconsistent negation behavior","summary":"### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\nin-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.\n\nThis 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.\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\nin-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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\nin-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.\n\nThis 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.\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\nin-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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"in-toto-golang and in-toto-python have inconsistent negation behavior in github.com/in-toto/in-toto-golang","format":"markdown","source":"go"}],"published":"2026-05-08T22:24:19.000Z","modified":"2026-09-10T03:51:06.602Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:N","score":4.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:N","score":4.1,"rating":"MEDIUM"}],"cwes":["CWE-168"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.11.0"}],"ecosystem":"Go","package":"github.com/in-toto/in-toto-golang","purl":"pkg:golang/github.com/in-toto/in-toto-golang","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.11.0"}],"ecosystem":"Go","package":"github.com/in-toto/in-toto-golang","purl":"pkg:golang/github.com/in-toto/in-toto-golang","source":"go"}],"references":[{"url":"https://github.com/in-toto/in-toto-golang/security/advisories/GHSA-pmwq-pjrm-6p5r","tags":["advisory","web"],"sources":["ghsa","go"]},{"url":"https://github.com/in-toto/in-toto-golang/pull/462","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/in-toto/in-toto-golang/commit/36d782ffb2ca3adbffcdce1fd971c23319dd4469","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/in-toto/in-toto-golang","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pmwq-pjrm-6p5r","url":"https://github.com/advisories/GHSA-pmwq-pjrm-6p5r","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:06.602Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5547","url":"https://pkg.go.dev/vuln/GO-2026-5547","licence":"CC-BY-4.0","modified":"2026-06-28T13:59:25.940Z"}],"updatedAt":"2026-11-25T22:56:24.913Z"}