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
| 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#L81-L87 technical-description
- CTranslate2 v4.8.1 Release Notes release-notes
- https://github.com/OpenNMT/CTranslate2 product
- VulnCheck Advisory: CTranslate2 before 4.8.1 Out-of-Bounds Read via Model Deserialization third-party-advisory