VDB

CVE-2021-3842

CVE-2021-3842 PUBLISHED CVSS 7.5 HIGH

Inefficient Regular Expression Complexity in nltk/nltk

Reported by @huntrdev · Published January 4, 2022

nltk is fixed in 3.6.6 and 2a50a3edc9d35f57ae42a921c621edc160877f4d (PyPI)

nltk is vulnerable to Inefficient Regular Expression Complexity

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
nltkPyPI3.6.6, 2a50a3edc9d35f57ae42a921c621edc160877f4d
nltknltk3.6.6
nltk/nltknltk3.6.6

Risk scores

CVSS 3.0
7.5
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
nltknltk/nltkunspecified
PyPInltk0
nltknltk/nltk*

Timeline

  • Jan 4, 2022 CVE Published
  • Jan 5, 2022 EPSS Score (30 in total, the first dated here)
  • Mar 24, 2025 PoC Published
  • Mar 10, 2026 Security Advisory
  • Jun 17, 2026 CVE Updated
  • Jul 25, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-3842
vulnetix vdb fixes CVE-2021-3842

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-3842/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›