CVE-2026-0848
Python vulnerability analysis and mitigation

Overview

CVE-2026-0848 is an arbitrary code execution vulnerability in the NLTK (Natural Language Toolkit) library's StanfordSegmenter module, caused by improper input validation when dynamically loading external Java .jar files. All NLTK versions up to and including 3.9.2 are affected. The vulnerability was first inserted into Feedly's tracking on January 12, 2026, and published to NVD on March 5, 2026. It carries a CVSS v3.0 base score of 10.0 (Critical) (huntr.com, IBM Advisory). IBM products including QRadar Suite Software and watsonx Orchestrate with watsonx Assistant Cartridge are also affected as downstream consumers of NLTK (IBM QRadar Advisory, IBM watsonx Advisory).

Technical details

The root cause is CWE-20 (Improper Input Validation): NLTK's StanfordSegmenter module executes external Java .jar files via a subprocess call without verifying the integrity, origin, or content of the JAR file, and without sandboxing the JVM execution environment (huntr.com). The unvalidated classpath input is passed directly to the JVM, allowing any malicious Java class embedded in a supplied or replaced JAR to execute at import time. Exploitation vectors include model poisoning (replacing a legitimate model JAR with a malicious one), man-in-the-middle (MITM) attacks intercepting JAR downloads, and dependency/supply chain poisoning. No authentication or user interaction is required — the malicious code executes automatically when the StanfordSegmenter module is imported or initialized (huntr.com).

Impact

Successful exploitation results in complete compromise of the affected system: arbitrary Java bytecode executes with the privileges of the process running NLTK, granting an attacker full control over confidentiality, integrity, and availability. An attacker can exfiltrate sensitive data, install persistent backdoors, pivot to other systems on the network, or cause denial of service. Because the vulnerability is network-accessible with no privileges required and no user interaction needed, and the scope is marked as Changed, the blast radius extends beyond the immediate NLTK process to the broader host environment (huntr.com, IBM Advisory).

Exploitability

A proof-of-concept exploit is publicly available on huntr.com, and additional PoC repositories have appeared on GitHub (e.g., HyperPS/CVE-2026-0848 and fevar54/CVE-2026-0848-Scanner), as well as on exploit aggregators such as Sploitus (huntr.com, Feedly). As of the available data, there is no confirmed evidence of active in-the-wild exploitation, and no threat actor attribution has been reported. The EPSS score is approximately 0.0048 (0.48%), reflecting low but non-zero probability of exploitation in the near term. The vulnerability is not currently listed in the CISA KEV catalog. Detection plugins are available in Nessus (IDs 301391, 316734) and Qualys (ID 6035704) (Feedly).

Exploitation steps

  1. Reconnaissance: Identify targets using NLTK ≤3.9.2 with the StanfordSegmenter module in use — scan Python environments, CI/CD pipelines, or NLP services via package manifests (requirements.txt, pyproject.toml) or software composition analysis tools.
  2. Craft malicious JAR: Create a malicious Java .jar file containing a class with a static initializer or constructor that executes attacker-controlled commands (e.g., a reverse shell) when loaded by the JVM.
  3. Deliver the malicious JAR via one of the following vectors:
    • Model poisoning: Replace the legitimate Stanford NLP JAR in the target's model directory with the malicious JAR.
    • MITM attack: Intercept the HTTP/HTTPS download of the JAR file (if downloaded over an insecure channel) and substitute the malicious JAR.
    • Dependency poisoning: Publish a malicious package or JAR to a repository the target pulls from.
  4. Trigger execution: Wait for or cause the target application to import or initialize StanfordSegmenter — this automatically invokes the subprocess call that loads the JAR via the JVM with the unvalidated classpath.
  5. Achieve code execution: The malicious Java class executes within the JVM process, enabling reverse shell establishment, data exfiltration, or further lateral movement on the host (huntr.com).

Indicators of compromise

  • File System: Unexpected or recently modified .jar files in NLTK model directories or Stanford NLP data paths; JAR files with mismatched checksums compared to official Stanford NLP releases; new or unfamiliar .class files in Java classpaths.
  • Process: Unusual child processes spawned by a Python process (e.g., java, bash, sh, curl, wget, nc) with unexpected arguments; JVM processes with classpath entries pointing to non-standard directories.
  • Network: Outbound connections from Python/Java processes to unknown external IPs or domains, particularly shortly after application startup or module import; unexpected DNS lookups from NLP service hosts; HTTP requests to download JAR files over unencrypted channels.
  • Logs: Python application logs showing StanfordSegmenter initialization errors or unexpected JVM output; system logs recording new process creation by the NLTK service account; audit logs showing file modifications to JAR files in model directories (huntr.com).

Mitigation and workarounds

Upgrade NLTK to a version newer than 3.9.2 as the primary remediation — the patch addresses the improper input validation in the StanfordSegmenter module (huntr.com). IBM has released security bulletins for affected products: QRadar Suite Software and watsonx Orchestrate with watsonx Assistant Cartridge users should apply the updates referenced in the respective IBM advisories (IBM QRadar Advisory, IBM watsonx Advisory). As interim workarounds: validate and verify the cryptographic integrity (e.g., SHA-256 checksums) of all JAR files before use; restrict network access to prevent unauthorized JAR downloads; implement network segmentation around NLP services; and use software composition analysis (SCA) tools to detect vulnerable NLTK versions across your environment.

Community reactions

The vulnerability was disclosed via huntr.com's bug bounty platform (assigned by @huntr_ai) and received coverage from security news outlets including The Hacker Wire and Infinit Security (The Hacker Wire, Infinit Security). Social media discussion appeared on Mastodon and Bluesky, with community members highlighting the supply chain risk angle of the vulnerability. The German Linux security community (pro-linux.de) and Ubuntu security advisories also covered the issue, and Tenable released Nessus detection plugins (pro-linux.de, Ubuntu Advisory). IBM's issuance of security bulletins for multiple enterprise products underscores the downstream impact of this vulnerability in production AI/NLP environments.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

nltk

Affected

sid

nltk: 3.9.3-1

Fixed

trixie

nltk

Affected

Ubuntu

Fixed

bionic (esm-apps)

nltk: 3.2.5-1ubuntu0.1+esm4

Fixed

devel

nltk

Affected

focal (esm-apps)

nltk: 3.4.5-2ubuntu0.1~esm4

Fixed

jammy

nltk

Affected

jammy (esm-apps)

nltk: 3.7-1ubuntu0.1~esm2

Fixed

noble

nltk

Affected

noble (esm-apps)

nltk: 3.8.1-1ubuntu0.1~esm2

Fixed

resolute

nltk

Affected

RHEL / CentOS

Unknown

SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-84366HIGH7.4
  • Python logoPython
  • python3.10
NoYesSep 01, 2026
CVE-2026-53720MEDIUM5.1
  • Python logoPython
  • pymonocypher
NoYesSep 03, 2026
CVE-2026-84311MEDIUM4.8
  • Python logoPython
  • pypdf
NoYesSep 01, 2026
CVE-2026-84310MEDIUM4.8
  • Python logoPython
  • pypdf
NoYesSep 01, 2026
GHSA-wwv5-g3v4-889xLOW2.3
  • Python logoPython
  • tornado
NoYesSep 01, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management