CVE-2026-33750
Received
Received - Intake
Infinite Loop and Memory Exhaustion in brace-expansion Library
Publication date: 2026-03-27
Last updated on: 2026-04-22
Assigner: GitHub, Inc.
Description
Description
The brace-expansion library generates arbitrary strings containing a common prefix and suffix. Prior to versions 5.0.5, 3.0.2, 2.0.3, and 1.1.13, a brace pattern with a zero step value (e.g., `{1..2..0}`) causes the sequence generation loop to run indefinitely, making the process hang for seconds and allocate heaps of memory. Versions 5.0.5, 3.0.2, 2.0.3, and 1.1.13 fix the issue. As a workaround, sanitize strings passed to `expand()` to ensure a step value of `0` is not used.
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| juliangruber | brace-expansion | to 1.1.13 (exc) |
| juliangruber | brace-expansion | From 2.0.0 (inc) to 2.0.3 (exc) |
| juliangruber | brace-expansion | From 3.0.0 (inc) to 3.0.2 (exc) |
| juliangruber | brace-expansion | From 5.0.0 (inc) to 5.0.5 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-400 | The product does not properly control the allocation and maintenance of a limited resource. |