製品・ソフトウェアに関する情報
NLTKにおけるパストラバーサルの脆弱性
Title NLTKにおけるパストラバーサルの脆弱性
Summary

NLTK(Natural Language Toolkit)は、自然言語処理の研究開発を支援するオープンソースのPythonモジュール、データセット、およびチュートリアルのスイートです。3.10.0-rc1より前のバージョンでは、NLTKのnltk.data.load()がnltk: URLスキームを使用する際に、URLエンコードされたパス区切り文字やトラバーサルセグメントによるパストラバーサルの脆弱性を持っていました。不安全なパスの正規表現チェックは、url2pathname()が%xxシーケンスをデコードする前に行われており(典型的なデコード後のチェック/TOCTOUスタイルの欠陥)、攻撃者がNLTKのSECURITY.mdに記載された保護を回避し、任意のファイルをファイルシステムから読み取ることを可能にしていました。../../../etc/passwdのようなリテラルトラバーサル文字列は正しくブロックされますが、%2fetc%2fpasswd、%2e%2e%2f...、および..%2f..%2fのようなエンコード変種は正規表現をすり抜け、実際のファイルシステムパスにデコードされます。この脆弱性は3.10.0-rc1で修正されました。

Possible impacts ・当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う情報について、書き換えは発生しません。 ・当該ソフトウェアは停止しません。 
Solution

ベンダ情報を参照して適切な対策を実施してください。

Publication Date June 22, 2026, midnight
Registration Date June 29, 2026, 11:12 a.m.
Last Update June 29, 2026, 11:12 a.m.
CVSS3.0 : 重要
Score 7.5
Vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected System
NLTK
NLTK 3.10.0 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2026年06月29日]
  掲載
June 29, 2026, 11:12 a.m.

NVD Vulnerability Information
CVE-2026-54293
Summary

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.0-rc1, nltk.data.load() in NLTK is vulnerable to path traversal via URL-encoded path separators and traversal segments when using the nltk: URL scheme. The unsafe-path regex check is performed before url2pathname() decodes the %xx sequences (a classic decode-after-check / TOCTOU-style flaw), allowing an attacker to bypass the protection documented in NLTK's SECURITY.md and read arbitrary files from the filesystem. While literal traversal strings such as ../../../etc/passwd are correctly blocked, encoded variants such as %2fetc%2fpasswd, %2e%2e%2f..., and ..%2f..%2f slip past the regex and are subsequently decoded into a real filesystem path. This vulnerability is fixed in 3.10.0-rc1.

Publication Date June 23, 2026, 4:17 a.m.
Registration Date June 27, 2026, 4:11 a.m.
Last Update June 27, 2026, 5:06 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:* 3.10.0
Related information, measures and tools
Common Vulnerabilities List