{"id":"CVE-2026-39984","aliases":["CVE-2026-39984","GHSA-xm5m-wgh2-rrg3","GO-2026-5763"],"related":["CGA-28r4-j7vp-3jr8"],"kind":"vulnerability","state":"published","title":"Sigstore Timestamp Authority has Improper Certificate Validation in verifier","summary":"Sigstore Timestamp Authority is a service for issuing RFC 3161 timestamps. Versions 2.0.5 and below contain an authorization bypass vulnerability in the VerifyTimestampResponse function. VerifyTimestampResponse correctly verifies the certificate chain signature, but the TSA-specific constraint checks in VerifyLeafCert uses the first non-CA certificate from the PKCS#7 certificate bag instead of the leaf certificate from the verified chain. An attacker can exploit this by prepending a forged certificate to the certificate bag while the message is signed with an authorized key, causing the library to validate the signature against one certificate but perform authorization checks against another. This vulnerability only affects users of the timestamp-authority/v2/pkg/verification package and does not affect the timestamp-authority service itself or sigstore-go. The issue has been fixed in version 2.0.6.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Sigstore Timestamp Authority is a service for issuing RFC 3161 timestamps. Versions 2.0.5 and below contain an authorization bypass vulnerability in the VerifyTimestampResponse function. VerifyTimestampResponse correctly verifies the certificate chain signature, but the TSA-specific constraint checks in VerifyLeafCert uses the first non-CA certificate from the PKCS#7 certificate bag instead of the leaf certificate from the verified chain. An attacker can exploit this by prepending a forged certificate to the certificate bag while the message is signed with an authorized key, causing the library to validate the signature against one certificate but perform authorization checks against another. This vulnerability only affects users of the timestamp-authority/v2/pkg/verification package and does not affect the timestamp-authority service itself or sigstore-go. The issue has been fixed in version 2.0.6.","source":"cvelist"},{"lang":"en","text":"### Authorization bypass via certificate bag manipulation in sigstore/timestamp-authority verifier\n\nAn authorization bypass vulnerability exists in sigstore/timestamp-authority verifier (timestamp-authority/v2/pkg/verification): `VerifyTimestampResponse` function correctly verifies the certificate chain but when the TSA specific constraints are verified in `VerifyLeafCert`, the first non-CA certificate from the PKCS#7 certificate bag is used instead of the leaf certificate from the certificate chain. An attacker can exploit this by prepending a forged certificate to the certificate bag while the message is signed with an authorized key. The library validates the signature using the one certificate but performs authorization checks on the another, allowing an attacker to bypass some authorization controls. \n\nThis vulnerability does **not** apply to timestamp-authority service, only to users of `timestamp-authority/v2/pkg/verification` package.\n\nThis vulnerability does **not** apply to sigstore-go even though it is a user of `timestamp-authority/v2/pkg/verification`: Providing `TSACertificate` option to  `VerifyTimestampResponse` fully mitigates the issue.\n\n\n### Patches\n\nThe issue will be fixed in timestamp-authority 2.0.6\n\n### Workarounds\n\nUsers of `VerifyTimestampResponse` can use the `TSACertificate` option to specify the exact certificate they expect to be used: this fully mitigates the issue.\n\n### References\n\nThis issue was found after reading CVE-2026-33753 / GHSA-3xxc-pwj6-jgrj (originally reported by @Jaynornj and @Pr00fOf3xpl0it)","format":"markdown","source":"ghsa"},{"lang":"en","text":"Sigstore Timestamp Authority has Improper Certificate Validation in verifier in github.com/sigstore/timestamp-authority","format":"markdown","source":"go"},{"lang":"es","text":"Sigstore Timestamp Authority es un servicio para emitir marcas de tiempo RFC 3161. Las versiones 2.0.5 e inferiores contienen una vulnerabilidad de omisión de autorización en la función VerifyTimestampResponse. VerifyTimestampResponse verifica correctamente la firma de la cadena de certificados, pero las comprobaciones de restricciones específicas de TSA en VerifyLeafCert utilizan el primer certificado no-CA de la bolsa de certificados PKCS#7 en lugar del certificado hoja de la cadena verificada. Un atacante puede explotar esto anteponiendo un certificado falsificado a la bolsa de certificados mientras el mensaje está firmado con una clave autorizada, haciendo que la biblioteca valide la firma contra un certificado pero realice comprobaciones de autorización contra otro. Esta vulnerabilidad solo afecta a los usuarios del paquete timestamp-authority/v2/pkg/verification y no afecta al propio servicio timestamp-authority o a sigstore-go. El problema ha sido solucionado en la versión 2.0.6.","source":"nvd"}],"published":"2026-04-14T01:01:59.000Z","modified":"2026-10-26T21:10:00.170Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":5.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-295"],"affected":[{"ranges":[{"version":"< 2.0.6","status":"affected"}],"vendor":"sigstore","product":"timestamp-authority","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.0.6"}],"ecosystem":"Go","package":"github.com/sigstore/timestamp-authority/v2","purl":"pkg:golang/github.com/sigstore/timestamp-authority/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/sigstore/timestamp-authority","purl":"pkg:golang/github.com/sigstore/timestamp-authority","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.0.6"}],"ecosystem":"Go","package":"github.com/sigstore/timestamp-authority/v2","purl":"pkg:golang/github.com/sigstore/timestamp-authority/v2","source":"go"},{"ranges":[{"status":"affected","fixed":"2.0.6"}],"vendor":"linuxfoundation","product":"sigstore_timestamp_authority","cpe":"cpe:2.3:a:linuxfoundation:sigstore_timestamp_authority:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/sigstore/timestamp-authority/security/advisories/GHSA-xm5m-wgh2-rrg3","tags":["advisory","mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/sigstore/timestamp-authority/releases/tag/v2.0.6","tags":["product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39984","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/sigstore/timestamp-authority","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-16T14:00:42.548Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-39984","url":"https://www.cve.org/CVERecord?id=CVE-2026-39984","licence":"CVE Terms of Use","modified":"2026-04-16T14:00:55.081Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xm5m-wgh2-rrg3","url":"https://github.com/advisories/GHSA-xm5m-wgh2-rrg3","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:44.895Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5763","url":"https://pkg.go.dev/vuln/GO-2026-5763","licence":"CC-BY-4.0","modified":"2026-06-26T15:44:23.064Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-39984","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39984","licence":"Public domain","modified":"2026-10-26T21:10:00.170Z"}],"updatedAt":"2026-11-25T22:59:18.814Z","epss":{"score":0.00101,"percentile":0.00943,"date":"2026-12-01T12:00:22.000Z"}}