# CVE-2026-27904: minimatch ReDoS: nested *() extglobs generate catastrophically backtracking regular expressions

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-26T01:07:42.693Z
- Modified: 2026-09-10T03:50:59.274Z
- Also known as: GHSA-23c5-xmqv-rm74
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- isaacs minimatch: >= 10.0.0, < 10.2.3; >= 9.0.0, < 9.0.7; >= 8.0.0, < 8.0.6; >= 7.0.0, < 7.4.8; >= 6.0.0, < 6.2.2; >= 5.0.0, < 5.1.8; >= 4.0.0, < 4.2.5; < 3.1.4
- minimatch (npm): from 10.0.0 before 10.2.3; from 9.0.0 before 9.0.7; from 8.0.0 before 8.0.6; from 7.0.0 before 7.4.8; from 6.0.0 before 6.2.2; from 5.0.0 before 5.1.8; from 4.0.0 before 4.2.5; before 3.1.4
- minimatch_project minimatch: before 3.1.4; from 4.0.0 before 4.2.5; from 5.0.0 before 5.1.8; from 6.0.0 before 6.2.2; from 7.0.0 before 7.4.8; from 8.0.0 before 8.0.6; from 9.0.0 before 9.0.7; from 10.0.0 before 10.2.3

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/isaacs/minimatch/security/advisories/GHSA-23c5-xmqv-rm74> (exploit, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-27904> (advisory)
- <https://github.com/isaacs/minimatch/commit/11d0df6165d15a955462316b26d52e5efae06fce> (web)
- <https://github.com/isaacs/minimatch> (package)

## Sources

- CVE List: [CVE-2026-27904](https://www.cve.org/CVERecord?id=CVE-2026-27904), CVE Terms of Use, modified 2026-02-26
- GitHub Advisory Database: [GHSA-23c5-xmqv-rm74](https://github.com/advisories/GHSA-23c5-xmqv-rm74), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-27904](https://nvd.nist.gov/vuln/detail/CVE-2026-27904), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-27904 · Whole record: https://cve.day/CVE-2026-27904.json · Rebuilt by cve.day 2026-11-25T22:59:14.935Z
