Visit the Wiz Whimzical Shop at AWS re:Invent
Vulnerability DatabaseCVE-2026-141537

CVE-2026-141537: 
Ruby vulnerability analysis and mitigation

Overview

CVE-2026-141537 is a denial-of-service vulnerability in the Addressable Ruby gem caused by quadratic-complexity Unicode normalization when processing attacker-controlled input containing long runs of combining marks. It affects Addressable versions >= 2.0.0 and <= 2.9.2 (all Ruby versions for 2.0.0–2.2.4; Ruby runtimes with quadratic String#unicode_normalize for 2.2.5+). The vulnerability was reported by Patrik Ragnarsson and published on November 23, 2026, with the GitHub Advisory Database entry updated December 1, 2026. It carries a CVSS v3.1 base score of 3.7 (Low) (Github Advisory, Security Advisory).

Technical details

The root cause is CWE-407 (Inefficient Algorithmic Complexity): Ruby's String#unicode_normalize sorts and reorders combining marks after a base character using a loop that is quadratic in the number of marks, and Addressable passes attacker-controlled URI text directly into this function without length-bounding the combining mark runs. The vulnerable code paths include URI.normalize_component (and thus #normalize, #normalized_path, #==, #===, #display_uri, #route_from, #route_to), URI.normalized_encode, Template#expand, #match, #extract, and IDNA.to_ascii with the pure-Ruby IDNA backend. Critically, combining marks can be pct-encoded (e.g., %CC%80%CC%A4), meaning a URI composed entirely of ASCII characters can trigger the vulnerability — URI.parse alone is unaffected since it does not normalize. Affected Ruby runtimes for Addressable >= 2.2.5 include all Ruby <= 3.2, Ruby 3.3.0–3.3.10, and Ruby 3.4.0–3.4.7; Ruby 3.3.11, 3.4.8, and 4.0.0 fixed the quadratic loop independently (Github Advisory, Security Advisory).

Impact

Exploitation results in excessive CPU consumption in the affected Ruby process, with a 16 kB path (8,000 combining marks) consuming approximately 2 seconds of CPU time per normalization call, and longer inputs potentially holding a worker for over a minute. There is no confidentiality or integrity impact — the vulnerability is limited to availability. An unauthenticated remote attacker who can submit URIs processed by any of the vulnerable Addressable code paths can repeatedly trigger this condition to deny service to the affected application worker (Github Advisory, Security Advisory).

Exploitability

A public proof-of-concept (PoC) Ruby script is included in the official security advisory; it demonstrates multi-second CPU consumption per call using crafted combining-mark URIs and requires no network requests or authentication. There is no evidence of in-the-wild exploitation at this time, and no threat actor attribution has been reported. The EPSS score is 0.0, and the vulnerability is not listed in the CISA KEV catalog. The NVD SSVC assessment classifies exploitation status as "poc" with "no" automatability (Github Advisory, Security Advisory).

Exploitation steps

  1. Identify target: Find a Ruby application using Addressable versions 2.0.0–2.9.2 on a vulnerable Ruby runtime (≤ 3.2, 3.3.0–3.3.10, or 3.4.0–3.4.7) that accepts user-controlled URI input and passes it to normalization, comparison, template matching/expansion, or IDNA host processing.
  2. Craft payload: Construct a URI containing a long run of combining marks — either as raw Unicode (e.g., "\u0301\u0323" * 4000, producing a 16 kB path) or pct-encoded for ASCII-only bypass (e.g., "%CC%80%CC%A4" * 4000, producing a 48 kB ASCII string).
  3. Submit crafted URI: Send the malicious URI to the application endpoint that triggers Addressable normalization — for example, via an HTTP request where the path, query, or host is processed by URI#normalize, URI#==, Template#expand, Template#match, or IDNA.to_ascii.
  4. Trigger quadratic CPU consumption: Each normalization call on the crafted input causes Ruby's String#unicode_normalize to execute its quadratic combining-mark reordering loop, consuming ~2 seconds of CPU per call for 8,000 marks.
  5. Sustain denial of service: Repeat requests at a rate that keeps application workers occupied, effectively denying service to legitimate users without requiring authentication or special privileges (Security Advisory, Github Advisory).

Indicators of compromise

  • Network: HTTP requests with unusually long URI paths or query strings containing repeated percent-encoded sequences such as %CC%80, %CC%A4, %CC%81, %CC%A3 (combining mark pct-encodings) repeated hundreds or thousands of times; requests with paths or values exceeding typical length thresholds (e.g., > 10 kB).
  • Logs: Application or web server access logs showing requests with extremely long URI components; repeated slow or timed-out requests to endpoints that perform URI normalization or template matching.
  • Process: Sustained high CPU utilization on Ruby application worker processes without corresponding high request throughput; individual request processing times of multiple seconds for URI-handling endpoints.
  • File System: No file system artifacts are expected, as this is a CPU exhaustion attack with no code execution component (Security Advisory).

Mitigation and workarounds

The primary fix is upgrading Addressable to version 2.10.0, which limits normalization to runs of at most 30 combining marks (the Stream-Safe Text Format limit per UAX #15), leaving longer runs unnormalized and restoring linear-time behavior on all Ruby versions (Github Advisory, Release). If upgrading Addressable is not immediately possible and you use Addressable >= 2.2.5, upgrading Ruby to 3.3.11, 3.4.8, or 4.0.0 (which fixed the quadratic loop in String#unicode_normalize) also mitigates the issue. Additional workarounds include: (1) limiting URI length before passing to Addressable, or (2) rejecting input containing long runs of combining marks using a regex such as /\p{M}{31,}/ applied after pct-decoding (Security Advisory).

Community reactions

The vulnerability was reported and the fix provided by Patrik Ragnarsson (@dentarg), who is credited in the official advisory. The fix was co-authored with Claude Opus 5.5 as noted in the merge commit. No significant broader media coverage or notable third-party researcher commentary beyond the official advisory has been identified at this time (Security Advisory, Patch Commit).

Additional resources


Source: This report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-qrq6-rcpx-pmm6MEDIUM4.8
  • Ruby logoRuby
  • addressable
NoYesDec 01, 2026
GHSA-cwmp-x65r-27fvLOW3.7
  • Ruby logoRuby
  • addressable
NoYesDec 02, 2026
GHSA-qg8x-qm93-fw27LOW3.7
  • Ruby logoRuby
  • addressable
NoYesDec 01, 2026
GHSA-c7j3-jq7p-v3prLOW3.7
  • Ruby logoRuby
  • addressable
NoYesDec 01, 2026
GHSA-v6hg-69pc-4f3fLOW3.7
  • Ruby logoRuby
  • addressable
NoYesDec 01, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management