USN-7365-1: NLTK vulnerabilities

Publication date

24 March 2025

Overview

Several security issues were fixed in NLTK.


Packages

  • nltk - Natural Language Toolkit

Details

It was discovered that NLTK contained a regex that is susceptible to
catastrophic backtracking. An attacker could possibly use this issue to
cause a denial of service. (CVE-2021-3842, CVE-2021-43854)

It was discovered that NLTK contained a regex that is susceptible to
catastrophic backtracking. An attacker could possibly use this issue to
cause a denial of service. (CVE-2021-3842, CVE-2021-43854)

Update instructions

In general, a standard system update will make all the necessary changes.

Learn more about how to get the fixes.

The problem can be corrected by updating your system to the following package versions:

Ubuntu Release Package Version
20.04 focal python3-nltk –  3.4.5-2ubuntu0.1~esm2  
18.04 bionic python-nltk –  3.2.5-1ubuntu0.1+esm2  
python3-nltk –  3.2.5-1ubuntu0.1+esm2  
16.04 xenial python-nltk –  3.1-1ubuntu0.1+esm2  
python3-nltk –  3.1-1ubuntu0.1+esm2  
14.04 trusty python-nltk –  2.0~b9-0ubuntu4.1~esm4  

Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.


Have additional questions?

Talk to a member of the team ›