CVE-2025-30204

Aliases:GHSA-mh63-6h87-95cpGO-2025-3553
Deferred
Published: 21 Mar 2025, 21:42
Last modified:10 Apr 2025, 13:03

Vulnerability Summary

Overall Risk (default)
medium
30/100
CVSS Score
7.5 HIGH
v3.1 (cve.org)
EPSS Score
0.08% LOW
0% probability -0.02%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

21 Mar 2025, 21:42
Published
Vulnerability first disclosed
10 Apr 2025, 13:03
Last Modified
Vulnerability information updated

Description

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.

CVSS Metrics

  • v4.0HIGHScore: 8.7CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
  • v3.1HIGHScore: 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

EPSS Trends

Current EPSS score: 0.08% Percentile: 24%

Techniques & Countermeasures

  • CWE-405Asymmetric Resource Consumption (Amplification)

    The product does not properly control situations in which an adversary can cause the product to consume or produce excessive resources without requiring the adversary to invest equivalent work or otherwise prove authorization, i.e., the adversary's influence is "asymmetric."

Affected Systems

  • golang-jwtjwt

    ≥ 3.2.0, < 4.5.2 | ≥ 5.0.0-rc.1, < 5.2.2

  • github.com/golang-jwtjwt

    ≥ 3.2.0, ≤ 3.2.2 | all

  • github.com/golang-jwt/jwtv4

    < 4.5.2

  • github.com/golang-jwt/jwtv5

    ≥ 5.0.0-rc.1, < 5.2.2

References (7)