CVE-2025-30204
Excessive memory allocation during header parsing in github.com/golang-jwt/jwt
7.5
HIGH
CVSS 3.1
EPSS 0.08%
描述
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.
如何修補 CVE-2025-30204
要修補 CVE-2025-30204,請將受影響套件升級到下列已修補版本。
- —未列出修補版本
- —升級至 5.2.2-1 或更新版本
- —未列出修補版本
- —未列出修補版本
- —升級至 4.5.2 或更新版本
- —升級至 4.5.2 或更新版本
- —升級至 5.2.2 或更新版本
- —升級至 5.2.2 或更新版本
CVE-2025-30204 正在被利用嗎?
低 — EPSS 為 0.1%,目前沒有觀察到大規模利用活動。
受影響套件(8)
- from 0
- from 0, < 5.2.2-1
- >= 3.2.0, <= 3.2.2
- from 0
- from 0, < 4.5.2
- from 0, < 4.5.2
- >= 5.0.0-rc.1, < 5.2.2
- >= 5.0.0-rc.1, < 5.2.2
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |