{"id":"CVE-2026-54787","aliases":["CVE-2026-54787","GHSA-wqqc-jjcq-vfxm","GO-2026-6162"],"related":[],"kind":"vulnerability","state":"published","title":"sigstore-go fails to check signature timestamps against a signing key's validity period","summary":"sigstore-go is a Go library for Sigstore signing and verification. Prior to 1.2.1, sigstore-go does not check a bundle signing timestamp against the validity window of an ExpiringKey wrapping a self-managed long-lived signing key without a certificate, which can allow an attacker holding expired key material to sign accepted bundles. This issue is fixed in version 1.2.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"sigstore-go is a Go library for Sigstore signing and verification. Prior to 1.2.1, sigstore-go does not check a bundle signing timestamp against the validity window of an ExpiringKey wrapping a self-managed long-lived signing key without a certificate, which can allow an attacker holding expired key material to sign accepted bundles. This issue is fixed in version 1.2.1.","source":"cvelist"},{"lang":"en","text":"sigstore-go fails to check signature timestamps against a signing key's validity period for self-managed long-lived keys without certificates.\n\n## Impact\n\nTo verify a bundle with a self-managed long-lived key, the key needs to be wrapped in an `ExpiringKey` type that implies expiration semantics:\n\n```go\nsignatureVerifier, _ := signature.LoadDefaultVerifier(publicKey)\nexpiredKey := root.NewExpiringKey(signatureVerifier, time.Unix(0, 0), time.Unix(1, 0))\n```\n\nDespite the API contract, the validator does not check the bundle signing time against the validity window. Attackers that obtain expired key materials may be able to sign bundles with those materials that are accepted despite a configured expiry date. This issue only impacts the long-lived signing key workflow, and not standard deployments involving a certificate authority.\n\n## Reproduction steps\n\nStart from a sigstore-go checkout:\n\n```bash\ngit clone https://github.com/sigstore/sigstore-go.git\ncd sigstore-go\ngit checkout 8ca80c47ef03d26ebf174db7c296700b075b2c16\n```\n\nApply the [patch] containing the test case and associated materials:\n\n```bash\ngit apply sigstore-go-public-key-validity-test.patch\n```\n\nRun the test:\n\n```bash\ngo test ./pkg/verify -run TestPublicKeyValidityCheckedAgainstSignedTimestamp\n```\n\nOn vulnerable code, the test fails because verification succeeds even though the trusted `ExpiringKey` is not valid at the signed timestamp:\n\n```text\n--- FAIL: TestPublicKeyValidityCheckedAgainstSignedTimestamp\n    signed_entity_test.go:602:\n        \tError:      \tAn error is expected but got nil.\n```\n\n[patch]: https://github.com/user-attachments/files/28614520/sigstore-go-public-key-validity-test.patch","format":"markdown","source":"ghsa"},{"lang":"en","text":"sigstore-go fails to check signature timestamps against a signing key's validity period in github.com/sigstore/sigstore-go","format":"markdown","source":"go"},{"lang":"es","text":"sigstore-go es una biblioteca Go para la firma y verificación de Sigstore. Antes de la versión 1.2.1, sigstore-go no verifica una marca de tiempo de firma de paquete contra la ventana de validez de una ExpiringKey que envuelve una clave de firma de larga duración autogestionada sin un certificado, lo que puede permitir a un atacante que posee material de clave caducado firmar paquetes aceptados. Este problema está solucionado en la versión 1.2.1.","source":"nvd"}],"published":"2026-07-31T21:58:14.156Z","modified":"2026-10-23T23:10:00.157Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","score":3.1,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","score":3.1,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","score":3.1,"rating":"LOW"}],"cwes":["CWE-324"],"affected":[{"ranges":[{"version":"< 1.2.1","status":"affected"}],"vendor":"sigstore","product":"sigstore-go","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.2.1"}],"ecosystem":"Go","package":"github.com/sigstore/sigstore-go","purl":"pkg:golang/github.com/sigstore/sigstore-go","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.2.1"}],"ecosystem":"Go","package":"github.com/sigstore/sigstore-go","purl":"pkg:golang/github.com/sigstore/sigstore-go","source":"go"}],"references":[{"url":"https://github.com/sigstore/sigstore-go/security/advisories/GHSA-wqqc-jjcq-vfxm","tags":["advisory","exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/sigstore/sigstore-go/pull/642","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/sigstore/sigstore-go/commit/4594ab4c779d08be1f4419803a8249188f35ed5f","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/sigstore/sigstore-go/releases/tag/v1.2.1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/sigstore/sigstore-go","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-31T23:35:40.966Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54787","url":"https://www.cve.org/CVERecord?id=CVE-2026-54787","licence":"CVE Terms of Use","modified":"2026-07-31T23:36:13.441Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wqqc-jjcq-vfxm","url":"https://github.com/advisories/GHSA-wqqc-jjcq-vfxm","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:12.439Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6162","url":"https://pkg.go.dev/vuln/GO-2026-6162","licence":"CC-BY-4.0","modified":"2026-08-18T15:00:17.558Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54787","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54787","licence":"Public domain","modified":"2026-10-23T23:10:00.157Z"}],"updatedAt":"2026-11-25T22:59:30.746Z","epss":{"score":0.0009,"percentile":0.00449,"date":"2026-12-01T12:00:22.000Z"}}