Code InjectionWeakness · CWE-94

CVE-2026-58449

CRITICAL · 9.8 CVSS v3.1 Published 2026-06-30
Patch available
A vendor patch is available. No clean upgrade release — apply the published patch.
See remediation →
100/100
Remediation priority · Urgent
Remotely reachable No privileges Zero-click Patch available 8 weeks old

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

txtai through 9.10.0 exposes an unauthenticated /reindex API endpoint where the function body parameter is resolved through txtai.util.Resolver, which performs __import__ and getattr on caller-supplied dotted paths without any allowlist. When the API is exposed without a TOKEN configured (authentication is opt-in) and the index is writable, attackers can specify arbitrary callables like subprocess.getoutput to achieve remote code execution.

MitigationEnable authentication by setting a TOKEN, ensure the API is not publicly exposed, or upgrade to the fixed version and configure the new reindex configuration flag to control endpoint access.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Check if TOKEN authentication is configured
    Inspect environment variables for TOKEN or check configuration files for auth settings
    Affected if No TOKEN is set, meaning the API accepts unauthenticated requests
  2. Verify if API is network-exposed
    Check startup configuration or running service to see if txtai binds to a non-localhost interface (0.0.0.0 or external IP)
    Affected if API is accessible from the network without authentication
  3. Determine if index is writable
    Check index path permissions or configuration setting for write access on the index directory
    Affected if Index directory or storage is writable by the API process
  4. Check if /reindex endpoint is accessible
    Verify the API is running and the /reindex endpoint is reachable without credentials
    Affected if /reindex endpoint responds to requests without authentication

Environment is affected if the txtai API is network-exposed without TOKEN authentication configured AND the index is writable, allowing arbitrary code execution via the /reindex endpoint.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Patch available Apply the vendor patch
Vendor patch github.com →
Interim mitigation

Enable authentication by setting a TOKEN, ensure the API is not publicly exposed, or upgrade to the fixed version and configure the new reindex configuration flag to control endpoint access.

Recommended fix High confidence

txtai 9.10.1 or later

  1. Upgrade txtai to a version that includes the fix from commit 11b32da (version 9.10.1 or later)
  2. If immediate upgrade is not possible, ensure the API is not exposed publicly and a TOKEN is configured for authentication
  3. If writable index is not required in deployment, configure it as read-only to reduce attack surface
  4. After upgrading, configure the new reindex configuration flag appropriately to control access to the /reindex endpoint
Caveat The reindex endpoint is now gated behind a configuration flag - verify existing workflows that use /reindex still function after upgrade

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation2.0 h
  • Implementation2.0 h
  • Testing2.0 h
  • Review / QA1.0 h
7.0 hours of engineering $1,240
Get the patch applied

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $1,984.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-58449 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-58449 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data