Arbitrary Code Injection Affecting txtai package, versions [0,]


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.73% (50th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-TXTAI-17751727
  • published1 Jul 2026
  • disclosed30 Jun 2026
  • creditUnknown

Introduced: 30 Jun 2026

CVE-2026-58449  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

txtai is an All-in-one open-source AI framework for semantic search, LLM orchestration and language model workflows

Affected versions of this package are vulnerable to Arbitrary Code Injection via the function parameter in the /reindex API endpoint when it is resolved through the Resolver process. An attacker can execute arbitrary code by supplying a crafted dotted path to an unsafe callable, leading to code execution as the server process. This is only exploitable if the API is exposed without authentication (no TOKEN configured) and the index is configured as writable.

CVSS Base Scores

version 4.0
version 3.1