high7.5
CVE-2021-3842
NLTK Vulnerable to REDoS
Impact
NLTK is vulnerable to REDoS in some RegexpTaggers used in the functions `get_pos_tagger` and `malt_regex_tagger`.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | nltk | < 3.6.6 | 3.6.6 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Nltk | Nltk | before 3.6.6 |
| Debian | Debian Linux | Versions 9.0, 10.0, 11.0 |
| Fedoraproject | Fedora | Version 35 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/nltk/nltk/commit/2a50a3edc9d35f57ae42a921c621edc160877f4d
- https://huntr.dev/bounties/761a761e-2be2-430a-8d92-6f74ffe9866a
- https://github.com/advisories/GHSA-rqjh-jp2r-59cj
- https://nvd.nist.gov/vuln/detail/CVE-2021-3842
- https://github.com/nltk/nltk/pull/2906
- https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2022-5.yaml