cve.bz

CVE-2025-30204 golang-jwt jwt

7.5 highEPSS 0.8%Fix available

High (7.5) in golang-jwt jwt. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/golang-jwt/jwt/v5 5.2.2.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 58th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-03-24. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-405 Asymmetric Resource Consumption (Amplification)
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • github.com/golang-jwt/jwt/v5 (Go): fixed in 5.2.2
  • github.com/golang-jwt/jwt/v4 (Go): fixed in 4.5.2
  • Debian, Red Hat, SUSE, openSUSE, AlmaLinux, Rocky Linux, Alpine, Azure Linux: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2025-30204 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-30204?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-30204?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-30204 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
golang-jwt jwt>= 3.2.0, < 4.5.2
golang-jwt jwt>= 5.0.0-rc.1, < 5.2.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-mh63-6h87-95cpGogithub.com/golang-jwt/jwt/v5>=5.0.0-rc.1 <5.2.25.2.2
GHSA-mh63-6h87-95cpGogithub.com/golang-jwt/jwt/v4<4.5.24.5.2
GHSA-mh63-6h87-95cpGogithub.com/golang-jwt/jwt>=3.2.0 <=3.2.2no fix published
GO-2025-3553Gogithub.com/golang-jwt/jwtall versionsno fix published
GO-2025-3553Gogithub.com/golang-jwt/jwt/v4<4.5.24.5.2
GO-2025-3553Gogithub.com/golang-jwt/jwt/v5>=5.0.0-rc.1 <5.2.25.2.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12golang-github-golang-jwt-jwtno fix listedDEBIAN-CVE-2025-30204
Debian13, 14golang-github-golang-jwt-jwt5.0.0+really4.5.2-1DEBIAN-CVE-2025-30204
Debian13, 14golang-github-golang-jwt-jwt-v55.2.2-1DEBIAN-CVE-2025-30204
Ubuntu22.04:LTSgolang-github-golang-jwt-jwtno fix listedUBUNTU-CVE-2025-30204
Ubuntu24.04:LTSgolang-github-golang-jwt-jwt, golang-github-golang-jwt-jwt-v5no fix listedUBUNTU-CVE-2025-30204
Red Hatceph_storage:9.0::el9ceph, cephadm, librbd1 and 56 more2:20.1.0-144.el9cpRHSA-2026:1536
Red Hatceph_storage:9.0::el10ceph, cephadm, librbd1 and 56 more2:20.1.0-144.el10cpRHSA-2026:1536
Red Hatenterprise_linux:8::appstreamosbuild-composer, osbuild-composer-core, osbuild-composer-worker and 5 more0:101-3.el8_10RHSA-2025:7967
Red Hatenterprise_linux:9::appstreamgrafana, grafana-selinux, grafana-debuginfo and 1 more0:10.2.6-11.el9_6RHSA-2025:7404
Red Hatenterprise_linux:9::appstreamgrafana, grafana-selinux, grafana-debuginfo and 1 more0:10.2.6-9.el9_5RHSA-2025:3344
Red Hatenterprise_linux:9::appstreamopentelemetry-collector0:0.107.0-10.el9_5RHSA-2025:3411
Red Hatenterprise_linux:9::appstreamopentelemetry-collector0:0.107.0-8.el9_6RHSA-2025:7407
Red Hatenterprise_linux:9::appstreamosbuild-composer, osbuild-composer-core, osbuild-composer-worker and 5 more0:118.2-1.el9_5RHSA-2025:4669
Red Hatenterprise_linux:9::appstreamosbuild-composer, osbuild-composer-core, osbuild-composer-worker and 5 more0:132.2-1.el9_6RHSA-2025:7425
Red Hatenterprise_linux:10.0grafana, grafana-selinux, grafana-debuginfo and 1 more0:10.2.6-15.el10_0RHSA-2025:7475
Red Hatenterprise_linux:10.0opentelemetry-collector0:0.107.0-9.el10_0RHSA-2025:7479
Red Hatenterprise_linux:10.0osbuild-composer, osbuild-composer-core, osbuild-composer-worker and 4 more0:134.1-1.el10_0RHSA-2025:7503
8 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morerekor1.3.10-150400.4.25.1SUSE-SU-2025:1332-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 moredocker-stable24.0.9_ce-150000.1.36.1SUSE-SU-2026:0659-1
SUSELinux Enterprise Module for Containers 15 SP7docker-stable24.0.9_ce-150000.1.39.1SUSE-SU-2026:0972-1
SUSELinux Enterprise Module for Server Applications 15 SP6, Linux Enterprise Module for Server Applications 15 SP7amber-cli1.13.1+git20250329.c2e3bb8-150600.3.3.1SUSE-SU-2025:02769-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5docker-stable24.0.9_ce-1.29.1SUSE-SU-2026:0641-1
SUSELinux Enterprise Server LTSS Extended Security 12 SP5docker-stable24.0.9_ce-1.32.1SUSE-SU-2026:1118-1
openSUSELeap 15.6amber-cli1.13.1+git20250329.c2e3bb8-150600.3.3.1SUSE-SU-2025:02769-1
openSUSELeap 15.6docker-stable24.0.9_ce-150000.1.36.1SUSE-SU-2026:0659-1
openSUSELeap 15.6docker-stable24.0.9_ce-150000.1.39.1SUSE-SU-2026:0972-1
openSUSELeap 15.6etcd3.5.21-150000.7.12.1SUSE-SU-2025:1285-1
openSUSELeap 15.6rekor1.3.10-150400.4.25.1SUSE-SU-2025:1332-1
openSUSELeap 15.6vexctl0.4.1+git78.f951e3a-150000.1.11.1SUSE-SU-2026:0592-1
openSUSELeap 16.0docker-stable24.0.9_ce-160000.4.1openSUSE-SU-2026:20366-1
openSUSELeap 16.0vexctl0.4.4+git20.5d61136-160000.1.1openSUSE-SU-2026:21481-1
openSUSETumbleweedamber-cli1.13.1+git20250329.c2e3bb8-1.1openSUSE-SU-2025:15037-1
openSUSETumbleweeddigger-cli0.6.127-1.1openSUSE-SU-2025:15606-1
openSUSETumbleweeddocker-stable24.0.9_ce-17.1openSUSE-SU-2026:10255-1
openSUSETumbleweedetcd3.5.21-1.1openSUSE-SU-2025:14973-1
17 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux8osbuild-composer, osbuild-composer-core, osbuild-composer-worker101-3.el8_10.alma.1ALSA-2025:7967
AlmaLinux9grafana, grafana-selinux10.2.6-11.el9_6ALSA-2025:7404
AlmaLinux9grafana, grafana-selinux10.2.6-9.el9_5ALSA-2025:3344
AlmaLinux9osbuild-composer, osbuild-composer-core, osbuild-composer-worker118.2-1.el9_5.alma.1ALSA-2025:4669
AlmaLinux9osbuild-composer, osbuild-composer-core, osbuild-composer-worker132.2-1.el9_6.alma.1ALSA-2025:7425
AlmaLinux10grafana, grafana-selinux10.2.6-15.el10_0ALSA-2025:7475
Rocky Linux8osbuild-composer0:101-3.el8_10.rocky.0.6RLSA-2025:7967
Rocky Linux9grafana0:10.2.6-9.el9_5RLSA-2025:3344
Rocky Linux9opentelemetry-collector0:0.107.0-10.el9_5RLSA-2025:3411
Rocky Linux10opentelemetry-collector0:0.107.0-9.el10_0RLSA-2025:7479
Alpinev3.22, v3.23, v3.24rclone1.69.3-r0ALPINE-CVE-2025-30204
Azure Linux2application-gateway-kubernetes-ingress1.4.0-27AZL-77490
Azure Linux2azcopy10.25.1-5AZL-59209
Azure Linux2cert-manager1.11.2-21AZL-59233
Azure Linux2cf-cli8.4.0-27AZL-77493
Azure Linux2coredns1.11.1-16AZL-59223
Azure Linux2dcos-cli1.2.0-24AZL-77496
Azure Linux2etcd3.5.21-1AZL-59227
Azure Linux2influxdb2.6.1-30AZL-77508
Azure Linux2jx3.2.236-25AZL-77511
Azure Linux2keda2.4.0-32AZL-77514
Azure Linux2kube-vip-cloud-provider0.0.2-26AZL-77517
Azure Linux2kubernetes1.28.4-16AZL-59239
23 more for Azure Linux in the JSON.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

Red Hat Product Security does not have a recommended mitigation at this time.

ProductPackageStateAdvisory
Cryostat 4 on RHEL 9cryostat/cryostat-agent-init-rhel9:0.5.0-9Fixed 2025-04-02RHSA-2025:3503
Cryostat 4 on RHEL 9cryostat/cryostat-db-rhel9:4.0.0-10Fixed 2025-04-02RHSA-2025:3503
Cryostat 4 on RHEL 9cryostat/cryostat-grafana-dashboard-rhel9:4.0.0-10Fixed 2025-04-02RHSA-2025:3503
Cryostat 4 on RHEL 9cryostat/cryostat-openshift-console-plugin-rhel9:4.0.0-10Fixed 2025-04-02RHSA-2025:3503
Cryostat 4 on RHEL 9cryostat/cryostat-operator-bundle:4.0.0-9Fixed 2025-04-02RHSA-2025:3503
Cryostat 4 on RHEL 9cryostat/cryostat-ose-oauth-proxy-rhel9:4.0.0-10Fixed 2025-04-02RHSA-2025:3503
Cryostat 4 on RHEL 9cryostat/cryostat-reports-rhel9:4.0.0-10Fixed 2025-04-02RHSA-2025:3503
Cryostat 4 on RHEL 9cryostat/cryostat-rhel9:4.0.0-10Fixed 2025-04-02RHSA-2025:3503
Cryostat 4 on RHEL 9cryostat/cryostat-rhel9-operator:4.0.0-10Fixed 2025-04-02RHSA-2025:3503
Cryostat 4 on RHEL 9cryostat/cryostat-storage-rhel9:4.0.0-10Fixed 2025-04-02RHSA-2025:3503
Assisted Installer for Red Hat OpenShift Container Platform 2rhai-tech-preview/assisted-installer-agent-rhel8Affected
Assisted Installer for Red Hat OpenShift Container Platform 2rhai-tech-preview/assisted-installer-reporter-rhel8Affected
Assisted Installer for Red Hat OpenShift Container Platform 2rhai-tech-preview/assisted-installer-rhel8Affected
cert-manager Operator for Red Hat OpenShiftcert-manager/jetstack-cert-manager-acmesolver-rhel9Affected
cert-manager Operator for Red Hat OpenShiftcert-manager/jetstack-cert-manager-rhel9Affected
Cryostat 3cryostat-tech-preview/cryostat-storage-rhel8Out of support scope
Custom Metric Autoscaler operator for Red Hat Openshiftcustom-metrics-autoscaler/custom-metrics-autoscaler-adapter-rhel8Affected
Custom Metric Autoscaler operator for Red Hat Openshiftcustom-metrics-autoscaler/custom-metrics-autoscaler-admission-webhooks-rhel8Not affected
Custom Metric Autoscaler operator for Red Hat Openshiftcustom-metrics-autoscaler/custom-metrics-autoscaler-rhel8Affected
Migration Toolkit for Applications 7mta-discovery-addon-containerAffected
567 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-30204.

References

Check your stackJSON