{"id":"GHSA-w2j9-qh3j-4h63","kind":"vulnerability","aliases":["GHSA-w2j9-qh3j-4h63"],"related":[],"title":"Duplicate Advisory: Symlink escape in chat80.sql_query bypasses the pathsec data-root sandbox to read out-of-root SQLite databases","description":"## Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of GHSA-xmfg-f9cm-w86q. This link is maintained to preserve external references.\n\n## Original Description\nNLTK 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.","summary":"NLTK's chat80 sql_query function follows symbolic links, so a symlink planted in a trusted NLTK data directory can point it at SQLite databases outside the sandbox. An attacker who can write into that data root can read those database files.","severity":"medium","cvss":3.3,"epss":null,"exploited":false,"exploited_at":null,"products":[{"name":"nltk","fixed":[],"affected":">= 3.9.4, <= 3.10.3","ecosystem":"pypi"}],"ecosystems":["pypi"],"tags":["cwe-59","nltk","package","python"],"not_affected_if":["default-config","no-chat80-use"],"how_to_check":"- Check the installed version with `pip show nltk`; affected range is `3.9.4` up to but not including `3.10.4`.\n- Search your code for calls to `nltk.sem.chat80.sql_query` that run on paths you do not fully control.","fix":"- `nltk` `3.10.4` (the advisory's stated range ends before `3.10.4`; the duplicate advisory GHSA-xmfg-f9cm-w86q is the live record).","status":"withdrawn","published_at":"2026-11-13T12:31:17+00:00","first_seen_at":"2026-11-16T14:51:33+00:00","triaged_at":"2026-11-16T14:51:49+00:00","updated_at":"2026-11-16T14:51:49+00:00","category":"package","confidence":0.5,"triage":{"at":"2026-11-16T14:51:49Z","model":"claude-haiku-5-5","output":{"fix":"- `nltk` `3.10.4` (the advisory's stated range ends before `3.10.4`; the duplicate advisory GHSA-xmfg-f9cm-w86q is the live record).","reach":"local","title":"NLTK: symlink in data root lets sql_query read outside databases","impact":"low","summary":"NLTK's chat80 sql_query function follows symbolic links, so a symlink planted in a trusted NLTK data directory can point it at SQLite databases outside the sandbox. An attacker who can write into that data root can read those database files.","audience":"developers","category":"package","nicknames":[],"who_cares":["python","nltk"],"confidence":0.5,"fix_status":"available","needs_auth":"yes","worst_case":"local attacker reads out-of-root SQLite database files","analyst_note":"","how_to_check":"- Check the installed version with `pip show nltk`; affected range is `3.9.4` up to but not including `3.10.4`.\n- Search your code for calls to `nltk.sem.chat80.sql_query` that run on paths you do not fully control.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["default-config","no-chat80-use"],"who_is_affected":"Only teams that call nltk.sem.chat80.sql_query and let someone other than the team write into the NLTK data root. Exposure depends on whether the data directory is writable by untrusted users. unknown whether other NLTK functions are affected.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"yes","severity_if_unknown":"unknown"},"cost_usd":0.000739,"input_tokens":4711,"output_tokens":535,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-59':35B '3.10.4':113C '3.9.4':111C '4h63':27A,32A 'advisori':2A,82C,84C 'attack':68B,132C 'bypass':8A,123C 'chat80':41B 'chat80.sql':6A 'check':131C 'contain':114C,130C 'cwe':34B 'data':12A,56B,74B,127C,140C 'data-root':11A,126C 'databas':22A,63B,79B,150C 'descript':108C 'directori':57B 'duplic':1A,81C,92C 'escap':4A 'extern':105C 'f9cm':97C 'file':80B 'follow':45B,117C 'function':44B 'ghsa':24A,29A,95C 'ghsa-w2j9-qh3j-4h63':23A,28A 'ghsa-xmfg-f9cm-w86q':94C 'link':47B,100C,146C 'maintain':102C 'nltk':33A,36B,39B,55B,109C,139C 'nltk.sem.chat80.sql':120C 'origin':107C 'out-of-root':17A 'outsid':64B,151C 'packag':37B 'pathsec':10A,125C 'plant':51B,143C 'point':59B 'preserv':104C 'python':38B 'qh3j':26A,31A 'queri':7A,43B,121C 'read':16A,77B,148C 'refer':106C 'root':13A,20A,75B,128C,141C 'sandbox':14A,66B,129C,153C 'sql':42B 'sqlite':21A,62B,149C 'symbol':46B,145C 'symlink':3A,50B,116C 'trust':54B,138C 'vulner':118C 'w2j9':25A,30A 'w86q':98C 'withdrawn':87C 'write':71B,135C 'xmfg':96C","nicknames":[],"mitigations":[],"who_affected":"Only teams that call nltk.sem.chat80.sql_query and let someone other than the team write into the NLTK data root. Exposure depends on whether the data directory is writable by untrusted users. unknown whether other NLTK functions are affected.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":["nltk"],"ptokens":["nltk"],"labels":["cwe59","medium","nltk","package","pypi","python"],"campaign_type":null,"search_a":"'4h63':27A,32A 'advisori':2A 'bypass':8A 'chat80.sql':6A 'data':12A 'data-root':11A 'databas':22A 'duplic':1A 'escap':4A 'ghsa':24A,29A 'ghsa-w2j9-qh3j-4h63':23A,28A 'nltk':33A 'out-of-root':17A 'pathsec':10A 'qh3j':26A,31A 'queri':7A 'read':16A 'root':13A,20A 'sandbox':14A 'sqlite':21A 'symlink':3A 'w2j9':25A,30A","search_b":"'-59':35B 'attack':68B 'chat80':41B 'cwe':34B 'data':56B,74B 'databas':63B,79B 'directori':57B 'file':80B 'follow':45B 'function':44B 'link':47B 'nltk':36B,39B,55B 'outsid':64B 'packag':37B 'plant':51B 'point':59B 'python':38B 'queri':43B 'read':77B 'root':75B 'sandbox':66B 'sql':42B 'sqlite':62B 'symbol':46B 'symlink':50B 'trust':54B 'write':71B","search_c":"'3.10.4':113C '3.9.4':111C 'advisori':82C,84C 'attack':132C 'bypass':123C 'check':131C 'contain':114C,130C 'data':127C,140C 'data-root':126C 'databas':150C 'descript':108C 'duplic':81C,92C 'extern':105C 'f9cm':97C 'follow':117C 'ghsa':95C 'ghsa-xmfg-f9cm-w86q':94C 'link':100C,146C 'maintain':102C 'nltk':109C,139C 'nltk.sem.chat80.sql':120C 'origin':107C 'outsid':151C 'pathsec':125C 'plant':143C 'preserv':104C 'queri':121C 'read':148C 'refer':106C 'root':128C,141C 'sandbox':129C,153C 'sqlite':149C 'symbol':145C 'symlink':116C 'trust':138C 'vulner':118C 'w86q':98C 'withdrawn':87C 'write':135C 'xmfg':96C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-13T12:31:17+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-w2j9-qh3j-4h63","url":"https://github.com/advisories/GHSA-w2j9-qh3j-4h63","severity":"medium","published_at":"2026-11-13T12:31:17+00:00","modified_at":"2026-11-16T14:47:06+00:00","first_seen_at":"2026-11-16T14:51:33+00:00","fetched_at":"2026-11-16T14:51:33+00:00","note":null}],"documents":[],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}