# CVE-2026-81722: nltk PorterStemmer before 3.10.3 Quadratic-time DoS

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-27T14:51:15.857Z
- Modified: 2026-09-10T03:50:54.572Z
- Also known as: GHSA-ww6m-cw3f-q94g, PYSEC-2026-3738
- Weaknesses: CWE-407
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- nltk nltk: before 3.10.3 (not affected: 3.10.3)
- nltk (PyPI): before 3.10.3

## Every score

- VulnCheck: CVSS:4.0 8.7 High `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`
- VulnCheck: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- PyPA Advisory Database: CVSS:4.0 `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/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`

## References

- <https://github.com/nltk/nltk/security/advisories/GHSA-ww6m-cw3f-q94g> (exploit, evidence, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/nltk-porterstemmer-before-3.10.3-quadratic-time-dos> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-81722> (advisory)
- <https://github.com/nltk/nltk/commit/7808692d451b962711005d954859bb83aabcf8fa> (web)
- <https://github.com/nltk/nltk> (package)
- <https://github.com/nltk/nltk/releases/tag/v3.10.3> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3738.yaml> (web)

## Sources

- CVE List: [CVE-2026-81722](https://www.cve.org/CVERecord?id=CVE-2026-81722), CVE Terms of Use, modified 2026-08-27
- GitHub Advisory Database: [GHSA-ww6m-cw3f-q94g](https://github.com/advisories/GHSA-ww6m-cw3f-q94g), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-81722](https://nvd.nist.gov/vuln/detail/CVE-2026-81722), Public domain, modified 2026-08-31
- PyPA Advisory Database: [PYSEC-2026-3738](https://osv.dev/vulnerability/PYSEC-2026-3738), CC-BY-4.0, modified 2026-09-01

---

Page: https://cve.day/CVE-2026-81722 · Whole record: https://cve.day/CVE-2026-81722.json · Rebuilt by cve.day 2026-11-25T22:59:35.515Z
