Patch Ticker
EnglishEN
Urgent

NLTK Java call path sandbox bypass allows code execution

CVE-2026-128138 and 19 more

Programs using the NLTK language tool can be hacked!

CVE
CVE-2026-128138 and 19 more
Score
CVSS 9.8 · CVE-2026-128138
First seen
9.8
Products
Disclosed together nltk

Mitigation

Update NLTK to 3.10.4 or later. All versions before 3.10.4 are affected.

Summary

An application using NLTK can run attacker-chosen Java bytecode when attacker-controlled arguments reach its Java launch call. The same 3.10.4 release also fixes denial-of-service, path-bypass and unsafe-deserialization flaws.

Exploit code is public

Affected when

  • CVE-2026-128138 attacker-chosen arguments passed to nltk.internals.java or StanfordSegmenter.java_class
  • CVE-2026-129229 attacker-chosen regular expression passed to findall or RegexpTokenizer
  • CVE-2026-129222, CVE-2026-129225 attacker-made CoNLL or Malt-TAB dependency file read
  • CVE-2026-128139 attacker-made XML corpus file read through XMLCorpusView
  • CVE-2026-129223, CVE-2026-129230 attacker-influenced WordNet-format resource read
  • CVE-2026-129234 relative binary_location set and attacker able to plant an executable in the working directory
  • CVE-2026-128135 attacker can prepare the ZIP extraction target
  • CVE-2026-128140 attacker-made downloader index processed
  • CVE-2026-128136 untrusted pickle model loaded
  • CVE-2026-128137 attacker can place a symlink inside the corpus folder
  • CVE-2026-129221 attacker-supplied class labels used for Weka training
  • CVE-2026-129232 attacker-made deeply nested XML corpus read
  • CVE-2026-129231 attacker-made corpus file with one very long unterminated line read
  • CVE-2026-129233 application passes an attacker-influenced string path directly to StreamBackedCorpusView
  • CVE-2026-129226 attacker-made deeply nested type string parsed
  • CVE-2026-129227 attacker-made deeply nested list converted with Tree.fromlist
  • CVE-2026-129228 attacker-made deeply nested settings passed to ToolboxSettings helper functions
  • CVE-2026-129224 attacker-made deeply nested lexicon string parsed by the CCG parser

1 other Incident of this product in the last 30 days

Incidents by product: nltk

Other recent Incidents of nltk

All Incidents of 2026-11-20

Distribution packages (4) (every link below opens in a new tab)
  • Debian 13 (trixie)nltk · not affected CVE-2026-129229, CVE-2026-128136, CVE-2026-129233
  • Debian 13 (trixie)nltk · not fixed yet CVE-2026-128138, CVE-2026-129222, CVE-2026-128139, CVE-2026-129223, CVE-2026-129234, CVE-2026-128135, CVE-2026-128140, CVE-2026-129230, CVE-2026-128137, CVE-2026-129221, CVE-2026-129232, CVE-2026-129231, CVE-2026-129225, CVE-2026-129226, CVE-2026-129227, CVE-2026-129228, CVE-2026-129224
  • Debian 12 (bookworm)nltk · not affected CVE-2026-129229, CVE-2026-128136, CVE-2026-129233
  • Debian 12 (bookworm)nltk · not fixed yet CVE-2026-128138, CVE-2026-129222, CVE-2026-128139, CVE-2026-129223, CVE-2026-129234, CVE-2026-128135, CVE-2026-128140, CVE-2026-129230, CVE-2026-128137, CVE-2026-129221, CVE-2026-129232, CVE-2026-129231, CVE-2026-129225, CVE-2026-129226, CVE-2026-129227, CVE-2026-129228, CVE-2026-129224

Sources: Debian Security Tracker

20 CVEs (every link below opens in a new tab)

Read the advisory · github.com (opens in a new tab)

Each of the 20 CVEs (every link below opens in a new tab)

Show 17 more