{"id":"CVE-2026-31830","aliases":["CVE-2026-31830","GHSA-mhg6-2q2v-9h2c"],"related":[],"kind":"vulnerability","state":"published","title":"sigstore-ruby verifier returns success for DSSE bundles with mismatched in-toto subject digest","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n\n`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.\n\n### Details\n\nIn `lib/sigstore/verifier.rb`, the verify method calls `verify_in_toto` (line 176) without capturing or checking its return value:\n\n`verify_in_toto(input, in_toto)`\n\nWhen `verify_in_toto` detects a digest mismatch, it returns a `VerificationFailure` object. Because the caller discards this return value, execution unconditionally falls through to return `VerificationSuccess`. This is the only verification sub-check in the method (out of 12) whose failure is not propagated.\n\nThe message_signature code path is not affected.\n\n### Impact\n\nAn attacker who possesses a valid signed DSSE bundle containing an in-toto attestation for artifact A can present it as a valid attestation for a different artifact B. All other verification checks (DSSE envelope signature, certificate chain, Rekor inclusion, SCTs, policy) pass because they are independent of the artifact content. Only the in-toto subject digest check detects the mismatch, and its result is discarded.\n\nThis allows an attacker to bypass artifact-to-attestation binding for any consumer that relies on `Sigstore::Verifier#verify` to validate DSSE/in-toto bundles.\n\n### Workarounds\n\nNone. Consumers cannot work around this without patching the library.","format":"markdown","source":"ghsa"},{"lang":"es","text":"sigstore-ruby es una implementación pura de Ruby del comando sigstore verify del proyecto sigstore/cosign. Antes de 0.2.3, Sigstore::Verifier#verify no propaga el VerificationFailure devuelto por verify_in_toto cuando el *digest* del artefacto no coincide con el *digest* en el sujeto de la atestación in-toto. Como resultado, la verificación de paquetes DSSE que contienen declaraciones in-toto devuelve VerificationSuccess independientemente de si el artefacto coincide con el sujeto atestiguado. Esta vulnerabilidad está corregida en 0.2.3.","source":"nvd"}],"published":"2026-03-10T21:46:02.547Z","modified":"2026-06-17T10:34:32.280Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-252"],"affected":[{"ranges":[{"version":"< 0.2.3","status":"affected"}],"vendor":"sigstore","product":"sigstore-ruby","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.2.3"}],"ecosystem":"RubyGems","package":"sigstore","purl":"pkg:gem/sigstore","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.2.3"}],"vendor":"sigstore","product":"sigstore","cpe":"cpe:2.3:a:sigstore:sigstore:*:*:*:*:*:ruby:*:*","source":"nvd"}],"references":[{"url":"https://github.com/sigstore/sigstore-ruby/security/advisories/GHSA-mhg6-2q2v-9h2c","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31830","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sigstore/CVE-2026-31830.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/sigstore/sigstore-ruby","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-03-11T15:53:27.894Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31830","url":"https://www.cve.org/CVERecord?id=CVE-2026-31830","licence":"CVE Terms of Use","modified":"2026-03-11T15:59:03.786Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mhg6-2q2v-9h2c","url":"https://github.com/advisories/GHSA-mhg6-2q2v-9h2c","licence":"CC-BY-4.0","modified":"2026-03-19T21:17:24.743Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31830","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31830","licence":"Public domain","modified":"2026-06-17T10:34:32.280Z"}],"updatedAt":"2026-11-25T22:59:15.681Z","epss":{"score":0.00278,"percentile":0.2173,"date":"2026-12-01T12:00:22.000Z"}}