Vulnerabilities / CVE-2026-0848

critical

CVE-2026-0848

nltk: NLTK: Arbitrary code execution via unvalidated Java Archive (JAR) file loading

Published Modified CWE 20
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

Red Hat10.0CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by Red Hat. Rated lower by Ubuntu (medium).

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.

Affected packages and fixed versions

SourcePackageFixed in
debian 11nltkno fix listed
debian 12nltkno fix listed
debian 13nltkno fix listed
debian 14nltk3.9.3-1
echonltkno fix listed
rapidfort debian 12nltk0:3.9.3-1
rapidfort debian 13nltk0:3.9.3-1
ubuntu 18.04-ESMnltk3.2.5-1ubuntu0.1+esm4
ubuntu 20.04-ESMnltk3.4.5-2ubuntu0.1~esm4
ubuntu 22.04nltkno fix listed
ubuntu 24.04nltkno fix listed
ubuntu 26.04nltkno fix listed
Show all 13 entries from 13 sources
SourcePackageFixed in
debian 11nltkno fix listed
debian 12nltkno fix listed
debian 13nltkno fix listed
debian 14nltk3.9.3-1
echonltkno fix listed
rapidfort debian 12nltk0:3.9.3-1
rapidfort debian 13nltk0:3.9.3-1
ubuntu 18.04-ESMnltk3.2.5-1ubuntu0.1+esm4
ubuntu 20.04-ESMnltk3.4.5-2ubuntu0.1~esm4
ubuntu 22.04nltkno fix listed
ubuntu 24.04nltkno fix listed
ubuntu 26.04nltkno fix listed
ubuntu 26.10nltkno fix listed

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.