CVE-2026-58449 Details
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.
A remote code execution vulnerability has been identified in txtai versions through 9.10.0. The issue arises in the API's /reindex endpoint, where the function body parameter is processed by txtai.util.Resolver. This resolver executes __import__ and getattr on user-supplied dotted paths without any allowlist. The vulnerability is exploitable when the API is active, no TOKEN is set (making authentication optional), and the index is writable. Under these conditions, an attacker can manipulate the function parameter to execute arbitrary callables, such as subprocess.getoutput, leading to remote code execution as the server process during the reindexing operation. This vulnerability does not exist in the default configuration, as the reindexing feature is typically disabled.
Users can update to txtai version 9.11.0 or later, where this vulnerability has been addressed by adding a reindex configuration flag that disables the endpoint by default.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 30, 2026CISA-ADP
Assessed Jul 1, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/neuml/txtai/commit/11b32da720f03276199ebc5583c15fc5d1ccafd3 | [email protected] | Source CodeVendor |
| https://github.com/neuml/txtai/issues/1111 | [email protected] | Issue TrackingVendor |
| https://github.com/neuml/txtai/issues/1122 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://www.vulncheck.com/advisories/txtai-unauthenticated-remote-code-execution-via-unsafe-reflection-in-api-reindex-function-parameter | [email protected] | AdvisoryRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| txtai | <= 9.10.0 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 14, 2026 | CVE Modified | [email protected] |
| Jul 1, 2026 | CVE Modified | CISA-ADP |
| Jun 30, 2026 | New CVE Received | [email protected] |
Volerion