Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| OpenNMT | CTranslate2 | < 4.8.1 | 4.8.1 |
References
- Pull Request #2068 issue-tracking patch
- Patch Commit patch
- https://github.com/OpenNMT/CTranslate2/blob/v4.8.0/src/models/model.cc#L656-L657 technical-description
- CTranslate2 v4.8.1 Release Notes release-notes
- https://github.com/OpenNMT/CTranslate2 product
- VulnCheck Advisory: CTranslate2 before 4.8.1 Heap Buffer Overflow via model.bin third-party-advisory