Skip to content
Fencer Vulns
high 7.5

CVE-2021-3828 json

Inefficient Regular Expression Complexity in nltk/nltk

published 2021-09-27 5 y ago modified 2026-06-17 4 mo ago also GHSA-2ww3-fxvq-293j , PYSEC-2021-356 , EUVD-2021-0147

cvss
7.5
version 3.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.6%
EPSS 1.6% chance of exploitation in 30 days, percentile 75%
public exploits
0
none known

Summary

nltk is vulnerable to Inefficient Regular Expression Complexity

Patch / fix

  • pypi nltk 3.6.4
  • nltk Debian 14, Debian 13, Debian 12 3.6.5-1

debian advisories DEBIAN-CVE-2021-3828

  • nltk Ubuntu 22.04 LTS 3.6.5-1
  • nltk Ubuntu Pro 16.04 LTS 3.1-1ubuntu0.1+esm1
  • nltk Ubuntu Pro 18.04 LTS 3.2.5-1ubuntu0.1+esm1
  • nltk Ubuntu Pro 20.04 LTS 3.4.5-2ubuntu0.1~esm1

ubuntu advisories UBUNTU-CVE-2021-3828

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • python-nltk openSUSE Tumbleweed 3.9.1-2.4
  • python-nltk openSUSE Tumbleweed 3.7-1.1
  • python-nltk Package Hub 15 SP2 3.7-bp152.3.3.1

opensuse advisories openSUSE-SU-2025:15099-1openSUSE-SU-2024:11958-1openSUSE-SU-2022:10040-1

  • python-nltk Arch Linux 3.6.4-1

arch linux advisories AVG-2423

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2021-3828 updated cvss 7.5

python-nltk: ReDoS vulnerability in Corpus Reader

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

1.59% chance of exploitation in the next 30 days, higher than 75% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • huntr.dev https://huntr.dev/bounties/d19aed43-75bc-4a03-91a0-4d0bb516bc32 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.0 7.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:N/I:N/A:P
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
pypi nltk
<3.6.4
3.6.4

Affected products

  • nltk nltk/nltk

Classification

Weakness
  • CWE-1333 Inefficient Regular Expression Complexity
  • CWE-697 Incorrect Comparison

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.