icalendar is vulnerable to Denial of Service (DoS)
75
CVE Score
High
Denial of Service (DoS)
The Component.__eq__ method compares subcomponents with nested membership loops that recurse into each child, so an equality check runs in O(2^n) time relative to component nesting depth. Because the parser imposes no limit on nesting depth, a small crafted .ics file containing deeply nested equal subtrees can make a single comparison run for minutes or hang indefinitely while pinning a CPU core. Any application that compares parsed calendar components with ==, !=, in, set or dict membership, deduplication, or round-trip checks against attacker-supplied data is exposed to an unauthenticated denial of service. The fix rewrites Component.__eq__ to walk an explicit stack, matching each pair of nested components exactly once so equality becomes linear in the number of components.
Upgrade the icalendar library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application compares parsed calendar components (for example with ==, in, set or dict membership, or deduplication) against untrusted calendar data.
7.1.0 - 7.1.2
Fixed in 7.1.3icalendar is vulnerable to Denial of Service (DoS) in versions 7.1.0 - 7.1.2.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.