VDB

CVE-2025-30204

CVE-2025-30204 PUBLISHED CVSS 7.5 HIGH

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.

PackageEcosystemFixed in
github.com/golang-jwt/jwt/v4Go Modules4.5.2
kyverno-policy-reporter-ui-fipsChainguard2.2.1-r1
vault-1.18Chainguard1.18.5-r6
wal-gWolfi3.0.7-r7
cosign-fipsChainguard2.4.3-r6
promxyWolfi0.0.92-r34
flux-image-automation-controllerWolfi0.40.0-r4
mongo-toolsChainguard100.11.0-r8
loki-fips-3.2Chainguard3.2.2-r8
scorecardChainguard5.1.1-r4
cloud-provider-azure-1.28Chainguard1.28.14-r4
kubernetes-dashboard-authWolfi1.2.4-r4

88 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
golang-jwtjwt>= 3.2.0, < 4.5.2, >= 5.0.0-rc.1, < 5.2.2
chainguardkyverno-policy-reporter-ui-fips0
chainguardvault-1.180
wolfiwal-g0
chainguardcosign-fips0
wolfipromxy0
wolfiflux-image-automation-controller0
chainguardmongo-tools0
chainguardloki-fips-3.20
chainguardscorecard0
chainguardcloud-provider-azure-1.280
wolfikubernetes-dashboard-auth0
chainguardbuildkitd-fips0
chainguardopenbao-fips0
wolfiargo-workflows0
chainguardkuma-2.90
chainguardprometheus-fips-3.20
chainguardkubescape0
chainguardtemporal-server0
chainguardcortex-fips0

…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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›