Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local unprivileged access on POSIX host
-
DeliveryPlant trojan 'dot' in writable PATH directory
-
ExploitVictim renders DependencyGraph or calls dot2img
-
Executionfind_binary returns absolute path, bypassing spawn_trusted
-
PersistTrojan 'dot' executes as victim
-
ImpactArbitrary 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.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- 6,309 pypi packages depend on nltk (3,111 direct, 3,281 indirect)
Ecosystem-wide dependent count for version 3.10.4.
Articles & Coverage 1
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Arbitrary code execution in the Natural Language Toolkit (NLTK) before 3.10.3 allows attackers to bypass the library's p
Arbitrary code execution in NLTK (Natural Language Toolkit) through 3.9.4 allows attackers to run Python code when a vic
Arbitrary code execution in the NLTK (Natural Language Toolkit) Python library affects all versions through its data dow
StreamBackedCorpusView in NLTK before 3.10.0 allows arbitrary local file reads by calling Python's builtins.open() direc
Symlink-based path traversal in NLTK's FramenetCorpusReader before version 3.10.2 permits attackers with write access to
CPU exhaustion in NLTK's ConllCorpusReader.srl_instances() lets an attacker who supplies a crafted CoNLL SRL corpus pin
CPU exhaustion in NLTK's Tree.chomsky_normal_form() right-factor binarization affects NLTK through 3.10.3 and lets remot
Quadratic CPU exhaustion in NLTK's CCG lexicon parser (nltk.ccg.lexicon.fromstring, also re-exported as nltk.ccg.chart.f
Denial of service in NLTK before 3.10.4 allows remote attackers to pin a CPU core and exhaust bounded worker pools by ca
Unbounded recursion in NLTK's JSONTaggedDecoder.decode_obj() (nltk/jsontags.py) allows unauthenticated remote attackers
Path traversal and pickle deserialization protections in NLTK before 3.10.0 are effectively disabled by default - pathse
XML Entity Expansion (Billion Laughs) in NLTK before 3.10.3 allows unauthenticated remote attackers to cause denial of s
EUVD-2026-125821
GHSA-7mxv-7h3q-9324
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB