Intel

AIKIDO-2026-546421

faiss-cpu is vulnerable to Out-of-Bounds Write

Out-of-Bounds Write Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 2 days ago

66

Medium Risk

This Affects:

PYTHONfaiss-cpu
1.5.3 - 1.14.3
Fixed in 1.15.0
Are you affected? Scan for Free

TL;DR

Faiss reads serialized index files in its index deserialization paths and uses attacker-controlled header fields, sizes, and offsets without fully validating them. Loading a crafted index can trigger integer-overflow-driven undersized allocations followed by out-of-bounds reads and writes, null pointer dereferences, unbounded recursion, and excessive memory or CPU consumption. Before the fix these malformed inputs could corrupt heap memory or crash the process while an index is being loaded. The release adds overflow-checked size arithmetic, bounds and null validation for reconstruction and stored codes, and recursion and allocation limits when reading indexes.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application loads serialized Faiss indexes from untrusted or externally influenced sources.

Background info

faiss-cpu is vulnerable to Out-of-Bounds Write in versions 1.5.3 - 1.14.3.

How to fix this

Upgrade the faiss-cpu library to the patch version.