cbcvebase.
CVE-2026-0848
published 2026-03-05

CVE-2026-0848: NLTK versions <=3.9.2 are vulnerable to arbitrary code execution due to improper input validation in the StanfordSegmenter module. The module dynamically loads…

PriorityP269critical10CVSS 3.0
AVNACLPRNUINSCCHIHAH
EPSS
0.79%
55.7th percentile
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.

Affected

11 ranges
VendorProductVersion rangeFixed in
ansible-automation-platform-25lightspeed-chatbot-rhel8——
debiannltk< nltk 3.9.3-1 (forky)nltk 3.9.3-1 (forky)
nltknltk<= 3.9.3—
nltknltk<= 3.9.2—
nltknltk>= 0 < 3.9.3-13.9.3-1
nltknltk>= 0 < 3.9.43.9.4
nltknltk_nltkunspecified – latest—
openshift-lightspeed-tech-previewlightspeed-rag-tool-rhel9——
openshift-lightspeedlightspeed-ocp-rag-rhel9——
openshift-lightspeedlightspeed-service-api-rhel9——
ubuntunltk——

Detection & IOCsextracted from sources · hover to see the quote

  • →Monitor for subprocess.Popen() invocations spawned by the NLTK StanfordSegmenter module loading external JAR files without integrity verification — indicative of CVE-2026-0848 exploitation ↗
  • →Alert on Java processes spawned as child processes of Python (NLTK) where the classpath argument includes user-controllable or externally-sourced .jar file paths, particularly via the StanfordSegmenter module ↗
  • →Detect exploitation attempts via model poisoning, MITM, or dependency poisoning vectors that result in replacement of NLTK Stanford JAR files on disk ↗
  • ·The fix for CVE-2026-0848 (SHA256 verification added to StanfordSegmenter) was NOT applied to five related Stanford interface classes (StanfordPOSTagger, StanfordNERTagger, StanfordParser, StanfordDependencyParser, StanfordNeuralDependencyParser), which remain vulnerable through at least NLTK 3.9.3 under the separate CVE-2026-12252 ↗
  • ·Red Hat assessed CVE-2026-0848 as no risk to their products because they control and verify the JAR supply chain; however, CVE-2026-12252 marks some OpenShift Lightspeed packages as Affected ↗

CVSS provenance

nvdv3.010.0CRITICALCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
ghsa10.0CRITICAL
osv10.0CRITICAL
vendor_debian10.0CRITICAL
vendor_redhat10.0CRITICAL
vendor_ubuntu8.6HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.