AI and data stack advisories

Severe, 6 weeks1496Projects326

1496 severe, 6 weeks · 326 projects

NLTKGHSA-2ww3-fxvq-293j

NLTK Vulnerable to REDoS

NLTK

CVE-2021-3828 · Published Sep 29, 2021 · updated Oct 7, 2024

High7.5
Fix: upgrade to 3.6.4 or later
GitHub advisory

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.

Affected versions

PackageAffectedFixed in
nltk
PyPI
< 3.6.43.6.4
Details and references

More NLTK advisories

All NLTK