Skip to main content
Mallory
HighVulnerability

CVE-2025-30204: Denial of Service via Excessive Memory Allocation in golang-jwt

Published Mar 21, 2025 · Updated 9 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS7.5High · v3.1
EPSS1.1%65th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
IdentifiersCVE-2025-30204CWE-405 · Asymmetric Resource Consumption…

CVE-2025-30204 is an asymmetric resource-consumption vulnerability in the golang-jwt Go implementation of JSON Web Tokens. Affected versions begin at 3.2.0; fixes are available in 4.5.2 and 5.2.2. The ParseUnverified function uses strings.Split to divide untrusted token input on periods without first bounding the number of resulting segments. Input containing many periods causes memory allocations proportional to the input length, with an amplification factor of approximately 16. A specially crafted Bearer Authorization header can therefore exhaust application resources and cause denial of service.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Remote, unauthenticated exploitation can cause excessive memory consumption, significant performance degradation, or application crashes, resulting in denial of service. No confidentiality or integrity impact is identified.

Mitigation

If you can’t patch tonight, do this now.

Until upgraded, enforce strict Authorization-header and total request-header size limits at the reverse proxy, API gateway, load balancer, and application. Rate-limit endpoints accepting JWTs and avoid passing untrusted tokens to the vulnerable parser where feasible. These measures reduce exposure but do not replace the fix. Red Hat does not recommend a specific vendor mitigation.

Remediation

Patch, then assume compromise.

Upgrade golang-jwt v4 to version 4.5.2 or later, or v5 to version 5.2.2 or later. No fixed v3 release is listed; migrate affected v3 applications to a fixed v4 or v5 release. Rebuild and redeploy applications incorporating the vulnerable dependency. For vendor-packaged software and container images, install the applicable vendor security updates.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
FAQ

Frequently asked questions

Is CVE-2025-30204 exploited in the wild?
As of Nov 20, 2026, Mallory has no reports of CVE-2025-30204 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2025-30204?
As of Nov 20, 2026, Mallory has found no public exploit for CVE-2025-30204.
Is there a patch for CVE-2025-30204?
Upgrade golang-jwt v4 to version 4.5.2 or later, or v5 to version 5.2.2 or later. No fixed v3 release is listed; migrate affected v3 applications to a fixed v4 or v5 release.
How severe is CVE-2025-30204?
CVE-2025-30204 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 1.1% (65th percentile) as of Nov 20, 2026.
Activity feed

Recent activity

62 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+45 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity1Community discussion across Reddit, Mastodon, and other social sources.