NLTK: Uncontrolled recursion in Toolbox settings helpers causes denial of service via deeply nested input (nltk nltk)

CVE-2026-129228
MEDIUM 5.3

At a glance

Source
NVD
EPSS
EPSS 0.54 % Β· percentile 47 ()
State
PUBLISHED
Published
Updated
Assigner
GitHub_M
Affected products
nltk Β· nltk
NVD status
Awaiting Analysis

Description

NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. Prior to 3.10.4, ToolboxSettings.parse builds a deeply nested attacker-controlled settings tree iteratively, but the later public helpers to_settings_string, remove_blanks, add_default_fields, sort_fields, and add_blank_lines recursively traverse that tree without a depth bound. Invoking any of those helpers on input nested beyond the interpreter recursion limit can raise RecursionError and abort the operation or request worker. This issue is fixed in version 3.10.4.

Weaknesses (CWE)

  • CWE-674 β€” Uncontrolled Recursion

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LGitHub_M
CVSS 3.1MEDIUM 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LNVD Β· security-advisories@github.com (Secondary)

Advisories

European references

Affected products

ProductAffected versions
nltk Β· nltk
affected : < 3.10.4

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST β€” attribution requested
ENISA EUVDENISA β€” reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain β€” this product uses data from the NVD API but is not endorsed or certified by the NVD