CVE-2025-30204

Source
https://cve.org/CVERecord?id=CVE-2025-30204
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-30204.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-30204
Aliases
Downstream
AZL (35)
CGA (2601)
CLEANSTART (31)
CLSA (1)
DEBIAN (1)
ECHO (1)
MGASA (1)
MINI (55)
openSUSE (24)
RHEA (1)
RHSA (18)
RLSA (4)
ROOT (1)
SUSE (8)
UBUNTU (1)
Related
Published
2025-03-21T21:42:01Z
Modified
2026-08-12T03:30:39Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
jwt-go allows excessive memory allocation during header parsing
Details

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.

Database specific
{
    "cna_assigner":  "GitHub_M",
    "cwe_ids":  [
        "CWE-405"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/30xxx/CVE-2025-30204.json"
}
References

Affected packages

Git / github.com/golang-jwt/jwt

Affected ranges

Type
GIT
Repo
https://github.com/golang-jwt/jwt
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "introduced":  "3.2.0"
        },
        {
            "fixed":  "4.5.2"
        },
        {
            "introduced":  "5.0.0-rc.1"
        },
        {
            "fixed":  "5.2.2"
        }
    ],
    "source":  [
        "AFFECTED_FIELD",
        "REFERENCES"
    ]
}

Affected versions

v3.*
v3.2.0
v3.2.1
v3.2.2
v4.*
v4.0.0
v4.1.0
v4.2.0
v4.3.0
v4.4.0
v4.4.1
v4.4.2
v4.4.3
v4.5.0
v4.5.1
v5.*
v5.0.0
v5.0.0-rc.1
v5.0.0-rc.2
v5.1.0
v5.2.0
v5.2.1

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-30204.json"