Skip to main content

txtai CVE-2026-58449

| EUVDEUVD-2026-40418 CRITICAL
Code Injection (CWE-94)
2026-06-30 VulnCheck GHSA-m8p4-rrq5-qvmf
9.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Locate exposed token-less txtai API
  2. Delivery
    POST to /reindex with function=subprocess.getoutput
  3. Exploit
    Resolver imports and calls attacker callable
  4. Execution
    Command runs as server process
  5. Impact
    Full host compromise

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a specific non-default deployment: the txtai HTTP API must be network-reachable, no TOKEN may be configured (authentication is opt-in, so an unset TOKEN leaves every endpoint unauthenticated), and the index must be configured writable so the /reindex endpoint will execute. The attacker then sets the /reindex 'function' parameter to an arbitrary importable callable (e.g. subprocess.getoutput). Limiting factors: all three conditions must hold simultaneously; instances that set a TOKEN, keep the index read-only, or do not expose the API are not exploitable, and the patched build gates the endpoint behind a new 'reindex' flag.

Impact

The signals are mostly aligned toward high severity but tempered by configuration dependence. The CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:N, VC:H/VI:H/VA:H) describes unauthenticated network RCE with full impact, consistent with the 9.3 score. However, the vector's PR:N and AT:N understate the real precondition stack: the API must be exposed, TOKEN must be unset, and the index must be writable - by the vendor's own statement this is not the default. There is no CISA KEV listing and no published proof-of-concept, so this is a serious-but-conditional issue rather than confirmed mass exploitation; EPSS data was not provided. Net: prioritize patching for anyone running the txtai API in a writable, token-less, network-reachable deployment, but the population meeting all three conditions is narrower than the raw 9.3 suggests. Note the discrepancy: the CVSS 4.0 base vector marks AT:N/PR:N while the description requires a specific non-default deployment - verify your own configuration before assuming exposure.

Exploit ScenarioDerived

An attacker discovers a network-reachable txtai API instance running without a TOKEN and with a writable index. They send a single request to /reindex with the function parameter set to a callable such as subprocess.getoutput plus a shell command; txtai resolves and invokes it during reindexing, executing the command as the server process. No public proof-of-concept is currently identified, and the attack hinges on the non-default exposed/token-less/writable configuration.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – Jun 30, 2026

Remote code execution in txtai through 9.10.0 lets a remote attacker reach the API /reindex endpoint and supply an arbitrary dotted callable (for example subprocess.getoutput) that the server imports and invokes during reindexing, running commands as the server process. The flaw is exploitable only when the API is network-exposed with no TOKEN set (so all endpoints are unauthenticated) and the index is writable - not the default posture. No public exploit has been identified at time of analysis, but the issue carries a high CVSS 4.0 base score of 9.3 and was reported by VulnCheck.

Earlier versions of this analysis (2)
v2 Jun 30, 2026 - 22:28 cvss changed CVSS 9.3

Remote code execution in neuml txtai through 9.10.0 lets a network attacker hijack the API /reindex endpoint, whose user-supplied function parameter is resolved via txtai.util.Resolver using __import__/getattr against an arbitrary dotted path with no allowlist; an attacker can pass a callable like subprocess.getoutput to run shell commands as the server process during reindexing. Affected deployments are those exposing the txtai API with no TOKEN set (all endpoints unauthenticated) and a writable index, which is not the default configuration. Reported by VulnCheck; a vendor fix exists (commit 11b32da) and no public exploit is identified at time of analysis.

v1 Jun 30, 2026 - 22:02 CVSS 9.8

Remote code execution in txtai through 9.10.0 (neuml/txtai) lets remote attackers run arbitrary commands as the server process by abusing the API /reindex endpoint's function parameter, which is resolved via txtai.util.Resolver using __import__ and getattr on an attacker-controlled dotted path with no allowlist. Because authentication is opt-in, an instance deployed with no TOKEN and a writable index is fully unauthenticated, letting an attacker set function to a callable such as subprocess.getoutput. No public exploit has been identified at time of analysis, though the issue was reported by VulnCheck and is fixed in commit 11b32da.

RemediationAI

Apply the upstream fix in commit 11b32da (https://github.com/neuml/txtai/commit/11b32da720f03276199ebc5583c15fc5d1ccafd3), which gates the /reindex endpoint behind a new 'reindex' configuration flag; upgrade to the first tagged release that includes this commit (Upstream fix available via commit; released patched version not independently confirmed, so verify against the vendor changelog). If immediate patching is not possible, configure a TOKEN so all API endpoints require authentication (closes the unauthenticated path but requires updating every API client with credentials), and/or set the index to read-only so reindexing cannot be triggered (disables legitimate reindex/update functionality). Additionally, do not expose the txtai API directly to untrusted networks - place it behind a reverse proxy or network ACL that restricts access to the /reindex endpoint (may break legitimate remote reindex automation). See the VulnCheck advisory above for details.

Affected VersionsENISA

txtai 0 ≤9.10.0

Affected Packages

euvd txtai no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

txtai (neuml/txtai, CPE cpe:2.3:a:neuml:txtai) is an open-source embeddings/semantic-search framework that ships an optional HTTP API. The vulnerability is a CWE-94 code injection arising from unsafe reflection: the /reindex endpoint passes its caller-supplied 'function' parameter to txtai.util.Resolver, which performs Python __import__ and getattr on the dotted path with no allowlist or type restriction. Because any importable module attribute can be resolved and then called, an attacker can name a dangerous standard-library callable (e.g. subprocess.getoutput, os.system) instead of a legitimate transform function, turning a reindex operation into arbitrary command execution within the server process.

Know when Txtai gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 9.3 CRITICAL
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
vuln.today AI 8.1 HIGH

Network-reachable and unauthenticated when no TOKEN is set (PR:N), but the required exposed/token-less/writable non-default deployment justifies AC:H; the resolved callable runs in-process giving full C/I/A:H.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Analysis Updated
Jun 30, 2026 - 22:29 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 30, 2026 - 22:28 vuln.today
v2 - CVSS changed
CVSS changed
Jun 30, 2026 - 22:22 NVD
9.8 (CRITICAL) 9.3 (CRITICAL)

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

txtai, a widely-deployed AI indexing platform, contains a critical remote code execution vulnerability affecting versions through 9.10.0 that allows unauthenticated attackers to execute arbitrary commands on exposed servers. Organizations running txtai as a network-accessible API without authentication tokens face immediate risk of complete system compromise and data exfiltration. Immediate patching and network access controls are required to mitigate this risk.

Business Impact: High
Compensating Controls

Patch available per vendor advisory. Interim mitigations if patching is delayed: enforce TOKEN authentication on all txtai endpoints, restrict API network access via firewall or WAF, disable index write permissions from untrusted sources, and implement monitoring/alerting on the /reindex endpoint for suspicious requests.

Threat Intelligence Overview

EPSS Score
0.7%
Top 50% exploitable
Prevalence
Low
niche open-source AI embeddings/search library, limited production footprint
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy