Skip to main content

NLTK EUVDEUVD-2026-125821

| CVE-2026-128134 HIGH
Untrusted Search Path (CWE-426)
2026-11-13 GitHub_M GHSA-7mxv-7h3q-9324
7.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local unprivileged access on POSIX host
  2. Delivery
    Plant trojan 'dot' in writable PATH directory
  3. Exploit
    Victim renders DependencyGraph or calls dot2img
  4. Execution
    find_binary returns absolute path, bypassing spawn_trusted
  5. Persist
    Trojan 'dot' executes as victim
  6. Impact
    Arbitrary local code execution plus loader-injection surface

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V13 - Configuration Search path verification
Exploitation Conditions

Requires a POSIX host running NLTK prior to 3.10.4 where the attacker is a local, unprivileged user (or code) able to write to a group/world-writable directory that appears on the victim's PATH - the advisory cites a Homebrew /usr/local/bin with drwxrwxr-x permissions, or any writable directory placed early on PATH, into which a trojan 'dot' is planted. Exploitation also requires the victim to invoke nltk.parse.dependencygraph.dot2img directly or render a DependencyGraph (e.g. a notebook auto-triggering _repr_svg_ at dependencygraph.py:209). No control over NLTK inputs is needed. Limiting factors that reduce realistic risk: the attacker needs pre-existing local write access to a PATH directory (not remotely reachable), the issue is POSIX-only, it depends on an insecure (typically non-default, writable) PATH element being present, and it only fires when the victim actually renders/parses a dependency graph. The current-working-directory bare-name vector is already blocked by the CVE-2026-78680 fix and is explicitly NOT this issue.

Impact

The CVSS 3.1 vector (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, 7.8 High) correctly frames this as a LOCAL privilege/lateral-movement issue, not a remotely reachable one: AV:L and PR:L mean an attacker must already have unprivileged code execution on the POSIX host and write access to a directory on the victim's PATH. This materially lowers real-world risk versus a network-exploitable 7.8 - it is a post-access escalation primitive, not an initial-access bug. The vuln.today Decision label is 'this_week' (moderate urgency, not act_now/emergency). A public proof-of-concept is published inside the GHSA advisory and the reporter demonstrates it working (marker file created, resolve_trusted_executable refuses the planted binary while dot2img runs it), so weaponization effort is near zero for anyone already local. No EPSS score was supplied and the issue is NOT in CISA KEV, so there is no evidence of active or widespread exploitation - consistent with a local-only flaw that does not lend itself to mass automated attack. Signals are internally consistent (local vector + local PoC + moderate priority label); the main caveat is a conflict in the input's own source-code evidence, which states 'Fix status: not fixed / IN PROGRESS (2026-09-28)', whereas the CVE description, the v3.10.4 release tag reference, and the advisory's updated range all confirm the fix shipped in 3.10.4 - treat 3.10.4 as the remediated version.

Exploit ScenarioDerived

On a shared POSIX host (e.g. a multi-user data-science server or a macOS box with a group/world-writable Homebrew /usr/local/bin on PATH), a low-privileged attacker drops a trojan 'dot' executable into that writable PATH directory. When a higher-value user later renders an NLTK DependencyGraph - for example Jupyter auto-invoking _repr_svg_ - or calls dot2img directly, the planted binary runs as that user. A working proof-of-concept is published in the GHSA advisory, so exploitation is trivial once local write access exists.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 13, 2026

Local code execution in NLTK (Natural Language Toolkit) releases up to and including 3.10.3 lets an unprivileged local attacker who can write to any group- or world-writable directory on a victim's PATH plant a trojan Graphviz 'dot' binary that runs with the victim's privileges the next time a DependencyGraph is rendered or dot2img is called. The flaw is a residual bypass of the earlier CVE-2026-78680 fix: dot2img resolves 'dot' via find_binary (which only rejects relative, current-working-directory matches) and then executes the resulting absolute path with a raw subprocess.run that skips the ownership/writability validation and loader-environment scrub applied by nltk.pathsec.spawn_trusted. CVSS 3.1 scores this 7.8 High (AV:L/PR:L/UI:N, C/I/A High), reflecting a local privilege-escalation and lateral-movement primitive on POSIX hosts rather than a remotely reachable bug; a public proof-of-concept script demonstrating the PATH-planting attack accompanies the advisory, and the issue is fixed in 3.10.4.

RemediationAI

Upgrade to NLTK 3.10.4, the vendor-released fix (release tag https://github.com/nltk/nltk/releases/tag/v3.10.4), as documented in advisory GHSA-7mxv-7h3q-9324. The fix routes dot2img's execution through nltk.pathsec.spawn_trusted, mirroring nltk/translate/api.py, so that directory-ownership/writability validation and loader-environment scrubbing apply to both the text and binary format branches, and the accompanying PR (https://github.com/nltk/nltk/pull/3887) extends the trusted-spawn chokepoint across other external tool wrappers (megam, tadm, senna, prover9, svn) and adds a pre-commit check forbidding subprocess/os.system/shutil.which calls outside nltk.pathsec. If upgrading is not immediately possible, the vendor's interim mitigation is environmental: ensure no group- or world-writable directory appears on the PATH of any account that renders NLTK dependency graphs, and install Graphviz in a directory writable only by that user or root - the trade-off is that this constrains install locations (for example requiring a permissions fix on a group-writable /usr/local/bin or reordering PATH) and does not remove the vulnerable code path itself, so it must be re-verified whenever PATH or package ownership changes.

Affected VersionsENISA

nltk < 3.10.4

Affected Packages

pypi nltk fix: 3.10.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is CWE-426/CWE-427, an uncontrolled search path in the Graphviz wrapper of nltk.parse.dependencygraph. NLTK documents a four-layer native-tool security model in nltk/EXTERNAL_TOOL_SECURITY.md: find_binary refuses a current-working-directory-relative match; resolve_trusted_executable verifies the resolved file is a regular file that no unprivileged user can replace (private parent directories, owner is the user or root, no group/world write bit); shell execution is refused; and safe_env scrubs loader and interpreter variables such as LD_PRELOAD, DYLD_* and GCONV_PATH before exec. Layers two through four are only reached through nltk.pathsec.spawn_trusted. In the affected code, dot2img calls find_binary("dot") (layer one only) and then runs the resolved path with subprocess.run([dot_binary, '-T%s' % t], ...) with no env= argument, in both the text-format branch at dependencygraph.py:631 and the binary-format branch at :638. Because find_binary only discards non-absolute matches, an attacker-controlled absolute path returned by the which stage survives. The hardened sibling invoker at nltk/translate/api.py:145 does route through spawn_trusted, which is why the CVE-2026-78680 remediation covers that call site but not this one; the current-working-directory bare-name vector is blocked and is explicitly a different issue from this residual writable-absolute-PATH-element gap.

Know when Nltk gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

Attacker needs local unprivileged write access to a PATH directory (AV:L, PR:L) with no added complexity (AC:L); the trojan runs with the victim's full privileges, giving complete C/I/A impact.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 7.8 HIGH

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Nov 13, 2026 - 23:35 EUVD
CVE Published
Nov 13, 2026 - 22:28 cve.org
HIGH 7.8

DescriptionCVE.org

NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. Prior to 3.10.4, nltk.parse.dependencygraph.dot2img resolves the Graphviz dot executable through PATH but invokes the resulting absolute executable without routing through spawn_trusted, so resolve_trusted_executable ownership and writability validation and safe_env loader environment scrubbing do not run. A local low-privileged attacker who can write to a directory on a POSIX victim's PATH can plant or replace dot, and code executes as the victim when dot2img is called directly or DependencyGraph.repr_svg renders a graph. The current-working-directory-only bare-name vector is blocked and is not this vulnerability; this issue is the residual writable absolute PATH element bypass after CVE-2026-78680. This issue is fixed in version 3.10.4.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 6,309 pypi packages depend on nltk (3,111 direct, 3,281 indirect)

Ecosystem-wide dependent count for version 3.10.4.

Technical POC Analysis

CWE-426 (Untrusted Search Path), with the advisory also scoring CWE-427 (Uncontrolled Search Path Element).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

NLTK versions up to 3.10.3 contain a high-severity local privilege-escalation flaw that lets an attacker with limited local access execute code with the privileges of any user who renders a dependency graph. The issue undermines a prior fix and, because a public proof-of-concept is circulating, represents a meaningful lateral-movement and insider-risk exposure on POSIX developer and analytics hosts where NLTK is deployed. Leadership should care because compromise requires a foothold on individual machines but can then spread across users and systems where NLTK processes untrusted content.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis; interim mitigations are to eliminate group- and world-writable directories from user PATHs, enforce trusted/absolute binary resolution for Graphviz, and limit which local accounts can render dependency graphs or call dot2img.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
High
NLTK is among the most widely deployed Python NLP libraries in research and data pipelines
Threat Intel
1
1 sources
Social Media
3
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA MSRC Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

59
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Nltk

View all
CVE-2026-79657 CRITICAL POC
9.3 Aug 25

Arbitrary code execution in the Natural Language Toolkit (NLTK) before 3.10.3 allows attackers to bypass the library's p

CVE-2026-78683 CRITICAL POC
9.4 Aug 25

Arbitrary code execution in NLTK (Natural Language Toolkit) through 3.9.4 allows attackers to run Python code when a vic

CVE-2025-14009 HIGH POC
8.8 Feb 18

Arbitrary code execution in the NLTK (Natural Language Toolkit) Python library affects all versions through its data dow

CVE-2026-63312 HIGH POC
8.7 Aug 22

StreamBackedCorpusView in NLTK before 3.10.0 allows arbitrary local file reads by calling Python's builtins.open() direc

CVE-2026-62384 HIGH POC
8.7 Aug 22

Symlink-based path traversal in NLTK's FramenetCorpusReader before version 3.10.2 permits attackers with write access to

CVE-2026-126297 HIGH POC
8.7 Nov 13

CPU exhaustion in NLTK's ConllCorpusReader.srl_instances() lets an attacker who supplies a crafted CoNLL SRL corpus pin

CVE-2026-126298 HIGH POC
8.7 Nov 13

CPU exhaustion in NLTK's Tree.chomsky_normal_form() right-factor binarization affects NLTK through 3.10.3 and lets remot

CVE-2026-126299 HIGH POC
8.7 Nov 13

Quadratic CPU exhaustion in NLTK's CCG lexicon parser (nltk.ccg.lexicon.fromstring, also re-exported as nltk.ccg.chart.f

CVE-2026-126303 HIGH POC
8.7 Nov 13

Denial of service in NLTK before 3.10.4 allows remote attackers to pin a CPU core and exhaust bounded worker pools by ca

CVE-2026-66393 HIGH POC
8.7 Aug 22

Unbounded recursion in NLTK's JSONTaggedDecoder.decode_obj() (nltk/jsontags.py) allows unauthenticated remote attackers

CVE-2026-62388 HIGH POC
8.7 Aug 22

Path traversal and pickle deserialization protections in NLTK before 3.10.0 are effectively disabled by default - pathse

CVE-2026-78681 HIGH POC
8.7 Aug 25

XML Entity Expansion (Billion Laughs) in NLTK before 3.10.3 allows unauthenticated remote attackers to cause denial of s

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy