CVE-2026-58449CWE-94

txtai - Unauthenticated Remote Code Execution via Unsafe Reflection in API /reindex function Parameter

Critical · published June 30, 2026

CVSS v4.0
9.3
EPSS
1%
Percentile
71.4
In the wild
Unconfirmed
What it is

txtai through 9.10.0, fixed in commit 11b32da, exposes an API /reindex endpoint whose function body parameter is resolved through txtai.util.Resolver, which performs __import__ and getattr on the caller-supplied dotted path with no allowlist. When the API is exposed with no TOKEN configured (authentication is opt-in, so all endpoints are unauthenticated) and the index is configured writable, a remote attacker can set function to an arbitrary callable such as subprocess.getoutput, achieving remote code execution as the server process during reindexing. Exploitation requires those deployment conditions (API exposed, no TOKEN, writable index); it is not the default configuration. The fix gates the endpoint behind a new reindex configuration flag.

The record
Technical detail
CVSS v4.0
9.3 · CRITICAL
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS
0.01354 · 71.4th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-06-30T21:06Z
EPSS history
Timeline
  • 30 JUN 21:06Z
    txtai - Unauthenticated Remote Code Execution via Unsafe Reflection in API /reindex function Parameter
    cvelistv5