NLTKに不正なプログラムを実行される脆弱性、ローカルの攻撃者が悪用可能
Summary
NLTKのprover9・mace4の設定で、相対パスのbinary_locationを指定すると、攻撃者が配置したプログラムが実行台のユーザー権限で動く脆弱性です。影響を受けるのは3.10.4より前のNLTKで、CVSSは7.3です。修正版の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のprover9・mace4の設定で、相対パスのbinary_locationを指定すると、攻撃者が配置したプログラムが実行台のユーザー権限で動く脆弱性です。影響を受けるのは3.10.4より前のNLTKで、CVSSは7.3です。修正版の3.10.4が公開されているため、更新をおすすめします。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| nltknltk | — | Not listed |
| PyPInltk |
< 3.10.4→ 3.10.4 |
3.10.4 |
| pipnltk |
< 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-129234 nltk No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-129234 nltk No fixed version in this record
Original description The description as published by the source.
Summary
Prover9Parent.config_prover9(binary_location=...) (and Mace, which inherits it) accepts a relative binary_location and passes it as path_to_bin to find_binary, which disables the CWD-relative rejection guard. Unlike the boxer/senna/malt/repp siblings, prover9/mace apply no os.path.isabs() filter, so the resolved relative program path (e.g. ./prover9) is executed from the current working directory via subprocess.Popen. A local attacker who can plant ./prover9 (or ./mace4) in the resolved directory achieves local code execution.
Root Cause
nltk/inference/prover9.py:121-135 calls find_binary(name, path_to_bin=binary_location, env_vars=["PROVER9"], ...). A truthy path_to_bin sets searching_bare_name = not path_to_bin and ... → False (internals.py:935), so the guard if searching_bare_name and not os.path.isabs(path): continue (internals.py:940) never runs. The result is stored in self._prover9_bin; on the next prove(), _call → subprocess.Popen([binary]+args, ...) (prover9.py:207) execs it. Mace(Prover9Parent) inherits config_prover9 (mace.py:229). By contrast boxer's _find_binary (sem/boxer.py:251-266) iterates find_binary_iter and returns only the first os.path.isabs() result; repp/malt/senna similarly reject a relative explicit bin dir. prover9/mace have no such filter.
Impact
Local arbitrary code execution: an attacker-planted ./prover9/./mace4 runs as the invoking user when the application is conf…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web nvd.nist.gov
- web github.com