brace-expansion: Zero-step sequence causes process hang and memory exhaustion
Summary
| CVE | CVE-2026-33750 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-03-27 15:16:57 UTC |
| Updated | 2026-03-30 13:26:29 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 6.5 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS: 0.000580000 probability, percentile 0.184610000 (date 2026-04-02)
Problem Types: CWE-400 | CWE-400 CWE-400: Uncontrolled Resource Consumption
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 6.5 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| 3.1 | CNA | DECLARED | 6.5 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Juliangruber | Brace-expansion | affected >= 4.0.0, < 5.0.5 | Not specified |
| CNA | Juliangruber | Brace-expansion | affected >= 3.0.0, < 3.0.2 | Not specified |
| CNA | Juliangruber | Brace-expansion | affected >= 2.0.0, < 2.0.3 | Not specified |
| CNA | Juliangruber | Brace-expansion | affected < 1.1.13 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/juliangruber/brace-expansion/blob/daa71bcb4a30a2df9bcb7f7b8da... | [email protected] | github.com | |
| github.com/juliangruber/brace-expansion/commit/7fd684f89fdde3549563d0a65... | [email protected] | github.com | |
| github.com/juliangruber/brace-expansion/security/advisories/GHSA-f886-m6... | [email protected] | github.com | |
| github.com/juliangruber/brace-expansion/commit/311ac0d54994158c0a384e286... | [email protected] | github.com | |
| github.com/juliangruber/brace-expansion/commit/b9cacd9e55e7a1fa588fe4b7b... | [email protected] | github.com | |
| github.com/juliangruber/brace-expansion/issues/98 | [email protected] | github.com | |
| github.com/juliangruber/brace-expansion/pull/95 | [email protected] | github.com | |
| github.com/juliangruber/brace-expansion/blob/daa71bcb4a30a2df9bcb7f7b8da... | [email protected] | github.com | |
| github.com/juliangruber/brace-expansion/pull/97 | [email protected] | github.com | |
| github.com/juliangruber/brace-expansion/pull/96 | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.