brace-expansion: Zero-step sequence causes process hang and memory exhaustion

Summary

CVECVE-2026-33750
StatePUBLISHED
AssignerGitHub_M
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-03-27 15:16:57 UTC
Updated2026-03-30 13:26:29 UTC
DescriptionThe 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


VersionSourceTypeScoreSeverityVector
3.1[email protected]Secondary6.5MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
3.1CNADECLARED6.5MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
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

ReferenceSourceLinkTags
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
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report