faiss-cpu is vulnerable to Out-of-Bounds Write
66
Medium Risk
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.
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.
faiss-cpu is vulnerable to Out-of-Bounds Write in versions 1.5.3 - 1.14.3.
Upgrade the faiss-cpu library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant