CVE-2026-58449

CRITICAL

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

Title source: cna
STIX 2.1

Description

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.

Scores

CVSS v3 9.8
EPSS 0.0073
EPSS Percentile 49.8%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable yes
Technical Impact total

Details

CWE
CWE-94
Status published
Products (2)
neuml/txtai < 9.10.0
neuml/txtai 11b32da720f03276199ebc5583c15fc5d1ccafd3
Published Jun 30, 2026
Tracked Since Jul 01, 2026