Description
CTranslate2 before 4.8.1 contains an out-of-bounds heap read vulnerability in the binary model loader when deserializing string fields without null terminators. Attackers can craft malicious model files to trigger heap memory reads past buffer boundaries, causing crashes or disclosing adjacent heap memory contents.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
OpenNMT CTranslate2
Default version status: unaffected
0 to < 4.8.1affected4.8.1unaffected
References
- https://github.com/OpenNMT/CTranslate2/pull/2068 ↗
- https://github.com/OpenNMT/CTranslate2/commit/d9b991e0700933a0c05373df8b52ed89cdcab96d ↗
- https://github.com/OpenNMT/CTranslate2/blob/v4.8.0/src/models/model.cc#L81-L87 ↗
- https://github.com/OpenNMT/CTranslate2/releases/tag/v4.8.1 ↗
- https://github.com/OpenNMT/CTranslate2 ↗
- https://www.vulncheck.com/advisories/ctranslate2-before-4.8.1-out-of-bounds-read-via-model-deserialization ↗