ubuntu-cve-2026-27904
Vulnerability from osv_ubuntu
minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. Prior to version 10.2.3, 9.0.7, 8.0.6, 7.4.8, 6.2.2, 5.1.8, 4.2.5, and 3.1.4, nested *() extglobs produce regexps with nested unbounded quantifiers (e.g. (?:(?:a|b)*)*), which exhibit catastrophic backtracking in V8. With a 12-byte pattern *(*(*(a|b))) and an 18-byte non-matching input, minimatch() stalls for over 7 seconds. Adding a single nesting level or a few input characters pushes this to minutes. This is the most severe finding: it is triggered by the default minimatch() API with no special options, and the minimum viable pattern is only 12 bytes. The same issue affects +() extglobs equally. Versions 10.2.3, 9.0.7, 8.0.6, 7.4.8, 6.2.2, 5.1.8, 4.2.5, and 3.1.4 fix the issue.
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-minimatch",
"binary_version": "0.2.12-1ubuntu0.1~esm2"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:14.04:LTS",
"name": "node-minimatch",
"purl": "pkg:deb/ubuntu/node-minimatch@0.2.12-1ubuntu0.1~esm2?arch=source\u0026distro=esm-infra-legacy/trusty"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.2.11-1",
"0.2.12-1",
"0.2.12-1ubuntu0.1~esm2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-minimatch",
"binary_version": "1.0.0-1ubuntu0.1~esm2"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:16.04:LTS",
"name": "node-minimatch",
"purl": "pkg:deb/ubuntu/node-minimatch@1.0.0-1ubuntu0.1~esm2?arch=source\u0026distro=esm-apps/xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.0.0-1",
"1.0.0-1ubuntu0.1~esm2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-minimatch",
"binary_version": "3.0.4-3+deb10u1build0.18.04.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "node-minimatch",
"purl": "pkg:deb/ubuntu/node-minimatch@3.0.4-3+deb10u1build0.18.04.1?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.0.4-1",
"3.0.4-3",
"3.0.4-3+deb10u1build0.18.04.1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-minimatch",
"binary_version": "3.0.4-4ubuntu0.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "node-minimatch",
"purl": "pkg:deb/ubuntu/node-minimatch@3.0.4-4ubuntu0.1?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.0.4-3",
"3.0.4-4",
"3.0.4-4ubuntu0.1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-minimatch",
"binary_version": "3.1.1+~3.0.5-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "node-minimatch",
"purl": "pkg:deb/ubuntu/node-minimatch@3.1.1+~3.0.5-1?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.0.4+~3.0.3-1",
"3.0.4+~3.0.5-1",
"3.1.1+~3.0.5-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-minimatch",
"binary_version": "9.0.3-4build5"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "node-minimatch",
"purl": "pkg:deb/ubuntu/node-minimatch@9.0.3-4build5?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"5.1.1+~5.1.2-1",
"9.0.3-4build5"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-minimatch",
"binary_version": "9.0.3-6"
}
]
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "node-minimatch",
"purl": "pkg:deb/ubuntu/node-minimatch@9.0.3-6?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"9.0.3-5",
"9.0.3-6"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-minimatch",
"binary_version": "9.0.3-6"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "node-minimatch",
"purl": "pkg:deb/ubuntu/node-minimatch@9.0.3-6?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"9.0.3-6"
]
}
],
"aliases": [],
"details": "minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. Prior to version 10.2.3, 9.0.7, 8.0.6, 7.4.8, 6.2.2, 5.1.8, 4.2.5, and 3.1.4, nested `*()` extglobs produce regexps with nested unbounded quantifiers (e.g. `(?:(?:a|b)*)*`), which exhibit catastrophic backtracking in V8. With a 12-byte pattern `*(*(*(a|b)))` and an 18-byte non-matching input, `minimatch()` stalls for over 7 seconds. Adding a single nesting level or a few input characters pushes this to minutes. This is the most severe finding: it is triggered by the default `minimatch()` API with no special options, and the minimum viable pattern is only 12 bytes. The same issue affects `+()` extglobs equally. Versions 10.2.3, 9.0.7, 8.0.6, 7.4.8, 6.2.2, 5.1.8, 4.2.5, and 3.1.4 fix the issue.",
"id": "UBUNTU-CVE-2026-27904",
"modified": "2026-05-20T15:26:07Z",
"published": "2026-02-26T02:16:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2026-27904"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-27904"
},
{
"type": "REPORT",
"url": "https://github.com/isaacs/minimatch/security/advisories/GHSA-23c5-xmqv-rm74"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2026-27904"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.