GHSA-f83f-xpx7-ffpw
Fulcio allocates excessive memory during token parsing
Quick fix
GHSA-f83f-xpx7-ffpw — github.com/sigstore/fulcio: upgrade to the fixed version with the command below.
go get github.com/sigstore/fulcio@v1.8.3Details
Function [identity.extractIssuerURL](https://github.com/sigstore/fulcio/blob/main/pkg/identity/issuerpool.go#L44-L45) currently splits (via a call to [strings.Split](https://pkg.go.dev/strings#Split)) its argument (which is untrusted data) on periods.
As a result, in the face of a malicious request with an (invalid) OIDC identity token in the payload containing many period characters, a call to `extractIssuerURL` incurs allocations to the tune of O(n) bytes (where n stands for the length of the function's argument), with a constant factor of about 16. Relevant weakness: [CWE-405: Asymmetric Resource Consumption (Amplification)](https://cwe.mitre.org/data/definitions/405.html)
Details See [identity.extractIssuerURL](https://github.com/sigstore/fulcio/blob/main/pkg/identity/issuerpool.go#L44-L45)
Impact Excessive memory allocation
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 1.8.3go get github.com/sigstore/fulcio@v1.8.3