BREW-UFFIZZI-CVE-2026-141528 (GHSA-XJ9M-F88P-5J38)
Vulnerability from osv_homebrew – Published: 2026-12-02 12:37 – Updated: 2026-12-02 12:37 – Source websiteImpact
Within the URI template implementation in Addressable, some templates with several variables still generate regular expressions vulnerable to excessive backtracking. GHSA-9f42-57jx-vpp3 reported these templates and listed 2.9.1 as patched, but its fix didn't cover these shapes:
- An expression followed by text that can start with a comma: a literal comma or another expression (e.g.,
{+a,b,c},{+d}or{+v1,v2,v3,v4,v5,v6,v7,v8}{c*}, or, with exploded variables,{c*,d*},{+a*}). A run of commas can be divided between the expression's last variable and what follows it in O(n^2) ways, and the cost grows quickly with the number of variables, especially exploded ones. - An expression that repeats a variable name (e.g.,
{+a,c,c,c}). Its regular expression is the one 2.9.0 generated, which is cubic in the input length for this example. - Expressions next to each other with no literal text between them, where one has several variables (e.g.,
{a,b}{c}or{a,b}{c,d}{e,f}). The 2.9.1 fix for this form, GHSA-9f42-57jx-vpp3's third, only covered an expression with one variable followed by another expression. A run of characters can be divided among the adjacent variables in O(n^k) ways.
The first two shapes are GHSA-9f42-57jx-vpp3's second form, and behave as they did in 2.9.0.
When Template#match or Template#extract is called with a maliciously crafted URI, this can result in uncontrolled resource consumption, leading to denial of service. With 2.9.2, {+v1,v2,v3,v4,v5,v6,v7,v8}{c*} takes about 4 seconds to reject 200 bytes of input on MRI Ruby 2.7 and 3.2, and over 15 seconds on JRuby and TruffleRuby, ,{c*,d*,a*},{+a*}.json takes 3.6 seconds to reject 206 bytes on MRI Ruby 2.7 and 3.2, and over 5 seconds on JRuby, and {a,b}{c,d}{e,f} takes 2.6 seconds to reject 1 KB on MRI Ruby 2.7 and over 15 seconds on JRuby.
Users of the URI parsing capabilities in Addressable but not the URI template matching capabilities are unaffected. Users who only call Template#expand are unaffected.
Affected Versions
This vulnerability affects Addressable >= 2.3.0 (note: 2.3.0 and 2.3.1 were yanked; the earliest installable release is 2.3.2), including 2.9.2. It is fixed in 2.10.0, with two exceptions where matching can still take polynomial time on MRI Ruby < 3.3, JRuby and TruffleRuby: when a processor's match method gives a variable its own pattern, since 2.10.0 then keeps every choice open, as earlier versions did, so that the pattern decides the values; and for some templates that combine an exploded variable, or several variables in one expression, with other expressions, such as {+c*,d}{&b}.{b}.
The vulnerability is exploitable on Ruby implementations whose regular expression engine backtracks without memoization: MRI Ruby < 3.2 and JRuby. The first two shapes are also exploitable on MRI Ruby 3.2, which does not memoize their regular expressions, and on TruffleRuby 40.0, whose regular expression engine falls back to backtracking for them. The third shape is fast on MRI Ruby 3.2 and TruffleRuby 40.0 with 2.9.0; since 2.9.1 it is slow on MRI Ruby 3.2 for the reason described in GHSA-jrfq-gw62-2f3j. MRI Ruby 3.3 and later are not affected. Earlier TruffleRuby versions were not tested.
This has been confirmed on the following runtimes with Addressable 2.9.2:
| Runtime | Status |
|---|---|
| MRI Ruby 2.7 | Vulnerable |
| MRI Ruby 3.1 | Vulnerable |
| MRI Ruby 3.2 | Vulnerable |
| MRI Ruby 3.3 | Not affected |
| MRI Ruby 4.0 | Not affected |
| JRuby 9.4 | Vulnerable |
| TruffleRuby 40.0 | Vulnerable (first two shapes) |
Workarounds
- Upgrade to MRI Ruby 3.3 or later, if your application does not use JRuby or TruffleRuby.
- Avoid matching user-supplied input on unpatched versions of the library against templates with several variables in one
+or#expression followed by a comma or another expression, with a variable name repeated in one expression, or with expressions next to each other where one has several variables. - Limit the length of user-supplied URIs before matching them. Because the cost is polynomial, this only bounds it, but it works on every runtime, including TruffleRuby, where a timeout doesn't.
- On MRI Ruby and JRuby, apply a short timeout, such as
Timeout.timeout, around any call toTemplate#matchorTemplate#extractthat processes user-supplied data. It interrupts the matching thread at an arbitrary point, so it isn't safe in every application. On TruffleRuby, it doesn't stop a regular expression match. - On MRI Ruby 3.2, setting
Regexp.timeoutmakes a slow match raiseRegexp::TimeoutError. It applies to every regular expression in the process.
Credits
Found by Bob Aman (@sporkmonger).
For more information
If there are any questions or comments about this advisory: * Open an issue
{
"affected": [
{
"ecosystem_specific": {
"fix": null,
"range_state": "affected",
"resource": "addressable",
"resource_purl": "pkg:gem/addressable@2.8.7",
"upstream_fixed_in": "2.10.0"
},
"package": {
"ecosystem": "Homebrew",
"name": "uffizzi",
"purl": "pkg:brew/uffizzi"
},
"ranges": [
{
"events": [
{
"introduced": "2.3.4"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"confidence": "high",
"source": "matched",
"strategy": "registry",
"upstream_evidence": [
{
"ecosystem": "RubyGems",
"key": "pkg:gem/addressable@2.8.7",
"name": "addressable",
"resource": "addressable",
"strategy": "registry",
"subject_version": "2.8.7"
}
]
},
"details": "### Impact\n\nWithin the URI template implementation in Addressable, some templates with several variables still generate regular expressions vulnerable to excessive backtracking. GHSA-9f42-57jx-vpp3 reported these templates and listed 2.9.1 as patched, but its fix didn\u0027t cover these shapes:\n\n1. An expression followed by text that can start with a comma: a literal comma or another expression (e.g., `{+a,b,c},{+d}` or `{+v1,v2,v3,v4,v5,v6,v7,v8}{c*}`, or, with exploded variables, `{c*,d*},{+a*}`). A run of commas can be divided between the expression\u0027s last variable and what follows it in O(n^2) ways, and the cost grows quickly with the number of variables, especially exploded ones.\n2. An expression that repeats a variable name (e.g., `{+a,c,c,c}`). Its regular expression is the one 2.9.0 generated, which is cubic in the input length for this example.\n3. Expressions next to each other with no literal text between them, where one has several variables (e.g., `{a,b}{c}` or `{a,b}{c,d}{e,f}`). The 2.9.1 fix for this form, GHSA-9f42-57jx-vpp3\u0027s third, only covered an expression with one variable followed by another expression. A run of characters can be divided among the adjacent variables in O(n^k) ways.\n\nThe first two shapes are GHSA-9f42-57jx-vpp3\u0027s second form, and behave as they did in 2.9.0.\n\nWhen `Template#match` or `Template#extract` is called with a maliciously crafted URI, this can result in uncontrolled resource consumption, leading to denial of service. With 2.9.2, `{+v1,v2,v3,v4,v5,v6,v7,v8}{c*}` takes about 4 seconds to reject 200 bytes of input on MRI Ruby 2.7 and 3.2, and over 15 seconds on JRuby and TruffleRuby, `,{c*,d*,a*},{+a*}.json` takes 3.6 seconds to reject 206 bytes on MRI Ruby 2.7 and 3.2, and over 5 seconds on JRuby, and `{a,b}{c,d}{e,f}` takes 2.6 seconds to reject 1 KB on MRI Ruby 2.7 and over 15 seconds on JRuby.\n\nUsers of the URI parsing capabilities in Addressable but not the URI template matching capabilities are unaffected. Users who only call `Template#expand` are unaffected.\n\n### Affected Versions\n\nThis vulnerability affects Addressable \u003e= 2.3.0 (note: 2.3.0 and 2.3.1 were yanked; the earliest installable release is 2.3.2), including 2.9.2. It is fixed in 2.10.0, with two exceptions where matching can still take polynomial time on MRI Ruby \u003c 3.3, JRuby and TruffleRuby: when a processor\u0027s `match` method gives a variable its own pattern, since 2.10.0 then keeps every choice open, as earlier versions did, so that the pattern decides the values; and for some templates that combine an exploded variable, or several variables in one expression, with other expressions, such as `{+c*,d}{\u0026b}.{b}`.\n\nThe vulnerability is exploitable on Ruby implementations whose regular expression engine backtracks without memoization: MRI Ruby \u003c 3.2 and JRuby. The first two shapes are also exploitable on MRI Ruby 3.2, which does not memoize their regular expressions, and on TruffleRuby 40.0, whose regular expression engine falls back to backtracking for them. The third shape is fast on MRI Ruby 3.2 and TruffleRuby 40.0 with 2.9.0; since 2.9.1 it is slow on MRI Ruby 3.2 for the reason described in GHSA-jrfq-gw62-2f3j. MRI Ruby 3.3 and later are not affected. Earlier TruffleRuby versions were not tested.\n\nThis has been confirmed on the following runtimes with Addressable 2.9.2:\n\n| Runtime | Status |\n|---------|--------|\n| MRI Ruby 2.7 | Vulnerable |\n| MRI Ruby 3.1 | Vulnerable |\n| MRI Ruby 3.2 | Vulnerable |\n| MRI Ruby 3.3 | Not affected |\n| MRI Ruby 4.0 | Not affected |\n| JRuby 9.4 | Vulnerable |\n| TruffleRuby 40.0 | Vulnerable (first two shapes) |\n\n### Workarounds\n\n- Upgrade to MRI Ruby 3.3 or later, if your application does not use JRuby or TruffleRuby.\n- Avoid matching user-supplied input on unpatched versions of the library against templates with several variables in one `+` or `#` expression followed by a comma or another expression, with a variable name repeated in one expression, or with expressions next to each other where one has several variables.\n- Limit the length of user-supplied URIs before matching them. Because the cost is polynomial, this only bounds it, but it works on every runtime, including TruffleRuby, where a timeout doesn\u0027t.\n- On MRI Ruby and JRuby, apply a short timeout, such as `Timeout.timeout`, around any call to `Template#match` or `Template#extract` that processes user-supplied data. It interrupts the matching thread at an arbitrary point, so it isn\u0027t safe in every application. On TruffleRuby, it doesn\u0027t stop a regular expression match.\n- On MRI Ruby 3.2, setting `Regexp.timeout` makes a slow match raise `Regexp::TimeoutError`. It applies to every regular expression in the process.\n\n### Credits\n\nFound by Bob Aman (@sporkmonger).\n\n### For more information\n\nIf there are any questions or comments about this advisory:\n* [Open an issue](https://github.com/sporkmonger/addressable/issues)",
"id": "BREW-uffizzi-CVE-2026-141528",
"modified": "2026-12-02T12:37:04Z",
"published": "2026-12-02T12:37:04Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/sporkmonger/addressable/security/advisories/GHSA-xj9m-f88p-5j38"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-141528"
},
{
"type": "WEB",
"url": "https://github.com/sporkmonger/addressable/commit/576662e4791df3cfd17c944041a98f516d3c0734"
},
{
"type": "PACKAGE",
"url": "https://github.com/sporkmonger/addressable"
},
{
"type": "WEB",
"url": "https://github.com/sporkmonger/addressable/releases/tag/addressable-2.10.0"
}
],
"schema_version": "1.7.3",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H",
"type": "CVSS_V3"
}
],
"summary": "Addressable: Regular Expression Denial of Service in templates with several variables",
"upstream": [
"GHSA-xj9m-f88p-5j38",
"CVE-2026-141528"
]
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
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.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.