CVE-2026-45149 Details
Description
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.
A denial-of-service vulnerability has been identified in the brace-expansion library, specifically in versions 5.0.0 prior to 5.0.6. The issue arises because the 'max' option is applied too late when expanding large numeric ranges. For example, expanding a range like {1..10000000} generates all 10 million intermediate elements before the 'max' limit is applied. Although the output can be correctly limited to 10 items with 'max=10', the process still consumes approximately 505 MB of memory and takes around 800 milliseconds to build the full intermediate array. This vulnerability allows for significant resource allocation, potentially leading to a denial-of-service condition.
Users can upgrade to brace-expansion version 5.0.6 to address this vulnerability. Alternatively, ensure that the string being expanded does not contain more values than the desired maximum item count.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 1, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/juliangruber/brace-expansion/security/advisories/GHSA-jxxr-4gwj-5jf2 | [email protected] | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| juliangruber brace-expansion | >= 5.0.0, < 5.0.6 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 22, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 12, 2026 | Reanalysis | [email protected] |
| Jun 3, 2026 | Initial Analysis | [email protected] |
| May 29, 2026 | New CVE Received | [email protected] |