NLTK patches Toolbox helper vulnerability that can cause denial of service

  • NLTK
  • denial of service
  • recursion
  • CWE-674

Deeply nested input could trigger denial of service

Update to version 3.10.4 to address CWE-674

NLTK has a denial-of-service vulnerability in its Toolbox settings helpers, which process settings files. The issue affects versions up to and including 3.10.3; NLTK lists version 3.10.4 as patched.

An application can trigger an unhandled Python RecursionError if it parses an untrusted Toolbox settings file and then uses a public helper to serialize or transform it. The error can stop the affected operation or request worker. The vulnerability is classified as CWE-674.

The recursion does not cause memory corruption or code execution, and the reported impact does not affect confidentiality or integrity.