Views
No views yet
OnDiskInvertedLists deserialization reads a filename from the untrusted index file and opens/mmaps it without validation.OnDiskInvertedLists section with the filename set to /etc/passwd. When loaded with faiss.read_index(), FAISS opens and mmaps /etc/passwd.1import faiss
2# This will attempt to open and mmap /etc/passwd
3index = faiss.read_index("malicious_file_read.index")
4# Process hangs or crashes — confirming the file was opened