⚠️

Disclaimer & Liability

The content provided on this website is for educational, research, and security awareness purposes only. Any unauthorized, illegal, or abusive use of the information, tools, and techniques discussed is solely the responsibility of the user. The author and publisher assume no liability for any damages, injuries, or consequences resulting from the misuse of this content.

CVE-2026-141537: Addressable Ruby Gem Faces Quadratic Unicode Normalization DoS | Alireza Bolbolabadi - Red Team Security
LOADING

CVE-2026-141537: Addressable Ruby Gem Faces Quadratic Unicode Normalization DoS

Executive summary

CVE-2026-141537 is a denial-of-service vulnerability in the Addressable Ruby gem, an alternative implementation of Ruby's standard-library URI functionality. In affected releases, attacker-controlled URI data containing long sequences of Unicode combining marks may undergo normalization with quadratic computational complexity.

The vulnerable behavior can surface during URI normalization, comparison, display, routing, template operations, and host processing through Addressable's pure-Ruby IDNA implementation. The practical impact depends on the Ruby runtime: beginning with Addressable 2.2.5, the issue is relevant only where String#unicode_normalize also exhibits quadratic complexity. Addressable 2.10.0 contains the fix.

The available record assigns a CVSS 3.7 score and low severity. No active exploitation, public proof of concept, or threat-actor campaign is identified in the supplied intelligence. The absence of exploitation reports does not remove the need to assess applications that normalize untrusted URLs, particularly on repeated or concurrent requests.

Affected systems

The vulnerability applies to the Addressable gem from version 2.0.0 through versions before 2.10.0.

Affected deployments include Ruby applications that pass attacker-influenced data into Addressable operations such as:

  • URI parsing, normalization, or comparison

  • URL display or formatting

  • Routing and redirect handling

  • URI template processing

  • Internationalized host processing through the pure-Ruby IDNA implementation

The runtime dependency is important. From Addressable 2.2.5 onward, practical exposure is limited to Ruby runtimes whose String#unicode_normalize implementation processes long combining-mark sequences with quadratic complexity. The supplied sources do not identify specific Ruby releases with that behavior, so affected-runtime combinations cannot be determined from the advisory alone.

Microsoft maintains a CVE entry for CVE-2026-141537, but the available context does not enumerate affected Microsoft products. Product-level coverage should therefore be checked directly in the MSRC advisory rather than inferred.

Technical analysis

The root cause is superlinear Unicode normalization of attacker-controlled data. A URI containing a long contiguous sequence of combining marks can force the underlying normalization routine to perform work that grows approximately with the square of the sequence length. Doubling the sequence may consequently result in substantially more processing work rather than a proportional increase.

Addressable invokes normalization in several common URI workflows. A web application that parses or canonicalizes user-provided links, redirect targets, callback URLs, webhook destinations, or other externally supplied URI data may therefore expose the vulnerable path. Local tools that process untrusted URL collections can be affected as well.

The likely consequence is CPU saturation in an application process or worker. The supplied advisory does not indicate memory corruption, code execution, authentication bypass, or information disclosure. Availability is the principal security property at risk.

Exploitability varies with request handling and runtime behavior. Repeated requests or concurrent requests can increase the likelihood of exhausting available CPU or workers, but the supplied intelligence contains no evidence of exploitation in the wild. The CVSS 3.7 low-severity rating reflects the constrained availability impact and the runtime-dependent preconditions described in the record.

Mitigation

Upgrade Addressable to version 2.10.0 or later. Confirm the resolved dependency in each application, gemset, container image, and vendored bundle rather than checking only the system gem installation. Existing lockfiles that pin an affected Addressable release require an explicit dependency update and redeployment.

Where an immediate upgrade is not possible:

  • Assess the deployed Ruby runtime by measuring String#unicode_normalize behavior with increasingly long runs of combining marks. A runtime with linear behavior materially reduces practical exposure for Addressable 2.2.5 and later, although it does not replace upgrading.

  • Apply defensive limits to URI length and combining-mark density before attacker-controlled values reach Addressable normalization, comparison, routing, templating, or IDNA operations.

  • Where operationally feasible, avoid Addressable-dependent processing of untrusted URLs or move that processing behind a component with resource controls.

  • Review proxy and web-server limits for request targets, headers, and parameters whose values may later be normalized as URIs.

Potential detection indicators include sustained CPU utilization in Ruby workers, growing request queues, slow-request traces containing Addressable parsing or normalization frames, and incoming URLs with unusually long contiguous sequences of combining marks. Log handling should avoid reproducing large untrusted Unicode sequences without suitable safeguards.

Expert insight

This vulnerability illustrates why dependency version ranges alone do not fully describe real-world exposure. Addressable's practical vulnerability is conditional on the behavior of the Ruby runtime beneath it, making environment-specific validation essential. Organizations may also bundle Addressable indirectly, so a direct dependency search may not reveal every deployment path.

The issue is nevertheless operationally relevant because URI normalization is a common trust-boundary operation. Applications that accept arbitrary URLs often do so in the belief that parsing is computationally cheap; Unicode-normalized inputs challenge that assumption. The fixed release provides the cleanest remediation, while boundary controls can reduce exposure before patching.

Actionable recommendations

  1. Inventory Addressable usage, including transitive dependencies and vendored or containerized Ruby environments.

  1. Resolve affected installations to Addressable 2.10.0 or later and redeploy them.

  1. Identify endpoints and background processes that normalize untrusted URI, redirect, callback, template, or host data.

  1. Evaluate the deployed Ruby runtime's String#unicode_normalize performance with long combining-mark sequences.

  1. Add bounded input handling at application or proxy boundaries for externally supplied URI data.

  1. Monitor Ruby worker CPU usage, latency, queue depth, and slow-request traces for normalization-related resource exhaustion.

  1. Review the MSRC advisory for product-specific applicability where Microsoft software may bundle the affected component.

References

·
← News