Skip to main content
CVE-2026-126302VulnerabilityPublished

NLTK: Symlink escape

Affects nltkSource GCVE Database

0
Compare
Authoritative record:CVE-2026-126302· Medium 4.8

Not known to be exploited · CVSS 4.8 Medium : upgrade to 3.10.4 when convenient.

Data as of 16 Nov 2026, 15:22 UTC

CVSS 4.0 base score
4.8Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (VulnCheck)CVSS 4.04.8
CNA (VulnCheck)CVSS 3.13.3
Patch
Available – fixed in 3.10.4
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 13 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 15 Nov 2026.

What to do

Upgrade nltk to 3.10.4.

Affected software

ProductAffectedFixed in
PyPInltkAffected
  • >=3.9.4 <3.10.4
Fixed in
  • 3.10.4

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available in NLTK version 3.10.4 that enforces path containment checks by resolving symlinks before opening SQLite databases in sql_query(). Users should upgrade to version 3.10.4 or later to remediate this vulnerability. Until patched, avoid registering writable or untrusted directories as NLTK data roots to prevent attackers from planting malicious symlinks.

Description

The NLTK library's sql_query() function in the chat80 module improperly handles symbolic links when opening SQLite databases. It bypasses the path containment checks enforced by the NLTK data sandbox, allowing an attacker with write access to a trusted NLTK data root to create a symlink pointing to an out-of-sandbox SQLite database. This leads to unauthorized read access to that database's contents. The vulnerability affects NLTK versions from 3.9.4 up to but not including 3.10.4. A fix is available in version 3.10.4.

References

Community reviews

Loading reviews…