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-04-22 14:23:19 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 7.5 HIGH from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS: 0.000580000 probability, percentile 0.182370000 (date 2026-04-06)
Problem Types: CWE-400 | CWE-400 CWE-400: Uncontrolled Resource Consumption
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| 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
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Juliangruber | Brace-expansion | All | All | All | All |
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 | Patch |
| github.com/juliangruber/brace-expansion/commit/7fd684f89fdde3549563d0a65... | [email protected] | github.com | Patch |
| github.com/juliangruber/brace-expansion/security/advisories/GHSA-f886-m6... | [email protected] | github.com | Mitigation, Vendor Advisory |
| github.com/juliangruber/brace-expansion/commit/311ac0d54994158c0a384e286... | [email protected] | github.com | Patch |
| github.com/juliangruber/brace-expansion/commit/b9cacd9e55e7a1fa588fe4b7b... | [email protected] | github.com | Patch |
| github.com/juliangruber/brace-expansion/issues/98 | [email protected] | github.com | Issue Tracking |
| github.com/juliangruber/brace-expansion/pull/95 | [email protected] | github.com | Issue Tracking, Patch |
| github.com/juliangruber/brace-expansion/blob/daa71bcb4a30a2df9bcb7f7b8da... | [email protected] | github.com | Patch |
| github.com/juliangruber/brace-expansion/pull/97 | [email protected] | github.com | Issue Tracking, Patch |
| github.com/juliangruber/brace-expansion/pull/96 | [email protected] | github.com | Issue Tracking, Patch |
| 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.