CVE-2026-129224

Nested grammar categories could interrupt an NLTK lexicon parser

NLTK project · Natural Language Toolkit · CCG lexicon parser

First documented disclosure · Review checkpoint

Summary

A deeply nested CCG grammar category could interrupt lexicon loading.

Severity and exploitation evidence

Medium · 5.3/10 · CVSS 3.1. Severity source.

Exploitation not established: The NLTK advisory describes the vulnerability and its preconditions. The reviewed sources identify no malicious use.

Exploitation evidence source

Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.

How the weakness works

The CCG parser recursively unpacked category expressions without a depth check.

Conditions required

An application loads an externally supplied combinatory categorial grammar lexicon.

Potential impact

Parsing a deeply nested category could stop the worker with a recursion error.

Affected versions and configurations

<= 3.10.3

Fix and mitigation status

3.10.4.

Practical next steps

Upgrade to NLTK 3.10.4 or a later fixed release.

Operating lesson

Validate category depth when importing grammar files.

Evidence and limits

The issue-specific patch was public by 2026-09-11. The fixed release shipped October 21. The November 15 maintainer advisory supplies the identifier and affected versions. This is a historical addition.

Sources