VDB

CVE-2026-0848

CVE-2026-0848 PUBLISHED CVSS 10 CRITICAL

Arbitrary Code Execution in NLTK StanfordSegmenter via Untrusted JAR Loading

Reported by @huntr_ai · Published March 5, 2026

nltk is fixed in 3.9.3 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
nltkPyPI3.9.3
nltknltk3.9.2
nltk/nltknltklatest

Risk scores

CVSS 3.0
10
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Affected products

VendorProductVersions
nltknltk/nltkunspecified
nltknltk/nltk*

Timeline

  • Mar 5, 2026 CVE Published
  • Mar 5, 2026 PoC Published (10 in total, the first dated here)
  • Mar 6, 2026 EPSS Score (30 in total, the first dated here)
  • Mar 6, 2026 CVE Updated
  • Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
  • May 28, 2026 Security Advisory

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-0848
vulnetix vdb fixes CVE-2026-0848

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-0848/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›