Skip to main content
VulnerabilityPublished Updated

CVE-2026-0848: NLTK versions <=3.9.2 are vulnerable to arbitrary code execution due to improper input validation in

Affects nltkSource GCVE Database

0
Compare
Authoritative record:CVE-2026-0848· Critical 10.0

Not known to be exploited · CVSS 10.0 Critical · fixed in 3.2.5-1ubuntu0.1+esm4 : patch nltk as a priority.

Data as of 24 Nov 2026, 20:12 UTC

CVSS 3.0 base score
10.0Critical
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 3.2.5-1ubuntu0.1+esm4, 3.4.5-2ubuntu0.1~esm4, 3.7-1ubuntu0.1~esm2 +2
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 5 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
Ubuntu 26.10nltkpkg:deb/ubuntu/nltk?arch=source&distro=stonkingOther threatsAffected
  • 3.9.2-1 – 3.10.3-1
5 affected builds
Fixed in–
Ubuntu Pro 26.04 LTSnltkpkg:deb/ubuntu/nltk?arch=source&distro=esm-apps/resoluteOther threatsAffected
  • <3.9.2-1ubuntu0.1~esm2
Fixed in
  • 3.9.2-1ubuntu0.1~esm2
Ubuntu 25.10nltkpkg:deb/ubuntu/nltk?arch=source&distro=questingOther threatsAffected
  • =3.9.1-2
Fixed in–
Ubuntu Pro 24.04 LTSnltkpkg:deb/ubuntu/nltk?arch=source&distro=esm-apps/nobleOther threatsAffected
  • <3.8.1-1ubuntu0.1~esm2
Fixed in
  • 3.8.1-1ubuntu0.1~esm2
Ubuntu Pro 22.04 LTSnltkpkg:deb/ubuntu/nltk?arch=source&distro=esm-apps/jammyOther threatsAffected
  • <3.7-1ubuntu0.1~esm2
Fixed in
  • 3.7-1ubuntu0.1~esm2
Ubuntu Pro 20.04 LTSnltkpkg:deb/ubuntu/nltk?arch=source&distro=esm-apps/focalOther threatsAffected
  • <3.4.5-2ubuntu0.1~esm4
Fixed in
  • 3.4.5-2ubuntu0.1~esm4

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

NLTK versions <=3.9.2 are vulnerable to arbitrary code execution due to improper input validation in the StanfordSegmenter module. The module dynamically loads external Java .jar files without verification or sandboxing. An attacker can supply or replace the JAR file, enabling the execution of arbitrary Java bytecode at import time. This vulnerability can be exploited through methods such as model poisoning, MITM attacks, or dependency poisoning, leading to remote code execution. The issue arises from the direct execution of the JAR file via subprocess with unvalidated classpath input, allowing malicious classes to execute when loaded by the JVM.

References

Community reviews

Loading reviews…