Intel

AIKIDO-2026-360641

ctranslate2 is vulnerable to Out-of-bounds Read

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 19, 2026
October 19, 2026

30

CVE Score

Low

Out-of-bounds Read

Are you affected? Scan for Free

TL;DR

Scalar StorageView::at(dim_t) checks only index >= _size before reading data<T>()[index], so a C++ caller passing a negative index can read before the buffer. StorageView::dim() and stride() normalize negative axes and then rely on GUARD_DIM, which checks only the upper bound, so an axis below -rank can index _shape out of bounds. These calls are not reached through model-file dimensions, which are encoded as uint32_t, or the Python StorageView binding; exploitation requires a caller to supply an invalid C++ argument and may expose process memory or crash the process. In v4.8.2, the checks reject negative indexes and dimensions with std::invalid_argument before the reads.

How do I fix this?

Upgrade the ctranslate2 package to version 4.8.2 or later.

Who does this affect?

You are affected only if your application directly calls the C++ StorageView::at(), dim(), or stride() APIs with a negative index beyond the valid bounds; ordinary model loading and Python StorageView use do not expose these calls.

Versions

1.20.1 - 4.8.1

Fixed in 4.8.2

Background info

ctranslate2 is vulnerable to Out-of-bounds Read in versions 1.20.1 - 4.8.1.

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