5.3Medium

CVE-2026-81724NLTK before 3.10.3 Denial of Service via Uncontrolled Recursion

nltk nltk Published: (2 months ago)

Description

NLTK before 3.10.3 contains an uncontrolled recursion vulnerability in nltk.featstruct.FeatStructReader that allows unauthenticated attackers to cause a denial of service by supplying deeply nested feature-structure input. Attackers can craft trivial payloads with nested brackets that exceed Python's recursion limit and raise an unhandled RecursionError, crashing applications that parse user-supplied feature structures or feature grammars.

Weakness (CWE): CWE-674

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
nltk nltk < 3.10.3, fixed 3.10.3

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:* < 3.10.3