UBUNTU-CVE-2026-45149

Source
https://ubuntu.com/security/CVE-2026-45149
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45149.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2026-45149
Upstream
Published
2026-05-29T20:16:00Z
Modified
2026-06-05T11:15:18.575944120Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
  • Ubuntu - medium
Summary
[none]
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.

References

Affected packages

Ubuntu:18.04:LTS
node-brace-expansion

Package

Name
node-brace-expansion
Purl
pkg:deb/ubuntu/node-brace-expansion?arch=source&distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.1.8-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.1.8-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"
Ubuntu:20.04:LTS
node-brace-expansion

Package

Name
node-brace-expansion
Purl
pkg:deb/ubuntu/node-brace-expansion?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
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"
Ubuntu:22.04:LTS
node-brace-expansion

Package

Name
node-brace-expansion
Purl
pkg:deb/ubuntu/node-brace-expansion?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*
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"
Ubuntu:24.04:LTS
node-brace-expansion

Package

Name
node-brace-expansion
Purl
pkg:deb/ubuntu/node-brace-expansion?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*
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"
Ubuntu:25.10
node-brace-expansion

Package

Name
node-brace-expansion
Purl
pkg:deb/ubuntu/node-brace-expansion?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.0.1+~1.1.0-1
2.0.1+~1.1.0-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "2.0.1+~1.1.0-2",
            "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"
Ubuntu:26.04:LTS
node-brace-expansion

Package

Name
node-brace-expansion
Purl
pkg:deb/ubuntu/node-brace-expansion?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.0.1+~1.1.0-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "2.0.1+~1.1.0-2",
            "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"