sigstore-ruby verifier returns success for DSSE bundles with mismatched in-toto subject digest
sigstore-ruby
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| sigstore RubyGems |
|
|
Original description
sigstore-ruby is a pure Ruby implementation of the sigstore verify command from the sigstore/cosign project. Prior to 0.2.3, Sigstore::Verifier#verify does not propagate the VerificationFailure returned by verify_in_toto when the artifact digest does not match the digest in the in-toto attestation subject. As a result, verification of DSSE bundles containing in-toto statements returns VerificationSuccess regardless of whether the artifact matches the attested subject. This vulnerability is fixed in 0.2.3.
From the CVE record · GitHub_M
References
- github.com/sigstore/sigstore-ruby/security/advisories/GHSA-mhg6-2q2v-9h2cVendor advisory
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31830.json
- nvd.nist.gov/vuln/detail/CVE-2026-31830
- github.com/rubysec/ruby-advisory-db/blob/master/gems/sigstore/CVE-2026-31830.yml
- github.com/sigstore/sigstore-ruby