CVE-2026-58449
Deferred Deferred - Pending Action

Remote Code Execution in txtai via Reindex API

Vulnerability report for CVE-2026-58449, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-06-30

Last updated on: 2026-07-14

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-06-30
Last Modified
2026-07-14
Generated
2026-07-21
AI Q&A
2026-07-01
EPSS Evaluated
2026-07-19
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
txtai txtai to 9.10.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in txtai versions through 9.10.0 and involves the /reindex API endpoint. The endpoint accepts a function body parameter that is resolved using txtai.util.Resolver, which uses Python's __import__ and getattr functions on a caller-supplied dotted path without any allowlist. If the API is exposed without a TOKEN configured (authentication is optional and off by default) and the index is writable, a remote attacker can specify an arbitrary callable function such as subprocess.getoutput. This allows the attacker to execute arbitrary code remotely on the server process during reindexing.

Exploitation requires specific deployment conditions: the API must be exposed, no authentication token must be set, and the index must be writable. These are not default settings. The vulnerability was fixed by gating the endpoint behind a new reindex configuration flag.

Detection Guidance

This vulnerability can be detected by checking if the txtai API /reindex endpoint is exposed without authentication (no TOKEN configured) and if the index is writable. Since exploitation requires sending a crafted POST request to the /reindex endpoint with a function parameter that allows arbitrary code execution, monitoring for such requests can help detect exploitation attempts.

You can use network monitoring tools or command-line utilities like curl to test if the /reindex endpoint is accessible and vulnerable by sending a POST request with a suspicious payload.

  • Example curl command to test the vulnerability (do this only in a controlled environment):
  • curl -X POST http://<target-host>/reindex -H "Content-Type: application/json" -d '{"config": {}, "function": "os.system"}'

If the server responds without authentication and processes the request, it indicates the vulnerability is present. Additionally, checking the server configuration for the presence or absence of a TOKEN environment variable and whether the reindex configuration flag is enabled can help identify vulnerable deployments.

Impact Analysis

This vulnerability can lead to remote code execution on the server running txtai. An attacker who exploits this can run arbitrary commands with the same privileges as the server process, potentially leading to full system compromise, data theft, data manipulation, or disruption of services.

Compliance Impact

The vulnerability allows unauthenticated remote code execution on the server process when certain deployment conditions are met, such as the API being exposed without authentication and the index being writable. This critical security flaw could lead to unauthorized access, data breaches, or manipulation of sensitive information.

Such unauthorized access and potential data compromise can negatively impact compliance with common standards and regulations like GDPR and HIPAA, which require strict controls over data confidentiality, integrity, and access.

However, exploitation requires specific non-default configurations (no TOKEN authentication and writable index), so proper configuration and mitigation reduce the risk of non-compliance.

Mitigation Strategies

To mitigate this vulnerability, ensure that the /reindex API endpoint is not exposed without authentication by configuring a TOKEN, as authentication is opt-in and endpoints are unauthenticated by default.

Additionally, avoid configuring the index as writable if not necessary, since a writable index combined with an exposed unauthenticated API allows remote code execution.

Applying the fix that gates the /reindex endpoint behind a new reindex configuration flag is also recommended.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-58449. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart