Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-113811 Overview
CVE-2026-113811 affects the Perl module Algorithm::UrataniTakeda in versions 0.1.5 before 0.1.7. The module implements the Uratani-Takeda multi-pattern string search algorithm. The vulnerability allows memory exhaustion through an unbounded failure shift cache in the search routine. The matcher object caches a failure shift for every pair of trie state and text character encountered during a search. Nothing clears this cache during the matcher's lifetime. An attacker who submits text containing many distinct characters to a long-lived matcher can grow process memory with each search call. This is an uncontrolled resource consumption flaw tracked as [CWE-770].
Critical Impact
Attackers can exhaust process memory by feeding diverse input to a persistent Algorithm::UrataniTakeda matcher, causing denial of service in long-running Perl applications.
Affected Products
- Algorithm::UrataniTakeda for Perl, version 0.1.5
- Algorithm::UrataniTakeda for Perl, version 0.1.6
- Long-running Perl services instantiating a shared matcher across untrusted inputs
Discovery Timeline
- 2026-10-21 - CVE-2026-113811 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-113811
Vulnerability Analysis
The Uratani-Takeda algorithm uses a trie to represent search keywords and relies on a failure function to resume matching when a character mismatches. In the affected releases, the matcher computes a failure shift lazily for each (state, character) pair and stores the result in a cache attached to the matcher object. The implementation never evicts entries. Each previously unseen character at a given state inserts a new entry that persists for the life of the matcher.
An attacker who controls the text passed to search can supply input drawn from a large alphabet, such as arbitrary Unicode code points. Each distinct character triggers a new cache entry at every reachable state. Memory growth is bounded only by the product of trie states and the distinct character set observed, which attackers can inflate at will. The flaw is categorized as resource exhaustion under [CWE-770].
Root Cause
The matcher object stores failure shifts in an unbounded field. No eviction, size limit, or lifetime policy governs the cache. The optimization assumes a small, stable alphabet, but the implementation accepts any input without constraining the cache.
Attack Vector
The vulnerability requires an application that keeps a matcher object alive across multiple search calls and that accepts attacker-controlled text. Web services, log processors, and streaming pipelines that reuse a compiled matcher are the primary exposure. Each malicious payload need only introduce new characters to inflate the cache further.
# Security patch excerpt - Changes file
Revision history for {{ $dist->name }}:
{{$NEXT}}
+ [Security]
+ - Limit the size of the failure shift table. (CVE-2026-113811)
+
[Tests]
- Added a test case to prove that duplicate keywords do not return duplicate results.
Source: GitHub Patch for Algorithm Update
The upstream fix bounds the failure shift table so the cache cannot grow without limit.
Detection Methods for CVE-2026-113811
Indicators of Compromise
- Sustained resident set size (RSS) growth in Perl processes that import Algorithm::UrataniTakeda version 0.1.5 or 0.1.6.
- Out-of-memory kills or allocator failures in long-running services that invoke search on untrusted text.
- Input streams containing unusually diverse character sets, including large runs of distinct Unicode code points.
Detection Strategies
- Inventory CPAN dependencies and flag any application pinning Algorithm::UrataniTakeda below v0.1.7.
- Correlate request volume with per-process memory growth to identify workloads that trend upward without release.
- Add runtime instrumentation around matcher objects to log cache entry counts and alert on unbounded growth.
Monitoring Recommendations
- Track memory metrics for Perl workers using Prometheus process_resident_memory_bytes or equivalent exporters.
- Monitor system oom-kill events in kernel logs for processes using the vulnerable module.
- Review access logs for high-entropy or Unicode-heavy payloads targeting endpoints that invoke pattern search.
How to Mitigate CVE-2026-113811
Immediate Actions Required
- Upgrade Algorithm::UrataniTakeda to version v0.1.7 or later from CPAN.
- Audit services that persist matcher objects across requests and restart them after upgrading.
- Enforce per-process memory limits using ulimit -v or systemd MemoryMax to contain exploitation during patch rollout.
Patch Information
The maintainer released version v0.1.7 of Algorithm::UrataniTakeda, which bounds the size of the failure shift table. See the GitHub Security Advisory GHSA-9vcx-647w-pr3h, the MetaCPAN Release Changelog, and the OpenWall OSS-Security Discussion for details.
Workarounds
- Recreate matcher objects per request instead of reusing a long-lived instance, so the cache cannot accumulate across sessions.
- Normalize or restrict input alphabets before passing text to search, reducing the number of distinct characters.
- Impose request size caps and process recycling policies on services that cannot be patched immediately.
# Configuration example - upgrade and pin the fixed release
cpanm Algorithm::UrataniTakeda@v0.1.7
# Pin the fixed version in cpanfile
echo 'requires "Algorithm::UrataniTakeda", ">= v0.1.7";' >> cpanfile
# Constrain worker memory via systemd unit override
sudo systemctl edit my-perl-service.service
# Add under [Service]:
# MemoryMax=512M
# Restart=on-failure
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

