CVE-2025-30204
Docker vulnerability analysis and mitigation

Overview

CVE-2025-30204 affects golang-jwt, a Go implementation of JSON Web Tokens, in versions prior to 5.2.2 and 4.5.2. The vulnerability was discovered and disclosed on March 21, 2025. The issue lies in the parse.ParseUnverified function which processes untrusted data in Authorization headers (GitHub Advisory).

Technical details

The vulnerability stems from the parse.ParseUnverified function's implementation, which uses strings.Split to parse tokens on period characters. When processing a malicious request containing an Authorization header with Bearer followed by numerous period characters, the function performs memory allocations of O(n) bytes, where n is the argument length, with a constant factor of approximately 16. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (High) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (GitHub Advisory).

Impact

The primary impact of this vulnerability is the potential for excessive memory allocation, which could lead to resource exhaustion. When exploited, it can affect system availability by consuming disproportionate amounts of memory resources (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in golang-jwt versions 5.2.2 and 4.5.2. The fix involves replacing the strings.Split implementation with a more efficient token parsing mechanism that prevents excessive memory allocation (GitHub Commit, Red Hat Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management