Browse / AI Framework and Platform Flaws / CVE-2021-3842
NLTK Vulnerable to REDoS
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- Technique
- Denial of service
- Affected
- nltk (PyPI)
- CVSS
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS
- 1.6% chance of exploitation in 30 days
How it works, in short
Regex taggers in NLTK can be driven into catastrophic backtracking by crafted input, stalling the process. (Our summary, written by a model. The source text is below.)
Details
NLTK is vulnerable to REDoS in some RegexpTaggers used in the functions get_pos_tagger and malt_regex_tagger.
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-3842
- https://github.com/nltk/nltk/pull/2906
- https://github.com/nltk/nltk/commit/2a50a3edc9d35f57ae42a921c621edc160877f4d
- https://github.com/nltk/nltk
- https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2022-5.yaml
- https://huntr.dev/bounties/761a761e-2be2-430a-8d92-6f74ffe9866a
Source: GitHub Advisory Database, used under CC BY 4.0.