GitHub Advisoryadvisory · PyPI

GHSA-2ww3-fxvq-293j NLTK Vulnerable to REDoS

HIGH Published 2021-09-29 Modified 2024-10-07 Official page ↗
Aliases
CVE-2021-3828
Ecosystem
PyPI
Packages
nltk
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-1333, CWE-697
Reviewed
2021-09-28

Affected packages

• PyPI nltk: < 3.6.4 → fixed in 3.6.4

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.

Related

Alias · CVE (1)

  • CVE-2021-3828 nltk is vulnerable to Inefficient Regular Expression Complexity vulnerability

Weakness · CWE (2)

  • CWE-1333 Inefficient Regular Expression Complexity weakness
  • CWE-697 Incorrect Comparison weakness

References