ThinkFacility Sign in
  1. Home
  2. Security
  3. Python package (nltk)
CriticalPython package (nltk)

NLTK 3.10.3 and earlier: seven more flaws, one critical, all fixed in 3.10.4

Python developers whose apps run NLTK on text, corpora, packages or settings that other people can supply, and anyone still on 3.10.3 or older.

How to fix it

You haveUpdate to
<= 3.10.3→3.10.4

Check your version

Which version you have
pip show nltk

Update

pip
pip install --upgrade "nltk>=3.10.4"
uv
uv add "nltk>=3.10.4"

The critical one is in 3.10.3 only: an app that passes outside input into java() or StanfordSegmenter's java_class can be made to run a JAR of the attacker's choosing. Others let a ZIP package overwrite files outside your NLTK data folder, let a prover9 config run a local program, or let crafted input stall or crash the process.

Sources