{"id":"CVE-2026-81722","published":"2026-08-27T14:51:15Z","modified":"2026-08-27T17:49:54Z","title":"nltk PorterStemmer before 3.10.3 Quadratic-time DoS","vendor":"nltk","product":"nltk","tier":"tail","description":{"text":"nltk PorterStemmer in versions <= 3.10.2 (fixed in 3.10.3) contains an inefficient-algorithmic-complexity denial of service in PorterStemmer.stem(). The _is_consonant() helper walks backward over the entire run of trailing 'y' characters on every call, and _measure() invokes it for each stem position, causing O(n^2) behavior. A single ~20-50 KB untrusted token consisting of a long run of the letter 'y' followed by a matching suffix (e.g., 'ness') can pin a CPU core for seconds to minutes, causing availability impact.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00521,"percentile":0.37575,"provenance":"source"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"references":[{"url":"https://github.com/nltk/nltk/security/advisories/GHSA-ww6m-cw3f-q94g","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/nltk-porterstemmer-before-3.10.3-quadratic-time-dos","tags":["third-party-advisory"]}],"priority":{"score":12.8,"factors":[{"name":"EPSS percentile","points":7.51},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"nltk","affectedVersions":[{"vendor":"nltk","product":"nltk","versions":["< 3.10.3"]}],"fixedVersions":[{"vendor":"nltk","product":"nltk","versions":["3.10.3"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-08-27T17:49:47.104860Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"nltk","vulnerableRanges":["<3.10.3"],"patched":["3.10.3"],"from":["GHSA-ww6m-cw3f-q94g","PYSEC-2026-3738"],"provenance":"source"}],"summary":{"text":"The nltk PorterStemmer component in nltk, in versions up to 3.10.2, has an inefficient algorithmic complexity flaw in its stem() method: the _is_consonant() helper rescans long runs of trailing 'y' characters on every call, so processing scales quadratically with input length. An attacker who can supply untrusted input to the stemmer, with no authentication or user interaction required, can submit a single token of roughly 20 to 50 KB made of a long run of 'y' followed by a matching suffix such as 'ness', causing a CPU core to be occupied for seconds to minutes and denying service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:36:02Z"},"euvd":{"id":"EUVD-2026-67072","exploited":false,"provenance":"source"}}