GHSA-2ww3-fxvq-293j

NLTK Vulnerable to REDoS

At a glance

Published
Updated
CVE
CVE-2021-3828
Aliases
PYSEC-2021-356
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS_V4
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Description

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 packages

PackageVersions
PyPI · nltkintroduced 0, fixed 3.6.4

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database