Buffer overflow in Opennmt Ctranslate2
CVE-2026-102566
CTranslate2 before 4.8.1 contains a heap-based buffer overflow in the binary model loader that fails to validate payload length against allocated buffer size. Attackers can craft malicious model files with oversized payload lengths to write past heap allocation boundaries, causing crashes or arbitrary code execution.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.001, 4.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
References
- Pull Request #2068 (issue-tracking, patch)
- Patch Commit (patch)
- github.com/OpenNMT/CTranslate2/blob/v4.8.0/src/models/model.cc (technical-description)
- CTranslate2 v4.8.1 Release Notes (release-notes)
- github.com/OpenNMT/CTranslate2 (product)
- VulnCheck Advisory: CTranslate2 before 4.8.1 Heap Buffer Overflow via model.bin (third-party-advisory)