ctranslate2 is vulnerable to Out-of-bounds Read
30
CVE Score
Low
Out-of-bounds Read
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.
Upgrade the ctranslate2 package to version 4.8.2 or later.
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.
1.20.1 - 4.8.1
Fixed in 4.8.2ctranslate2 is vulnerable to Out-of-bounds Read in versions 1.20.1 - 4.8.1.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.