Intel

AIKIDO-2026-546421

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

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Aug 5, 2026
August 5, 2026

66

CVE Score

Medium

Out-of-Bounds Write

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.

How do I fix this?

Upgrade the faiss-cpu library to the patch version.

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.

Package

Versions

1.5.3 - 1.14.3

Fixed in 1.15.0

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea