Advisory

GHSA-pmwq-pjrm-6p5r

Also known as: GO-2026-5547

Summary

in-toto-golang and in-toto-python have inconsistent negation behavior

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-05-08 22:24 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

github.com/in-toto/in-toto-golang

Go · All systems

Affected

  • introduced 0, fixed 0.11.0 (semver)

Fixed versions

0.11.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences