CVE-2026-126302

NLTK: Symlink escape in chat80.sql_query bypasses the pathsec data-root sandbox to read out-of-root SQLite databases

Medium published · updated · also known as GHSA-XMFG-F9CM-W86Q

4.8
CVSS score out of 10 · NVD (vulncheck.com)

Description

NLTK from 3.9.4 before 3.10.4 contains a symlink following vulnerability in nltk.sem.chat80.sql_query() that bypasses the pathsec data-root sandbox containment check. Attackers who can write into a trusted NLTK data root can plant a symbolic link to read SQLite databases outside the sandbox.

Affected products and versions

Product / packageEcosystem / vendorVersionsFixed inSource
nltk pip >= 3.9.4, <= 3.10.33.10.4 GitHub

References