CVE-2025-30204
jwt-go allows excessive memory allocation during header parsing
Reported by github_m · Published March 21, 2025
github.com/golang-jwt/jwt/v4 is fixed in 4.5.2 (Go Modules)
golang-jwt is a Go implementation of JSON Web Tokens. Starting in version 3.2.0 and prior to versions 5.2.2 and 4.5.2, the function parse.ParseUnverified splits (via a call to strings.Split) its argument (which is untrusted data) on periods. As a result, in the face of a malicious request whose Authorization header consists of Bearer followed by many period characters, a call to that function 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. This issue is fixed in 5.2.2 and 4.5.2.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/golang-jwt/jwt/v4 | Go Modules | 4.5.2 |
| kyverno-policy-reporter-ui-fips | Chainguard | 2.2.1-r1 |
| vault-1.18 | Chainguard | 1.18.5-r6 |
| wal-g | Wolfi | 3.0.7-r7 |
| cosign-fips | Chainguard | 2.4.3-r6 |
| promxy | Wolfi | 0.0.92-r34 |
| flux-image-automation-controller | Wolfi | 0.40.0-r4 |
| mongo-tools | Chainguard | 100.11.0-r8 |
| loki-fips-3.2 | Chainguard | 3.2.2-r8 |
| scorecard | Chainguard | 5.1.1-r4 |
| cloud-provider-azure-1.28 | Chainguard | 1.28.14-r4 |
| kubernetes-dashboard-auth | Wolfi | 1.2.4-r4 |
88 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| golang-jwt | jwt | >= 3.2.0, < 4.5.2, >= 5.0.0-rc.1, < 5.2.2 |
| chainguard | kyverno-policy-reporter-ui-fips | 0 |
| chainguard | vault-1.18 | 0 |
| wolfi | wal-g | 0 |
| chainguard | cosign-fips | 0 |
| wolfi | promxy | 0 |
| wolfi | flux-image-automation-controller | 0 |
| chainguard | mongo-tools | 0 |
| chainguard | loki-fips-3.2 | 0 |
| chainguard | scorecard | 0 |
| chainguard | cloud-provider-azure-1.28 | 0 |
| wolfi | kubernetes-dashboard-auth | 0 |
| chainguard | buildkitd-fips | 0 |
| chainguard | openbao-fips | 0 |
| wolfi | argo-workflows | 0 |
| chainguard | kuma-2.9 | 0 |
| chainguard | prometheus-fips-3.2 | 0 |
| chainguard | kubescape | 0 |
| chainguard | temporal-server | 0 |
| chainguard | cortex-fips | 0 |
…and 659 more
Timeline
- Mar 21, 2025 CVE Published
- Mar 22, 2025 EPSS Score (30 in total, the first dated here)
- Mar 23, 2025 Coalition ESS Score (18 in total, the first dated here)
- Dec 17, 2025 Security Advisory (115 in total, the first dated here)
- May 27, 2026 Distribution Patch (94 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-30204
vulnetix vdb fixes CVE-2025-30204
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-30204/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/golang-jwt/jwt/security/advisories/GHSA-mh63-6h87-95cp x_refsource_CONFIRM
- https://github.com/golang-jwt/jwt/commit/0951d184286dece21f73c85673fd308786ffe9c3 x_refsource_MISC
- https://github.com/golang-jwt/jwt/commit/bf316c48137a1212f8d0af9288cc9ce8e59f1afb x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20250404-0002/ url
- https://nvd.nist.gov/vuln/detail/CVE-2025-30204 advisory
- https://github.com/advisories/GHSA-mh63-6h87-95cp advisory
- https://github.com/golang-jwt/jwt url
- https://security.netapp.com/advisory/ntap-20250404-0002 advisory