CWE-61Weakness · CWE-61

CVE-2025-10854

HIGH · 8.1 CVSS v3.1 Published 2025-09-22
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
90/100
Remediation priority · Urgent
Remotely reachable No privileges Zero-click

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
The txtai framework allows the loading of compressed tar files as embedding indices. While the validate function is intended to prevent path traversal vulnerabilities by ensuring safe filenames, it does not account for symbolic links within the tar file. An attacker is able to write a file anywhere in the filesystem when txtai is used to load untrusted embedding indices

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

The txtai framework's embedding index loader processes tar archives but fails to validate symbolic links during extraction. The existing validate function only checks regular filenames for path traversal patterns, but does not inspect or block symlinks that can resolve to arbitrary filesystem locations. When an attacker crafts a malicious tar file containing symlinks pointing outside the intended extraction directory, the extraction process follows these links and writes files to any reachable filesystem location.

MitigationImplement symlink validation during tar extraction to reject or sanitize archive entries containing symbolic links, or use extraction methods that do not follow symlinks. Additionally, only load embedding indices from trusted sources.

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
High
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:H/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 txtai installation and version
    Run 'pip show txtai' or 'pip list | grep txtai' to identify the installed version of the txtai package
    Affected if The installed version falls within any affected version range (compare to the latest patched version from the txtai project)
  2. Identify embedding index configuration
    Review application configuration files (e.g., config.yaml, settings.py) or code for txtai embedding setup. Look for 'embeddings', 'index', or 'indexer' configuration sections that specify a source for loading pre-computed indices
    Affected if Embedding indices are configured to load from an external source, particularly a file path or URL that points to a compressed archive
  3. Determine if tar archives are used for embedding indices
    Inspect the embedding index configuration or initialization code. Check if indices are loaded from .tar, .tar.gz, .tgz, or similar archive files
    Affected if Embedding indices are loaded from tar-based archive files containing the embedding index data
  4. Examine the extraction code path for symlink handling
    Locate the txtai embedding index loader code (typically in the 'txtai' package under 'archive', 'embeddings', or 'index' modules). Inspect the extraction/validation logic for tar file handling. Search for 'extract', 'validate', 'symlink', or 'link' related functions
    Affected if The extraction code does not explicitly validate or reject symbolic link entries in tar archives before extraction
  5. Verify extraction destination is not sandboxed
    Check if the extraction process uses a sandboxed or chroot'd environment, or if it validates that extracted files remain within a designated directory. Review the 'path' parameter passed to extraction functions
    Affected if Files are extracted to user-controlled directories without symlink resolution guards or directory containment checks

A user is affected if they load embedding indices from tar archives using txtai, the source is untrusted or attacker-controlled, and the extraction does not block or sanitize symbolic links in the archive.

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.

From vendor data
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Implement symlink validation during tar extraction to reject or sanitize archive entries containing symbolic links, or use extraction methods that do not follow symlinks. Additionally, only load embedding indices from trusted sources.

Have this fixed Scoped from the published advisory
  • Consultation3.0 h
  • Implementation4.0 h
  • Testing4.0 h
  • Review / QA2.0 h
13.0 hours of engineering $2,280
Get help mitigating

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

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-10854 — 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-2025-10854 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