Description
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
Problem types
CWE-61 UNIX Symbolic Link (Symlink) Following
Product status
References
github.com/neuml/txtai/issues/965
research.jfrog.com/...itrary-file-write-jfsa-2025-001471363/