CVE catalog

CVE-2026-81722

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

[CVE catalog]

Severity
High · CVSS 8.7CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.52% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiannltksid3.10.3-1fixed
Debiannltkforky3.10.3-1fixed
Debiannltktrixie3.9.1-2vulnerable
Debiannltkbookworm3.8-1vulnerable
CpenltkNot reported3.10.3fixed
PyPInltkNot reported3.10.3fixed
PyPInltkNot reported3.10.3fixed
Ubuntunltkpro3.9.1-2vulnerable
Ubuntunltkpro3.9.1-2build1vulnerable
Ubuntunltkpro3.9.2-1vulnerable
Ubuntunltkpro3.9.2-1ubuntu0.1~esm1vulnerable
Ubuntunltkpro3.9.2-1ubuntu0.1~esm2vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannltksourcesid3.10.3-1not yet assignedNot reportedNot reported
Debiannltksourceforky3.10.3-1not yet assignedNot reportedNot reported
Debiannltksourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debiannltksourcebookworm(unfixed)not yet assignedNot reportedNot reported
CpenltkcpeNot reported3.10.3Not reportedNVD-CVE-2026-81722Not reported
PyPInltkPyPINot reported3.10.3Not reportedPYSEC-2026-3738Not reported
PyPInltkPyPINot reported3.10.3Not reportedGHSA-WW6M-CW3F-Q94GNot reported

Notes

[trixie] nltk: Minor issue [bookworm] nltk: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [python3-nltk]Affected

    Source package: [nltk]

    Details (2)
    • 3.8-1 · all · bookworm

      Affected

      nvd · nltk · debian · bookworm; nvd · nltk · debian · 12

    • 3.8-1 · all · bookworm

      Affected

      nvd · nltk · debian · bookworm; nvd · nltk · debian · 12

[Debian 13 (Trixie)]

  • [python3-nltk]Affected

    Source package: [nltk]

    Details (2)
    • 3.9.1-2 · all · trixie

      Affected

      nvd · nltk · debian · 13

    • 3.9.1-2 · all · trixie

      Affected

      nvd · nltk · debian · 13

Observed:

References