Advisory

GHSA-2ww3-fxvq-293j

Also known as: CVE-2021-3828, PYSEC-2021-356

Summary

NLTK Vulnerable to REDoS

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-09-29 17:14 UTC
Modified
2024-10-07 15:22 UTC

Affected packages and fixes

nltk

PyPI · All systems

Affected

  • introduced 0, fixed 3.6.4 (ecosystem)

Fixed versions

3.6.4

Fix

  • Fixed version 3.6.4
    pip install --upgrade nltk==3.6.4

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences