Uncontrolled Recursion in Natural Language Toolkit - #VU142774
Published: August 15, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to uncontrolled recursion in nltk.featstruct.FeatStructReader when parsing deeply nested feature-structure or feature-grammar input. A remote attacker can send a specially crafted nested input to cause a denial of service.
The issue is reachable through both FeatStruct(str) and FeatureGrammar.fromstring() when applications parse externally supplied text.