GHSA-wqqc-jjcq-vfxm

Suggest an improvement
Source
https://github.com/advisories/GHSA-wqqc-jjcq-vfxm
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-wqqc-jjcq-vfxm/GHSA-wqqc-jjcq-vfxm.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-wqqc-jjcq-vfxm
Aliases
Downstream
CGA (327)
MINI (70)
Published
2026-07-31T21:58:39Z
Modified
2026-08-18T15:10:58Z
Severity
  • 3.1 (Low) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N CVSS Calculator
Summary
sigstore-go fails to check signature timestamps against a signing key's validity period
Details

sigstore-go fails to check signature timestamps against a signing key's validity period for self-managed long-lived keys without certificates.

Impact

To verify a bundle with a self-managed long-lived key, the key needs to be wrapped in an ExpiringKey type that implies expiration semantics:

signatureVerifier, _ := signature.LoadDefaultVerifier(publicKey)
expiredKey := root.NewExpiringKey(signatureVerifier, time.Unix(0, 0), time.Unix(1, 0))

Despite 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.

Reproduction steps

Start from a sigstore-go checkout:

git clone https://github.com/sigstore/sigstore-go.git
cd sigstore-go
git checkout 8ca80c47ef03d26ebf174db7c296700b075b2c16

Apply the patch containing the test case and associated materials:

git apply sigstore-go-public-key-validity-test.patch

Run the test:

go test ./pkg/verify -run TestPublicKeyValidityCheckedAgainstSignedTimestamp

On vulnerable code, the test fails because verification succeeds even though the trusted ExpiringKey is not valid at the signed timestamp:

--- FAIL: TestPublicKeyValidityCheckedAgainstSignedTimestamp
    signed_entity_test.go:602:
        	Error:      	An error is expected but got nil.
Database specific
{
    "cwe_ids": [
        "CWE-324"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-07-31T21:58:39Z",
    "nvd_published_at": null,
    "severity": "LOW"
}
References

Affected packages

Go / github.com/sigstore/sigstore-go

Package

Name
github.com/sigstore/sigstore-go
View open source insights on deps.dev
Purl
pkg:golang/github.com/sigstore/sigstore-go

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.2.1

Database specific

last_known_affected_version_range
"<= 1.2.0"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-wqqc-jjcq-vfxm/GHSA-wqqc-jjcq-vfxm.json"