<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Tue, 24 Nov 2026 03:50:29 +0000</lastBuildDate>
    <item>
      <title>BREW-ansible-lint-CVE-2026-132276 — wcmatch: Polynomial-time ReDoS when matching untrusted names against multi-star patterns (default flags)</title>
      <link>https://db.gcve.eu/vuln/brew-ansible-lint-cve-2026-132276</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Homebrew: ansible-lint&lt;/p&gt;
&lt;p&gt;# Summary&lt;/p&gt;
&lt;p&gt;With default flags, a pattern that contains several `*` wildcards takes polynomial time, O(n^k) for k stars, to reject a crafted file name. The pattern is an ordinary developer constant such as `*_*_*_*_*.csv`; only the string being matched comes from the attacker. A 255-byte file name (the maximum on common filesystems) takes 73 s with `fnmatch.fnmatch()` and 86 s with `glob.globmatch()`. The standard library&amp;#39;s `fnmatch` handles the same input in under a millisecond.&lt;/p&gt;
&lt;p&gt;This is different from GHSA-84v8-qmgq-9g88: that advisory covers extglob patterns, while this case needs no flags and no attacker-controlled pattern.&lt;/p&gt;
&lt;p&gt;# Details&lt;/p&gt;
&lt;p&gt;Every `*` is translated to a lazy `.*?` (`_STAR`, `wcmatch/_wcparse.py:212`; `_PATH_STAR` `[^/]*?`, `:218`), which is emitted in `_handle_star` (`:1405-1424`):&lt;/p&gt;
&lt;p&gt;```text
*_*_*_*_*.csv  -&amp;gt;  ^(?s:(?=.)(?![.]).*?_.*?_.*?_.*?_.*?\.csv)$
```&lt;/p&gt;
&lt;p&gt;When the subject consists of many `_` and does not end in `.csv`, the regex engine tries every way of splitting it between the stars. CPython fixed the same problem in its own `fnmatch` (bpo-40480) by making every star segment except the last one atomic.&lt;/p&gt;
&lt;p&gt;# PoC&lt;/p&gt;
&lt;p&gt;```python
import time, fnmatch as std
from wcmatch import fnmatch, glob&lt;/p&gt;
&lt;p&gt;for pat, n in [(&amp;#39;*_*_*_*.csv&amp;#39;, 255), (&amp;#39;*_*_*_*.csv&amp;#39;, 400), (&amp;#39;*_*_*_*_*.csv&amp;#39;, 150),
               (&amp;#39;*_*_*_*_*.csv&amp;#39;, 200), (&amp;#39;*_*_*_*_*.csv&amp;#39;, 255)]:
    name = &amp;#39;_&amp;#39; * n
    t = time.perf_counter(); fnmatch.fnmatch(name, pat); w = time.perf_counter() - t
    t = time.perf_counter();…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Homebrew: ansible-lint&lt;/p&gt;
&lt;p&gt;# Summary&lt;/p&gt;
&lt;p&gt;With default flags, a pattern that contains several `*` wildcards takes polynomial time, O(n^k) for k stars, to reject a crafted file name. The pattern is an ordinary developer constant such as `*_*_*_*_*.csv`; only the string being matched comes from the attacker. A 255-byte file name (the maximum on common filesystems) takes 73 s with `fnmatch.fnmatch()` and 86 s with `glob.globmatch()`. The standard library&amp;#39;s `fnmatch` handles the same input in under a millisecond.&lt;/p&gt;
&lt;p&gt;This is different from GHSA-84v8-qmgq-9g88: that advisory covers extglob patterns, while this case needs no flags and no attacker-controlled pattern.&lt;/p&gt;
&lt;p&gt;# Details&lt;/p&gt;
&lt;p&gt;Every `*` is translated to a lazy `.*?` (`_STAR`, `wcmatch/_wcparse.py:212`; `_PATH_STAR` `[^/]*?`, `:218`), which is emitted in `_handle_star` (`:1405-1424`):&lt;/p&gt;
&lt;p&gt;```text
*_*_*_*_*.csv  -&amp;gt;  ^(?s:(?=.)(?![.]).*?_.*?_.*?_.*?_.*?\.csv)$
```&lt;/p&gt;
&lt;p&gt;When the subject consists of many `_` and does not end in `.csv`, the regex engine tries every way of splitting it between the stars. CPython fixed the same problem in its own `fnmatch` (bpo-40480) by making every star segment except the last one atomic.&lt;/p&gt;
&lt;p&gt;# PoC&lt;/p&gt;
&lt;p&gt;```python
import time, fnmatch as std
from wcmatch import fnmatch, glob&lt;/p&gt;
&lt;p&gt;for pat, n in [(&amp;#39;*_*_*_*.csv&amp;#39;, 255), (&amp;#39;*_*_*_*.csv&amp;#39;, 400), (&amp;#39;*_*_*_*_*.csv&amp;#39;, 150),
               (&amp;#39;*_*_*_*_*.csv&amp;#39;, 200), (&amp;#39;*_*_*_*_*.csv&amp;#39;, 255)]:
    name = &amp;#39;_&amp;#39; * n
    t = time.perf_counter(); fnmatch.fnmatch(name, pat); w = time.perf_counter() - t
    t = time.perf_counter();…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/brew-ansible-lint-cve-2026-132276</guid>
    </item>
    <item>
      <title>fkie_cve-2026-132276</title>
      <link>https://db.gcve.eu/vuln/fkie_cve-2026-132276</link>
      <description>&lt;p&gt;wcmatch is a Python library for wildcard file-name matching. Prior to 11.2, under the default flags, matching a non-matching attacker-controlled name against an application-supplied pattern containing several star wildcards separated by literals makes the lazy .? and [^/]? segments, including _STAR and _PATH_STAR emitted by _handle_star() in wcmatch/_wcparse.py, backtrack across possible splits, so a single comparison can consume prolonged CPU time. The pattern remains a developer-controlled constant and only the name is attacker-controlled; affected paths include fnmatch.fnmatch(), glob.globmatch(), and filesystem glob scans where another user can create names, without enabling extglob or any non-default flag. This issue is fixed in 11.2.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;wcmatch is a Python library for wildcard file-name matching. Prior to 11.2, under the default flags, matching a non-matching attacker-controlled name against an application-supplied pattern containing several star wildcards separated by literals makes the lazy .? and [^/]? segments, including _STAR and _PATH_STAR emitted by _handle_star() in wcmatch/_wcparse.py, backtrack across possible splits, so a single comparison can consume prolonged CPU time. The pattern remains a developer-controlled constant and only the name is attacker-controlled; affected paths include fnmatch.fnmatch(), glob.globmatch(), and filesystem glob scans where another user can create names, without enabling extglob or any non-default flag. This issue is fixed in 11.2.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/fkie_cve-2026-132276</guid>
    </item>
    <item>
      <title>GHSA-53pm-wgxf-c6qf — wcmatch: Polynomial-time ReDoS when matching untrusted names against multi-star patterns (default flags)</title>
      <link>https://db.gcve.eu/vuln/ghsa-53pm-wgxf-c6qf</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: wcmatch&lt;/p&gt;
&lt;p&gt;# Summary&lt;/p&gt;
&lt;p&gt;With default flags, a pattern that contains several `*` wildcards takes polynomial time, O(n^k) for k stars, to reject a crafted file name. The pattern is an ordinary developer constant such as `*_*_*_*_*.csv`; only the string being matched comes from the attacker. A 255-byte file name (the maximum on common filesystems) takes 73 s with `fnmatch.fnmatch()` and 86 s with `glob.globmatch()`. The standard library&amp;#39;s `fnmatch` handles the same input in under a millisecond.&lt;/p&gt;
&lt;p&gt;This is different from GHSA-84v8-qmgq-9g88: that advisory covers extglob patterns, while this case needs no flags and no attacker-controlled pattern.&lt;/p&gt;
&lt;p&gt;# Details&lt;/p&gt;
&lt;p&gt;Every `*` is translated to a lazy `.*?` (`_STAR`, `wcmatch/_wcparse.py:212`; `_PATH_STAR` `[^/]*?`, `:218`), which is emitted in `_handle_star` (`:1405-1424`):&lt;/p&gt;
&lt;p&gt;```text
*_*_*_*_*.csv  -&amp;gt;  ^(?s:(?=.)(?![.]).*?_.*?_.*?_.*?_.*?\.csv)$
```&lt;/p&gt;
&lt;p&gt;When the subject consists of many `_` and does not end in `.csv`, the regex engine tries every way of splitting it between the stars. CPython fixed the same problem in its own `fnmatch` (bpo-40480) by making every star segment except the last one atomic.&lt;/p&gt;
&lt;p&gt;# PoC&lt;/p&gt;
&lt;p&gt;```python
import time, fnmatch as std
from wcmatch import fnmatch, glob&lt;/p&gt;
&lt;p&gt;for pat, n in [(&amp;#39;*_*_*_*.csv&amp;#39;, 255), (&amp;#39;*_*_*_*.csv&amp;#39;, 400), (&amp;#39;*_*_*_*_*.csv&amp;#39;, 150),
               (&amp;#39;*_*_*_*_*.csv&amp;#39;, 200), (&amp;#39;*_*_*_*_*.csv&amp;#39;, 255)]:
    name = &amp;#39;_&amp;#39; * n
    t = time.perf_counter(); fnmatch.fnmatch(name, pat); w = time.perf_counter() - t
    t = time.perf_counter();…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: wcmatch&lt;/p&gt;
&lt;p&gt;# Summary&lt;/p&gt;
&lt;p&gt;With default flags, a pattern that contains several `*` wildcards takes polynomial time, O(n^k) for k stars, to reject a crafted file name. The pattern is an ordinary developer constant such as `*_*_*_*_*.csv`; only the string being matched comes from the attacker. A 255-byte file name (the maximum on common filesystems) takes 73 s with `fnmatch.fnmatch()` and 86 s with `glob.globmatch()`. The standard library&amp;#39;s `fnmatch` handles the same input in under a millisecond.&lt;/p&gt;
&lt;p&gt;This is different from GHSA-84v8-qmgq-9g88: that advisory covers extglob patterns, while this case needs no flags and no attacker-controlled pattern.&lt;/p&gt;
&lt;p&gt;# Details&lt;/p&gt;
&lt;p&gt;Every `*` is translated to a lazy `.*?` (`_STAR`, `wcmatch/_wcparse.py:212`; `_PATH_STAR` `[^/]*?`, `:218`), which is emitted in `_handle_star` (`:1405-1424`):&lt;/p&gt;
&lt;p&gt;```text
*_*_*_*_*.csv  -&amp;gt;  ^(?s:(?=.)(?![.]).*?_.*?_.*?_.*?_.*?\.csv)$
```&lt;/p&gt;
&lt;p&gt;When the subject consists of many `_` and does not end in `.csv`, the regex engine tries every way of splitting it between the stars. CPython fixed the same problem in its own `fnmatch` (bpo-40480) by making every star segment except the last one atomic.&lt;/p&gt;
&lt;p&gt;# PoC&lt;/p&gt;
&lt;p&gt;```python
import time, fnmatch as std
from wcmatch import fnmatch, glob&lt;/p&gt;
&lt;p&gt;for pat, n in [(&amp;#39;*_*_*_*.csv&amp;#39;, 255), (&amp;#39;*_*_*_*.csv&amp;#39;, 400), (&amp;#39;*_*_*_*_*.csv&amp;#39;, 150),
               (&amp;#39;*_*_*_*_*.csv&amp;#39;, 200), (&amp;#39;*_*_*_*_*.csv&amp;#39;, 255)]:
    name = &amp;#39;_&amp;#39; * n
    t = time.perf_counter(); fnmatch.fnmatch(name, pat); w = time.perf_counter() - t
    t = time.perf_counter();…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/ghsa-53pm-wgxf-c6qf</guid>
    </item>
  </channel>
</rss>
