CVE-2021-3828
mediumpriority · track · 31EPSS 0.016 · 76 %ileEUUSEPSS · scored 2026-10-27
nltk is vulnerable to Inefficient Regular Expression Complexity
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5–7.5
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-2ww3-fxvq-293jNLTK Vulnerable to REDoS2021-09-29ghsa · osvUS
The nltk package is vulnerable to ReDoS (regular expression denial of service). An attacker that is able to provide as an input to the [`_read_comparison_block()`(https://github.com/nltk/nltk/blob/23f4b1c4b4006b0cb3ec278e801029557cec4e82/nltk/corpus/reader/comparative_sents.py#L259) function in the file `nltk/corpus/reader/comparative_sents.py` may cause an application to consume an excessive amount of CPU.
- PYSEC-2021-3562021-09-27vendor · osvUS
nltk is vulnerable to Inefficient Regular Expression Complexity
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://github.com/nltk/nltk/commit/277711ab1dec729e626b27aab6fa35ea5efbd7e6cnnvd
- https://huntr.dev/bounties/d19aed43-75bc-4a03-91a0-4d0bb516bc32cnnvd
- https://www.github.com/nltk/nltkPatchcnnvd
- https://github.com/nltk/nltk/commit/277711ab1dec729e626b27aab6fa35ea5efbd7e6enisa_euvd
- https://huntr.dev/bounties/d19aed43-75bc-4a03-91a0-4d0bb516bc32enisa_euvd
- https://github.com/nltk/nltk/commit/277711ab1dec729e626b27aab6fa35ea5efbd7e6PatchThird Party Advisorynvd
- https://huntr.dev/bounties/d19aed43-75bc-4a03-91a0-4d0bb516bc32ExploitPatchThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan