HIGHCVSS v3.1 7.3Vulnerability

CVE-2026-129234

## 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 configured with a relative `binary_location` and the attacker can write to the resolved directory. ## Proof of Concept In a directory containing an executable `./prover9`: ```python from nltk.inference.prover9 import Prover9 p = Prover9(); p.config_prover9(binary_location='.') # p._prover9_bin == './prover9'; subsequent prove() Popens it from CWD ``` Runtime-confirmed: `find_binary('prover9', path_to_bin='.')` → `'./prover9'`; bare `find_binary('prover9')` and relative `PROVER9='.'` via default `_f

Properties

Severity
high
Summary
NLTK: Untrusted search path in prover9/mace4 config allows local code execution via relative binary_location
Nvd fetched at
2026-11-22T12:30:49.958423+00:00
Epss score
0.00225
Cvss severity
HIGH
Cvss score
7.3
Retrieved at
2026-11-22T12:32:26+00:00
Ghsa published
2026-11-19T23:46:54Z
Source url
https://github.com/advisories/GHSA-cc5r-64rf-75hg
Ghsa updated
2026-11-19T23:46:56Z
Ghsa id
GHSA-cc5r-64rf-75hg
Last source
FIRST EPSS
Score
7.3
Cvss version
3.1
Cve id
CVE-2026-129234
Cvss vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
First seen by Signal
2026-11-19T19:29:21+00:00
Name
CVE-2026-129234
Is ghsa only
false
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Related Entities (4)

HAS_WEAKNESS (2)

AFFECTS (1)

→[Software]pip/nltk

VULNERABLE_TO (1)

←[Software]pip/nltk

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-129234 (CVSS v3.1 7.3) — Ninja Signal Threat Intelligence | Ninja Signal