NLTKの脆弱性、シンボリックリンク経由で任意のファイルを読み取られる
Summary
NLTKの3.10.0から3.10.4より前には、YCOECorpusReaderにシンボリックリンクの扱いの不備による脆弱性があります。悪意のあるYCOEコーパスを使うと、コーパスの外にあるファイルの内容を読み取られるおそれがあります。修正版の3.10.4以降に更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
NLTKの3.10.0から3.10.4より前には、YCOECorpusReaderにシンボリックリンクの扱いの不備による脆弱性があります。悪意のあるYCOEコーパスを使うと、コーパスの外にあるファイルの内容を読み取られるおそれがあります。修正版の3.10.4以降に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| nltknltk |
≥ 3.10.0, < 3.10.4→ 3.10.4 |
3.10.4 |
| pipnltk |
< 3.10.4→ 3.10.4 |
3.10.4 |
| PyPInltk |
≥ 3.10.0, < 3.10.4→ 3.10.4 |
3.10.4 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-126304 nltk No fixed version in this record
Original description The description as published by the source.
NLTK from 3.10.0 before 3.10.4 contains a symlink escape vulnerability in YCOECorpusReader that allows attackers to read files outside the corpus root by planting psd or pos directory symlinks. Attackers controlling a YCOE corpus can make parsed_sents() and tagged_words() return file content from other corpora or temporary files within the NLTK data sandbox.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- web github.com
- web disclosure@vulncheck.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com