CVE-2026-45149
brace-expansion: Large numeric range defeats documented `max` DoS protection
6.5
MEDIUM
CVSS 3.1
EPSS 0.28%
描述
The brace-expansion library generates arbitrary strings containing a common prefix and suffix. From 5.0.0 to before 5.0.6, the max option was being applied too late. When expanding a single large numeric range like {1..10000000}, the sequence generation loop generates all 10 million intermediate elements before the max limit is applied With max=10, the output is correctly limited to 10 items, but the process still allocates ~505 MB and spends ~800ms building the full intermediate array. This vulnerability is fixed in 5.0.6.
如何修補 CVE-2026-45149
要修補 CVE-2026-45149,請將受影響套件升級到下列已修補版本。
- —未列出修補版本
- —升級至 5.0.6 或更新版本
CVE-2026-45149 正在被利用嗎?
低 — EPSS 為 0.3%,目前沒有觀察到大規模利用活動。
受影響套件(2)
- from 0
- >= 5.0.0, < 5.0.6
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |