Skip to content
Heist/ feed
Back to feed
Critical

txtai - Unauthenticated Remote Code Execution via Unsafe Reflection in API /reindex function Parameter

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-58449
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 03:33 UTC · Revision 1

Source evidence

txtai - Unauthenticated Remote Code Execution via Unsafe Reflection in API /reindex function Parameter

core-osv · Original source

Published 30 Jun 2026, 21:06 UTC

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.

osv:CVE-2026-58449
Complete source record
{
  "id": "672b257d9d9b2967134126f7cadedd62dbed5f12a0dc953f2e5a275c8764e202",
  "url": "https://osv.dev/vulnerability/CVE-2026-58449",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "txtai - Unauthenticated Remote Code Execution via Unsafe Reflection in API /reindex function Parameter",
    "summary": "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.",
    "evidence": "osv:CVE-2026-58449",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-58449",
      "aliases": [
        "CVE-2026-58449"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/neuml/txtai",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "11b32da720f03276199ebc5583c15fc5d1ccafd3"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "9.10.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "fixed": "11b32da720f03276199ebc5583c15fc5d1ccafd3"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v9.10.0",
            "v9.9.0",
            "v9.8.0",
            "v9.7.0",
            "v9.6.0",
            "v9.5.0",
            "v9.4.1",
            "v9.4.0",
            "v9.3.0",
            "v9.2.0",
            "v9.1.0",
            "v9.0.1",
            "v9.0.0",
            "v8.6.0",
            "v8.5.0",
            "v8.4.0",
            "v8.3.1",
            "v8.3.0",
            "v8.2.0",
            "v8.1.0",
            "v8.0.0",
            "v7.5.0",
            "v7.4.0",
            "v7.3.0",
            "v7.2.0",
            "v7.1.0",
            "v7.0.0",
            "v6.3.0",
            "v6.2.0",
            "v6.1.0",
            "v6.0.0",
            "v5.5.1",
            "v5.5.0",
            "v5.4.0",
            "v5.3.0",
            "v5.2.0",
            "v5.1.0",
            "v5.0.0",
            "v4.6.0",
            "v4.5.0",
            "v4.4.0",
            "v4.3.1",
            "v4.3.0",
            "v4.2.1",
            "v4.2.0",
            "v4.1.0",
            "v4.0.0",
            "v3.7.0",
            "v3.6.0",
            "v3.5.0",
            "v3.4.0",
            "v3.3.0",
            "v3.2.0",
            "v3.1.0",
            "v3.0.0",
            "v2.0.0",
            "v1.5.0",
            "v1.4.0",
            "v1.3.0",
            "v1.2.1",
            "v1.2.0",
            "v1.1.0",
            "v1.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-58449.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:53.154971935Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58449.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-58449",
        "https://www.vulncheck.com/advisories/txtai-unauthenticated-remote-code-execution-via-unsafe-reflection-in-api-reindex-function-parameter",
        "https://github.com/neuml/txtai/issues/1111",
        "https://github.com/neuml/txtai/issues/1122",
        "https://github.com/neuml/txtai/commit/11b32da720f03276199ebc5583c15fc5d1ccafd3",
        "https://github.com/neuml/txtai"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-94"
        ],
        "cna_assigner": "VulnCheck",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58449.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-58449",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 522249,
  "published_at": "2026-06-30T21:06:47.254+00:00"
}