{"id":"UBUNTU-CVE-2026-45149","details":"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.","modified":"2026-06-05T11:15:22.057468293Z","published":"2026-05-29T20:16:00Z","upstream":["CVE-2026-45149"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-45149"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-45149"},{"type":"REPORT","url":"https://github.com/juliangruber/brace-expansion/security/advisories/GHSA-jxxr-4gwj-5jf2"}],"affected":[{"package":{"name":"node-brace-expansion","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/node-brace-expansion?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.8-1"],"ecosystem_specific":{"binaries":[{"binary_name":"node-brace-expansion","binary_version":"1.1.8-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45149.json"}},{"package":{"name":"node-brace-expansion","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/node-brace-expansion?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.8-1","1.1.11-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.1.11-1","binary_name":"node-brace-expansion"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45149.json"}},{"package":{"name":"node-brace-expansion","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/node-brace-expansion?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.0-1","2.0.1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.0.1-1","binary_name":"node-brace-expansion"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45149.json"}},{"package":{"name":"node-brace-expansion","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/node-brace-expansion?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.1-2","2.0.1+~1.1.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.0.1+~1.1.0-1","binary_name":"node-brace-expansion"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45149.json"}},{"package":{"name":"node-brace-expansion","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/node-brace-expansion?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.1+~1.1.0-1","2.0.1+~1.1.0-2"],"ecosystem_specific":{"binaries":[{"binary_name":"node-brace-expansion","binary_version":"2.0.1+~1.1.0-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45149.json"}},{"package":{"name":"node-brace-expansion","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/node-brace-expansion?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.1+~1.1.0-2"],"ecosystem_specific":{"binaries":[{"binary_name":"node-brace-expansion","binary_version":"2.0.1+~1.1.0-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45149.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}