CVE-2026-58449: Improper Control of Generation of Code ('Code Injection') in neuml txtai
txtai versions up to and including 9.10.0 have a critical code injection vulnerability in the /reindex API endpoint. This endpoint accepts a function parameter resolved via txtai.util.Resolver, which unsafely imports and accesses arbitrary callables without an allowlist. If the API is exposed without authentication (no TOKEN configured) and the index is writable, a remote attacker can execute arbitrary code on the server process during reindexing. The vulnerability is fixed by gating the endpoint behind a new reindex configuration flag in a commit after version 9.10.0.
AI Analysis
Technical Summary
The vulnerability in txtai (<=9.10.0) involves improper control of code generation through the /reindex API endpoint. The function parameter is resolved using txtai.util.Resolver, which performs __import__ and getattr on a caller-supplied dotted path without any allowlist, enabling arbitrary callable execution. When the API is exposed without authentication and the index is writable, a remote attacker can specify dangerous callables such as subprocess.getoutput, resulting in remote code execution as the server process. Exploitation requires specific deployment conditions that are not default. The fix introduces a configuration flag that restricts access to the /reindex endpoint.
Potential Impact
Successful exploitation allows a remote attacker to achieve remote code execution on the server running txtai, with full privileges of the server process. This can lead to complete compromise of the affected system, including confidentiality, integrity, and availability impacts. The vulnerability requires the API to be exposed without authentication and the index to be writable, which are not default configurations.
Mitigation Recommendations
A fix is available in the form of a commit after version 9.10.0 that gates the /reindex endpoint behind a new configuration flag. Users should upgrade to a version including this fix or apply the commit to restrict access to the endpoint. Additionally, enabling TOKEN-based authentication and ensuring the index is not writable unless necessary will mitigate the risk. Patch status is not explicitly confirmed in the advisory; users should consult the vendor repository or advisory for the exact fixed version and apply the fix accordingly.
CVE-2026-58449: Improper Control of Generation of Code ('Code Injection') in neuml txtai
Description
txtai versions up to and including 9.10.0 have a critical code injection vulnerability in the /reindex API endpoint. This endpoint accepts a function parameter resolved via txtai.util.Resolver, which unsafely imports and accesses arbitrary callables without an allowlist. If the API is exposed without authentication (no TOKEN configured) and the index is writable, a remote attacker can execute arbitrary code on the server process during reindexing. The vulnerability is fixed by gating the endpoint behind a new reindex configuration flag in a commit after version 9.10.0.
CVSS v3.1
Score 9.8critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in txtai (<=9.10.0) involves improper control of code generation through the /reindex API endpoint. The function parameter is resolved using txtai.util.Resolver, which performs __import__ and getattr on a caller-supplied dotted path without any allowlist, enabling arbitrary callable execution. When the API is exposed without authentication and the index is writable, a remote attacker can specify dangerous callables such as subprocess.getoutput, resulting in remote code execution as the server process. Exploitation requires specific deployment conditions that are not default. The fix introduces a configuration flag that restricts access to the /reindex endpoint.
Potential Impact
Successful exploitation allows a remote attacker to achieve remote code execution on the server running txtai, with full privileges of the server process. This can lead to complete compromise of the affected system, including confidentiality, integrity, and availability impacts. The vulnerability requires the API to be exposed without authentication and the index to be writable, which are not default configurations.
Mitigation Recommendations
A fix is available in the form of a commit after version 9.10.0 that gates the /reindex endpoint behind a new configuration flag. Users should upgrade to a version including this fix or apply the commit to restrict access to the endpoint. Additionally, enabling TOKEN-based authentication and ensuring the index is not writable unless necessary will mitigate the risk. Patch status is not explicitly confirmed in the advisory; users should consult the vendor repository or advisory for the exact fixed version and apply the fix accordingly.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-06-30T19:09:07.025Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a4436ef27e9c797196d42b7
Added to database: 06/30/2026, 21:36:47 UTC
Last enriched: 06/30/2026, 21:51:16 UTC
Last updated: 06/30/2026, 21:51:16 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.