CVE-2026-81722
published high CVSS 4.0 · 8.7nltk PorterStemmer before 3.10.3 Quadratic-time DoS
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| nltk | — | nltk0 to < 3.10.3 (affected · semver) · 3.10.3 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.5 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| nltk | nltk | 0 to < 3.10.3 (affected · semver)3.10.3 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-407 Inefficient Algorithmic Complexity
References
2- GitHub Security Advisory (GHSA-ww6m-cw3f-q94g) https://github.com/nltk/nltk/security/advisories/GHSA-ww6m-cw3f-q94g
- VulnCheck Advisory: nltk PorterStemmer before 3.10.3 Quadratic-time DoS https://www.vulncheck.com/advisories/nltk-porterstemmer-before-3.10.3-quadratic-time-dos
Provider assertions
2VulnCheck · cna
nltk PorterStemmer before 3.10.3 Quadratic-time DoS
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- fc7f6964264f4cc9f7fc347763233c4ddb11ba058d803ba101799b4ac58c2e87
- Ingested
- 23 Sep 2026, 09:35:04 UTC
- Source record
- Official CVE record