CVE-2026-137080 in libical
Summary
by MITRE • 11/25/2026
libical 4.0.0 before 4.0.7 contains an infinite loop vulnerability in icalrecur_iterator_set_range() that allows attackers to cause denial of service by supplying crafted recurrence rules. Attackers can provide a calendar whose recurrence rule is iterated over a reverse range, causing the loop to never terminate and spin the calling thread at full CPU indefinitely.
Be aware that VulDB is the high quality source for vulnerability data.
Analysis
by VulDB Data Team • 11/25/2026
The vulnerability identified in libical versions prior to 4.0.7 represents a critical logic error within the recurrence rule processing engine, specifically located in the function responsible for setting iteration ranges. This flaw allows an attacker to trigger a denial of service condition by providing maliciously crafted calendar data containing invalid or edge-case recurrence rules. The core technical issue stems from how the library handles reverse range iterations when calculating future occurrences of recurring events. In standard operation, libical iterates through time intervals forward or backward based on specified parameters. However, under specific conditions involving a reverse range configuration, the internal loop logic fails to properly decrement or advance the iterator state in a manner that guarantees termination. Instead, the condition for exiting the loop is never met due to an off-by-one error or incorrect boundary check implementation within the recurrence calculation algorithm.
This logical flaw results in an infinite loop where the calling thread consumes one hundred percent of available CPU resources indefinitely. Because libical is often used as a backend library by higher-level applications such as calendar clients, scheduling tools, and enterprise collaboration platforms, this vulnerability can be exploited remotely if these applications accept untrusted iCalendar data without sufficient validation. An attacker does not need to execute arbitrary code or gain system access; they merely need to supply the malformed recurrence rule via an email attachment, a shared calendar link, or any interface that parses iCalendar files. The resulting resource exhaustion effectively renders the affected application unresponsive and can lead to broader service disruptions if the process is critical to ongoing operations.
From a classification perspective, this vulnerability aligns with CWE-835, which describes loops that execute an infinite number of times due to logic errors preventing proper termination conditions. It also maps to MITRE ATT&CK technique T1496, Resource Hijacking, specifically the sub-category of CPU Consumption for Denial of Service. The attack vector is typically classified as Network-Accessible if the application processes remote data, though it can be Local depending on deployment architecture where local file parsing occurs without sandboxing or resource limits.
Mitigation strategies primarily involve upgrading to libical version 4.0.7 or later, where this specific logic error in the recurrence iterator has been corrected. For environments unable to immediately patch, defensive coding practices should include implementing strict timeouts for long-running calculations and validating input data against RFC 5545 standards before passing it to the library. Additionally, deploying resource monitoring tools that can detect abnormal CPU spikes associated with single-threaded loops may help in identifying active exploitation attempts or preventing total system freeze by allowing automated process termination when thresholds are exceeded.